Function at 0x40af60
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4436fb
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.00424ef0
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1018], eax
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1038], eax
mov dword [ebx + 0x10], 0
jb 0x40afbb
mov eax, dword [ebx]
jmp 0x40afbd
mov eax, ebx
push 0
push 0
push 0
push 0
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_
mov byte [eax], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [ebp - 0x103c], esi
test esi, esi
je 0x40b213
push 0x2710
push 0x2710
push 0x2710
push 0x2710
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0
push dword [ebp + 0x18]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1040], eax
test eax, eax
je 0x40b20c
mov ecx, dword [ebp + 0x1c]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
push ecx
push 0
push 0
push 0
push dword [ebp - 0x1018]
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
test edi, edi
je 0x40b1fe
push 0x32
xor eax, eax
mov dword [ebp - 0x101c], 7
push str.Content_Type:application_x_www_form_urlencoded_r_n_r_n
lea ecx, [ebp - 0x1030]
mov dword [ebp - 0x1020], 0
mov word [ebp - 0x1030], ax
call fcn.00401e60
mov ecx, dword [ebp - 0x1038]
lea esi, [ebp - 0x1030]
cmp dword [ebp - 0x101c], 8
push 0
cmovae esi, dword [ebp - 0x1030]
mov eax, dword [ecx + 0x10]
push eax
push eax
mov dword [ebp - 4], 0
call fcn.0040b910
push eax
push dword [ebp - 0x1020]
push esi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x40b0df
mov eax, dword [ebp - 0x101c]
cmp eax, 8
jb 0x40b1d4
inc eax
lea ecx, [ebp - 0x1030]
push eax
push dword [ebp - 0x1030]
call fcn.00401f60
jmp 0x40b1d4
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40b0b8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov dword [ebp - 0x1034], 0
nop dword [eax]
push 0x1001
lea eax, [ebp - 0x1014]
push 0
push eax
call fcn.00427f80
add esp, 0xc
lea eax, [ebp - 0x1034]
push eax
push edi
call esi
test eax, eax
je 0x40b172
cmp dword [ebp - 0x1034], 0
je 0x40b172
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x1018], 0
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40b172
push dword [ebp - 0x1018]
lea eax, [ebp - 0x1014]
mov ecx, ebx
push eax
call fcn.0040b7e0
cmp dword [ebp - 0x1034], 0
ja 0x40b100
mov eax, dword [ebp - 0x101c]
cmp eax, 8
jb 0x40b1d4
mov ecx, dword [ebp - 0x1030]
inc eax
cmp eax, 0x7fffffff
jbe 0x40b190
call fcn.0042b711
add eax, eax
cmp eax, 0x1000
jb 0x40b1cb
test byte [ebp - 0x1030], 0x1f
je 0x40b1a7
call fcn.0042b711
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b1b3
call fcn.0042b711
sub ecx, eax
cmp ecx, 4
jae 0x40b1bf
call fcn.0042b711
cmp ecx, 0x23
jbe 0x40b1c9
call fcn.0042b711
mov ecx, eax
push ecx
call fcn.004249eb
add esp, 4
xor eax, eax
mov dword [ebp - 0x101c], 7
push edi
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [ebp - 0x1020], eax
mov word [ebp - 0x1030], ax
call edi
mov esi, dword [ebp - 0x103c]
jmp 0x40b204
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x1040]
call edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret