Function at 0x439af0
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d0cc0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3078
call fcn.005720c0
mov eax, dword [0x649fe8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3028], edx
mov esi, ecx
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x3c
push eax
mov dword [ebp - 0x3018], eax
mov dword [ebp - 0x3040], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3088]
push eax
mov dword [ebp - 0x3048], ebx
mov dword [ebp - 0x301c], 0
call fcn.0058db90
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3088], 0x3c
mov dword [ebp - 0x3080], 0xffffffff
mov dword [ebp - 0x3074], 0xffffffff
mov dword [ebp - 0x3058], 0xffffffff
mov dword [ebp - 0x3050], 0xffffffff
jb 0x439ba1
mov esi, dword [esi]
lea ecx, [ebp - 0x3088]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x439e8e
push 0
xor eax, eax
mov ecx, 0x800000
cmp dword [ebp - 0x307c], 2
push 0
cmove eax, ecx
push 0
mov dword [ebp - 0x3024], eax
movzx eax, word [ebp - 0x3070]
push 0
push 0x62011c
mov dword [ebp - 0x3020], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
mov dword [ebp - 0x3044], edi
test edi, edi
je 0x439e8e
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea eax, [ebp - 0x3030]
push 4
push eax
push 3
push edi
mov dword [ebp - 0x3030], 0xfa0
call esi
test eax, eax
je 0x439e49
push 4
lea eax, [ebp - 0x3034]
mov dword [ebp - 0x3034], 0xfa0
push eax
push 5
push edi
call esi
test eax, eax
je 0x439e49
push 4
lea eax, [ebp - 0x3038]
mov dword [ebp - 0x3038], 0xfa0
push eax
push 6
push edi
call esi
test eax, eax
je 0x439e49
push 0x800
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.0058db90
push dword [ebp - 0x3074]
lea eax, [ebp - 0x814]
push dword [ebp - 0x3078]
push 0x400
push eax
call fcn.00598710
add esp, 0x1c
lea eax, [ebp - 0x814]
push 0
push dword [ebp - 0x3020]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov dword [ebp - 0x304c], esi
test esi, esi
je 0x439e49
push 0x800
lea eax, [ebp - 0x1014]
push 0
push eax
call fcn.0058db90
mov eax, dword [ebp - 0x3050]
add eax, dword [ebp - 0x3058]
push eax
push dword [ebp - 0x305c]
lea eax, [ebp - 0x1014]
push 0x400
push eax
call fcn.00598710
add esp, 0x1c
lea eax, [ebp - 0x1014]
push dword [ebp - 0x3024]
push 0
push 0
push 0
push eax
push 0x620144
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x3020], esi
test esi, esi
je 0x439e38
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x439e2d
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x439e2d
push 0
lea eax, [ebp - 0x303c]
mov dword [ebp - 0x302c], 0
push eax
lea eax, [ebp - 0x302c]
mov dword [ebp - 0x303c], 4
push eax
push 0
push 0x20000005
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
nop word [eax + eax]
push 0x2000
lea eax, [ebp - 0x3014]
push 0
push eax
call fcn.0058db90
add esp, 0xc
lea eax, [ebp - 0x301c]
push eax
push 0x2000
lea eax, [ebp - 0x3014]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x439e2d
mov eax, dword [ebp - 0x301c]
test eax, eax
je 0x439e23
lea ecx, [ebp - 0x3014]
mov byte [ebp - 0x3024], 0
push dword [ebp - 0x3024]
add eax, ecx
push eax
mov eax, ecx
push eax
mov eax, dword [ebp - 0x3028]
mov ecx, eax
push dword [eax + 4]
call fcn.0043a4c0
mov edx, dword [ebp - 0x3028]
mov eax, dword [edx + 4]
sub eax, dword [edx]
push eax
push dword [ebp - 0x302c]
push 0x1401
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x301c]
test eax, eax
jne 0x439d90
mov dword [ebp - 0x3018], 1
test esi, esi
je 0x439e38
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x304c]
test eax, eax
je 0x439e49
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x439e54
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x3018], 0
je 0x439e8e
push 0
push 0
push 0x1402
jmp 0x439e97
push 0
push 0
push 0x1403
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [ebp - 0x3018]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00571951
mov esp, ebp
pop ebp
ret