Function at 0x10817c9c
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push 0x2c
mov eax, 0x1084cf9b
call fcn.1081eab0
mov eax, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x24], eax
xor esi, esi
mov dword [ebp - 4], 2
push esi
push esi
push esi
push esi
push dword [0x1182775c]
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x10817cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10817e49
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ecx, eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
jne 0x10817d18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x10817e44
cmp dword [ebp + 0x14], esi
mov edx, 0x800100
mov eax, 0x100
cmovne eax, edx
push eax
push edi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x10817e30
push esi
push dword [ebp + 0x24]
push dword [ebp + 0x24]
push dword [ebp - 0x28]
push 0xffffffffffffffff
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x10817e30
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x10817e30
push esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push esi
push 0x20000013
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10817e30
cmp dword [ebp - 0x18], 0xc8
je 0x10817daa
xor esi, esi
inc esi
jmp 0x10817e38
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
push esi
push eax
push ecx
push esi
push 0x20000005
push edi
mov dword [ebp - 0x20], 4
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10817e30
mov eax, dword [ebp - 0x24]
cmp dword [eax], esi
je 0x10817e38
push dword [eax]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
call fcn.1081e4ba
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
mov dword [ebx], eax
push dword [ecx]
push esi
push eax
call fcn.108213a0
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x10817e23
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebx]
add eax, dword [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10817e23
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x20], eax
cmp dword [ebp - 0x14], esi
jne 0x10817df6
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x10817e38
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x10817e3f
push edi
call ebx
push dword [ebp - 0x34]
call ebx
push dword [ebp - 0x38]
call ebx
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1081672b
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.1081672b
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.1081672b
mov eax, esi
call fcn.1081ea5a
ret