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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3147
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x3078
call fcn.0055d9b0
mov eax, dword [0x616fe8]
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 - 0x302c], edx
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, ebx
mov dword [ebp - 0x3018], edi
push 0x3c
mov dword [ebp - 0x301c], eax
mov dword [ebp - 0x3044], eax
lea eax, [ebp - 0x3088]
push ebx
push eax
mov dword [ebp - 0x3020], ebx
mov dword [ebp - 4], ebx
call fcn.005639e0
or eax, 0xffffffff
mov dword [ebp - 0x3088], 0x3c
add esp, 0xc
mov dword [ebp - 0x3080], eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3074], eax
mov dword [ebp - 0x3058], eax
mov dword [ebp - 0x3050], eax
mov eax, dword [esi + 0x10]
jb 0x425f1b
mov esi, dword [esi]
lea ecx, [ebp - 0x3088]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x4261e9
push ebx
xor eax, eax
mov ecx, 0x800000
cmp dword [ebp - 0x307c], 2
push ebx
cmove eax, ecx
push ebx
mov dword [ebp - 0x3028], eax
movzx eax, word [ebp - 0x3070]
push ebx
push 0x5f0858
mov dword [ebp - 0x3024], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0x3048], esi
test esi, esi
je 0x4261e9
push 4
lea eax, [ebp - 0x3034]
mov dword [ebp - 0x3034], 0xfa0
push eax
push 3
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x4261aa
push 4
lea eax, [ebp - 0x3038]
mov dword [ebp - 0x3038], 0xfa0
push eax
push 5
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x4261aa
push 4
lea eax, [ebp - 0x303c]
mov dword [ebp - 0x303c], 0xfa0
push eax
push 6
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x4261aa
push 0x800
lea eax, [ebp - 0x814]
push ebx
push eax
call fcn.005639e0
push dword [ebp - 0x3074]
lea eax, [ebp - 0x814]
push dword [ebp - 0x3078]
push 0x400
push eax
call fcn.0056e180
add esp, 0x1c
lea eax, [ebp - 0x814]
push ebx
push dword [ebp - 0x3024]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [ebp - 0x304c], edi
test edi, edi
je 0x4261a4
push 0x800
lea eax, [ebp - 0x1014]
push ebx
push eax
call fcn.005639e0
push dword [ebp - 0x3058]
lea eax, [ebp - 0x1014]
push dword [ebp - 0x305c]
push 0x400
push eax
call fcn.0056e180
add esp, 0x1c
lea eax, [ebp - 0x1014]
push dword [ebp - 0x3028]
push ebx
push ebx
push ebx
push eax
push 0x5f0880
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x3024], edi
test edi, edi
je 0x426193
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x426188
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x426188
push ebx
lea eax, [ebp - 0x3040]
mov dword [ebp - 0x3030], ebx
push eax
lea eax, [ebp - 0x3030]
mov dword [ebp - 0x3040], 4
push eax
push ebx
push 0x20000005
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push 0x2000
lea eax, [ebp - 0x3014]
push ebx
push eax
call fcn.005639e0
add esp, 0xc
lea eax, [ebp - 0x3020]
push eax
push 0x2000
lea eax, [ebp - 0x3014]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x426188
mov eax, dword [ebp - 0x3020]
test eax, eax
je 0x42617e
lea ecx, [ebp - 0x3014]
mov byte [ebp - 0x3028], bl
push dword [ebp - 0x3028]
add eax, ecx
push eax
mov eax, ecx
push eax
mov eax, dword [ebp - 0x302c]
mov ecx, eax
push dword [eax + 4]
call fcn.00426553
mov edx, dword [ebp - 0x302c]
mov eax, dword [edx + 4]
sub eax, dword [edx]
push eax
push dword [ebp - 0x3030]
push 0x1401
push dword [ebp - 0x3018]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 0x3020]
test eax, eax
jne 0x4260e8
mov dword [ebp - 0x301c], 1
test edi, edi
je 0x426193
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x304c]
test eax, eax
je 0x4261a4
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [ebp - 0x3018]
test esi, esi
je 0x4261b5
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp dword [ebp - 0x301c], 0
je 0x4261e9
push ebx
push ebx
push 0x1402
jmp 0x4261f0
push ebx
push ebx
push 0x1403
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [ebp - 0x301c]
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.0055d244
mov esp, ebp
pop ebp
ret