Function at 0x4035f0
Capabilities:
Check http status code
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x14], edx
mov edx, dword [eax]
push edi
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x16
push dword [ecx + 8]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40364b
call ebx
cmp eax, 0x7a
je 0x40364b
or edi, 0xffffffff
call ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x403680
lea edi, [eax - 2]
call ebx
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp - 8]
push 0
push 0x16
push dword [eax + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x4036a3
lea edi, [eax - 3]
jmp 0x403794
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push 0
push 0x20000013
push dword [eax + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp dword [ebp - 0xc], 0xc8
je 0x4036da
mov edi, 0xfffffffc
jmp 0x403796
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
mov eax, dword [ebp - 8]
push dword [eax + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40378f
mov eax, dword [ebp - 4]
test eax, eax
je 0x403796
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4037d9
mov eax, dword [ebp - 8]
push 0
push dword [ebp - 4]
push esi
push dword [eax + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4037be
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
cmp dword [ebp - 0x10], edi
jne 0x40373f
push dword [ebp - 4]
jmp 0x40374b
mov edx, dword [ebp - 4]
lea eax, [ecx + edx]
cmp dword [ebp - 0x10], eax
jle 0x40375a
push edx
mov eax, dword [ebp - 0x14]
add eax, ecx
push esi
push eax
call fcn.0041fee0
add esp, 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 4], edi
add dword [ecx], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push dword [eax + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4036f5
mov edi, 0xfffffffb
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push dword [ebp - 0x18]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, 0xfffffff9
call ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40379c
mov edi, 0xfffffffa
jmp 0x403794