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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a04fb
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.00477760
mov eax, dword [0x4c8748]
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 esi, dword [ebp + 0x10]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x1044], eax
mov eax, ebx
mov dword [ebx + 0x10], 0
jb 0x4641e5
mov eax, dword [ebx]
push 0
push 0
push 0
push 0
push 0x4ad9e8
mov byte [eax], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x104c], eax
test eax, eax
je 0x4645c5
push 0x2710
push 0x2710
push 0x2710
push 0x2710
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0
push dword [ebp + 0x18]
push edi
push dword [ebp - 0x104c]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x1050], eax
test eax, eax
je 0x4645b9
mov ecx, dword [ebp + 0x1c]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
push ecx
push 0
push 0
push 0
push dword [ebp - 0x1044]
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x1044], edi
test edi, edi
je 0x4645ab
push 0x32
xor eax, eax
mov dword [ebp - 0x1024], 0
push str.Content_Type:application_x_www_form_urlencoded_r_n_r_n
lea ecx, [ebp - 0x1034]
mov dword [ebp - 0x1020], 7
mov word [ebp - 0x1034], ax
call fcn.00404110
cmp dword [esi + 0x14], 0x10
mov ecx, dword [esi + 0x10]
mov dword [ebp - 4], 0
jb 0x4642bb
mov esi, dword [esi]
cmp dword [ebp - 0x1020], 8
lea eax, [ebp - 0x1034]
push 0
cmovae eax, dword [ebp - 0x1034]
push ecx
push ecx
push esi
push dword [ebp - 0x1024]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4642ff
lea ecx, [ebp - 0x1034]
call fcn.00401cf0
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call esi
jmp 0x4645b1
push 0
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x4642e6
mov dword [ebp - 0x1018], 0
nop word [eax + eax]
push 0x1001
lea eax, [ebp - 0x1014]
push 0
push eax
call fcn.00478960
add esp, 0xc
lea eax, [ebp - 0x1018]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x464547
cmp dword [ebp - 0x1018], 0
je 0x464547
lea eax, [ebp - 0x101c]
mov dword [ebp - 0x101c], 0
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x464547
mov ecx, dword [ebx + 0x14]
mov eax, ecx
mov edx, dword [ebx + 0x10]
sub eax, edx
mov edi, dword [ebp - 0x101c]
mov dword [ebp - 0x103c], edi
mov dword [ebp - 0x1038], edx
mov dword [ebp - 0x1048], ecx
cmp edi, eax
ja 0x4643d7
lea eax, [edi + edx]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp ecx, 0x10
jb 0x4643ba
mov eax, dword [ebx]
lea esi, [eax + edx]
push edi
lea eax, [ebp - 0x1014]
push eax
push esi
call fcn.004790b0
add esp, 0xc
mov byte [edi + esi], 0
jmp 0x464534
mov eax, SysReAllocString
sub eax, edx
cmp eax, edi
jb 0x4645e9
lea eax, [edi + edx]
mov esi, eax
mov dword [ebp - 0x1040], eax
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x464403
mov esi, SysReAllocString
jmp 0x464421
mov edi, ecx
mov eax, SysReAllocString
shr edi, 1
sub eax, edi
cmp ecx, eax
jbe 0x464419
mov esi, SysReAllocString
jmp 0x464421
lea eax, [edi + ecx]
cmp esi, eax
cmovb esi, eax
xor ecx, ecx
mov eax, esi
add eax, 1
setb cl
neg ecx
or ecx, eax
cmp ecx, 0x1000
jb 0x464466
lea eax, [ecx + 0x23]
cmp eax, ecx
mov ecx, 0xffffffff
cmovbe eax, ecx
push eax
call fcn.00477045
add esp, 4
test eax, eax
je 0x4645e4
mov edx, dword [ebp - 0x1038]
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x46447f
test ecx, ecx
je 0x46447d
push ecx
call fcn.00477045
mov edx, dword [ebp - 0x1038]
add esp, 4
mov edi, eax
jmp 0x46447f
xor edi, edi
cmp dword [ebp - 0x1048], 0x10
mov eax, dword [ebp - 0x1040]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], esi
push edx
jb 0x464503
mov eax, dword [ebx]
push eax
push edi
mov dword [ebp - 0x1040], eax
call fcn.00478b30
push dword [ebp - 0x103c]
mov esi, dword [ebp - 0x1038]
lea eax, [ebp - 0x1014]
push eax
add esi, edi
push esi
call fcn.00478b30
mov eax, dword [ebp - 0x103c]
add esp, 0x18
mov ecx, dword [ebp - 0x1048]
inc ecx
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x1040]
cmp ecx, 0x1000
jb 0x4644f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4645e4
mov eax, edx
push ecx
push eax
call fcn.00476d79
add esp, 8
jmp 0x464532
push ebx
push edi
call fcn.00478b30
push dword [ebp - 0x103c]
mov esi, dword [ebp - 0x1038]
lea eax, [ebp - 0x1014]
push eax
add esi, edi
push esi
call fcn.00478b30
mov eax, dword [ebp - 0x103c]
add esp, 0x18
mov byte [eax + esi], 0
mov dword [ebx], edi
cmp dword [ebp - 0x1018], 0
mov edi, dword [ebp - 0x1044]
ja 0x464320
mov edx, dword [ebp - 0x1020]
cmp edx, 8
jb 0x464583
mov ecx, dword [ebp - 0x1034]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x464579
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4645e4
push edx
push ecx
call fcn.00476d79
add esp, 8
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
push edi
mov dword [ebp - 0x1024], 0
mov dword [ebp - 0x1020], 7
mov word [ebp - 0x1034], ax
call esi
jmp 0x4645b1
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x1050]
call esi
push dword [ebp - 0x104c]
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.0047702f
mov esp, ebp
pop ebp
ret
call fcn.0047c5ae
call fcn.00403f10
int3