Function at 0x460000
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e1f8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4cf06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
push 0x1400000
push 0x8000
lea ecx, [ebp - 0x50]
call fcn.004593a0
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], 0xffffffff
test ebx, ebx
je 0x460064
or edx, 0xffffffff
mov ecx, ebx
call fcn.0043a7d0
mov edi, eax
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xffffffff
test esi, esi
je 0x460087
or edx, 0xffffffff
mov ecx, esi
call fcn.0043a7d0
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 2
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jne 0x4600b3
mov eax, dword [0x4d3d8c]
cmp eax, 7
jae 0x4600ae
cmp eax, 6
jne 0x4600aa
cmp dword [0x4d3d90], 1
jae 0x4600ae
xor ebx, ebx
jmp 0x4600b3
mov ebx, 4
test bl, 4
mov ecx, 0x1bb
mov eax, 0x50
mov esi, 0x4c2758
cmovne eax, ecx
test edi, edi
mov dword [ebp - 0x14], eax
mov eax, esi
cmovne eax, edi
push 0x4bdfe0
push eax
call fcn.0047ee80
add esp, 8
test eax, eax
je 0x46017c
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0
push eax
lea eax, [ebp - 0x14]
test edi, edi
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
cmovne ecx, edi
lea edx, [ebp - 0x3c]
push eax
call fcn.00460840
add esp, 0xc
test eax, eax
jne 0x46016b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.URL_parse_err__d_n
call fcn.0045cd50
mov esi, dword [ebp + 0x14]
mov edi, eax
add esp, 8
test edi, edi
je 0x460132
cmp edi, dword [esi]
je 0x46015e
mov eax, dword [esi]
test eax, eax
je 0x460147
push eax
call fcn.0047d4ed
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
test edi, edi
je 0x46015e
or edx, 0xffffffff
mov ecx, edi
call fcn.0043a7d0
mov dword [esi], eax
mov edi, dword [ebp - 0x3c]
xor ebx, ebx
mov esi, dword [ebp - 0x34]
jmp 0x46023b
cmp dword [ebp + 0x18], 0
mov edi, dword [ebp - 0x3c]
je 0x460179
or ebx, 4
jmp 0x46017c
and ebx, 0xfffffffb
test bl, 0x20
mov dword [ebp - 0x10], 0
mov ecx, 0x4bdfc0
mov dword [ebp - 0x28], 4
mov eax, str.Content_Type:_application_x_www_form_urlencoded
mov dword [ebp - 0x1c], 0
cmove eax, ecx
mov esi, ebx
mov dword [ebp - 0x24], eax
and esi, 4
mov eax, ebx
and al, 8
movzx ecx, al
mov eax, esi
neg ecx
push 0
sbb ecx, ecx
or eax, 0xfffffd20
push 0
and ecx, 0x3000
shl eax, 0x15
or ecx, eax
push 0
push 0
mov dword [ebp - 0x20], ecx
call fcn.00460a40
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x460271
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_err__d_n
call fcn.0045cd50
mov esi, dword [ebp + 0x14]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x460209
cmp ebx, dword [esi]
je 0x460235
mov eax, dword [esi]
test eax, eax
je 0x46021e
push eax
call fcn.0047d4ed
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
test ebx, ebx
je 0x460235
or edx, 0xffffffff
mov ecx, ebx
call fcn.0043a7d0
mov dword [esi], eax
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x10]
test esi, esi
je 0x460248
push esi
call fcn.0047d4ed
add esp, 4
test edi, edi
je 0x460255
push edi
call fcn.0047d4ed
add esp, 4
lea ecx, [ebp - 0x50]
call fcn.004593f0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4d3d8c], 0xa
jb 0x460297
test esi, esi
je 0x460297
push 4
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], 2
push ecx
push 0x94
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x14]
mov esi, 0x4c2758
test edi, edi
mov eax, esi
cmovne eax, edi
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x460368
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetConnect_err__d_n
call fcn.0045cd50
mov esi, eax
add esp, 8
mov eax, dword [ebp + 0x14]
test esi, esi
je 0x4602e8
cmp esi, dword [eax]
je 0x46031a
mov ecx, dword [eax]
test ecx, ecx
je 0x460300
push ecx
call fcn.0047d4ed
mov eax, dword [ebp + 0x14]
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0xffffffff
test esi, esi
je 0x46031a
or edx, 0xffffffff
mov ecx, esi
call fcn.0043a7d0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x34]
je 0x460238
and ebx, 0xfffffffb
mov eax, 0x4c2758
or ebx, 0x10
mov edx, eax
push ebx
push dword [ebp + 0x14]
test esi, esi
push dword [ebp + 0x10]
cmovne edx, esi
test edi, edi
push dword [ebp + 0xc]
cmovne eax, edi
push dword [ebp + 8]
mov ecx, eax
call fcn.00460000
add esp, 0x14
mov dword [ebp - 0x10], eax
jmp 0x460238
push 0
push dword [ebp - 0x20]
mov eax, esi
mov edx, str.POST
mov esi, dword [ebp - 0x34]
test esi, esi
push 0
push 0
cmovne eax, esi
test bl, 2
push str.HTTP_1.1
push eax
mov eax, 0x4be010
cmove eax, edx
push eax
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x4603cf
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpOpenRequest_err__d_n
call fcn.0045cd50
mov ecx, dword [ebp + 0x14]
add esp, 8
push eax
call fcn.0043a710
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
jmp 0x460320
push dword [ebp + 8]
mov eax, 0x4c2758
test esi, esi
mov edx, eax
mov ecx, eax
cmovne edx, esi
mov eax, 0x12c
mov esi, dword [ebp + 0xc]
test edi, edi
cmovne ecx, edi
cmp esi, eax
cmovl eax, esi
push eax
push esi
push edx
push ecx
push str.host_s_path_s_data_len_d_data_.s_n
call fcn.00459e20
add esp, 0x18
call fcn.00460ab0
cmp byte [eax], 0
je 0x46041e
push 0xa0000000
push 0xffffffffffffffff
push eax
push dword [ebp + 0x18]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov edx, dword [ebp - 0x24]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460426
push dword [ebp + 0xc]
sub ecx, esi
mov esi, dword [ebp + 0x18]
push dword [ebp + 8]
push ecx
push edx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x460474
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f7d
jne 0x460467
mov cl, bl
xor edx, edx
and cl, 0x14
mov esi, 1
cmp cl, 4
cmove edx, esi
mov dword [ebp - 0x1c], edx
push 0xffffffffffffffff
push eax
push str.HttpSendRequest_err__d_n
jmp 0x46053b
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push dword [ebp - 0x10]
push str.status_d_n
call fcn.00459e20
mov esi, dword [ebp - 0x48]
add esp, 8
mov ecx, dword [ebp - 0x4c]
mov eax, ecx
mov dword [ebp - 0x14], 0
sub eax, esi
cmp eax, 0x8000
jae 0x4604c6
push 0x8000
lea ecx, [ebp - 0x50]
call fcn.004594d0
test eax, eax
je 0x46051d
mov esi, dword [ebp - 0x48]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x4c]
sub eax, esi
push eax
mov eax, dword [ebp - 0x50]
add eax, esi
push eax
push dword [ebp + 0x18]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x46052d
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x4c]
lea eax, [esi + edx]
cmp eax, ecx
jbe 0x4604f1
int3
add esi, edx
mov dword [ebp - 0x48], esi
test edx, edx
jne 0x4604a0
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 1]
push eax
push dword [ebp - 0x50]
call fcn.0040e2e0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov byte [esi + eax], 0
cmp esi, dword [ecx + 4]
jbe 0x460518
int3
mov dword [ecx + 8], esi
jmp 0x46054c
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.vbuf_grow_err__d_n
jmp 0x46053b
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetReadFile_err__d_n
call fcn.0045cd50
mov ecx, dword [ebp + 0x14]
add esp, 8
push eax
call fcn.0043a710
push dword [ebp + 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x460320