Function at 0x4059e0
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 0x46b208
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1094
call fcn.004391d0
mov eax, dword [0x48f244]
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 ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10a0], eax
mov dword [ebp - 0x1080], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1074], 0
mov dword [ebp - 0x106c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov dword [ebp - 0x109c], ebx
mov dword [ebp - 0x1094], eax
mov dword [ebp - 0x1070], ecx
mov byte [eax], 0
mov dword [ebp - 0x1074], 1
mov dword [ebp - 4], 1
test edi, edi
je 0x405ee4
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405a90
sub ecx, edx
je 0x405ee4
mov eax, dword [ebx + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x405ab6
push eax
call esi
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x405ac7
push eax
call esi
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x405ad8
push eax
call esi
mov dword [ebx + 8], 0
push 0
push 0
push 0
push 0
push str.Http_connect
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebx + 8], eax
test eax, eax
je 0x405e38
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1068], 0x50
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 0xf
mov byte [ebp - 0x1048], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0xf
mov byte [ebp - 0x1030], 0
lea eax, [ebp - 0x1068]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1030]
mov ecx, edi
push eax
lea edx, [ebp - 0x1048]
call fcn.00407560
mov ecx, dword [ebp - 0x1068]
mov eax, 0x1bb
add esp, 8
cmp cx, ax
jne 0x405b80
mov byte [ebx + 4], 1
cmp dword [ebp - 0x1034], 0x10
lea eax, [ebp - 0x1048]
push 0
cmovae eax, dword [ebp - 0x1048]
push 0
push 3
push 0
push 0
push ecx
push eax
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, eax
mov dword [ebx + 0xc], edx
test edx, edx
je 0x405e53
cmp byte [ebx + 4], 0
mov eax, connect
push 0
mov ecx, 0x80802000
cmove ecx, eax
cmp dword [ebp - 0x101c], 0x10
push ecx
push 0
push 0
push str.HTTP_1.1
lea eax, [ebp - 0x1030]
mov ecx, 0x483828
cmovae eax, dword [ebp - 0x1030]
cmp dword [ebp - 0x1080], 0
push eax
mov eax, 0x483824
cmovne eax, ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x405e6e
mov eax, dword [ebp - 0x1070]
test eax, eax
jne 0x405c1d
xor esi, esi
jmp 0x405c2b
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x405c22
sub esi, ecx
mov eax, dword [ebp - 0x106c]
test eax, eax
jne 0x405c39
xor edi, edi
jmp 0x405c49
mov edi, eax
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x405c40
sub edi, ecx
lea eax, [ebp - 0x1060]
push eax
lea ecx, [ebx + 0x14]
call fcn.0040b240
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1060]
cmp dword [ebp - 0x104c], 0x10
push 0xa0000000
push dword [ebp - 0x1050]
cmovae eax, dword [ebp - 0x1060]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
mov ecx, dword [ebp - 0x106c]
push edi
push ecx
mov ecx, dword [ebp - 0x1070]
push esi
push ecx
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x405e89
push 0x1001
lea eax, [ebp - 0x1018]
push 0
push eax
call fcn.00444b80
add esp, 0xc
mov dword [ebp - 0x1064], 0x1000
lea eax, [ebp - 0x1064]
push 0
push eax
lea eax, [ebp - 0x1018]
push eax
push 0x15
push dword [ebx + 0x10]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x405ea4
lea eax, [ebp - 0x1018]
push 0x483830
push eax
call fcn.00446770
add esp, 8
test eax, eax
jne 0x405ebf
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [ebp - 0x1094]
lea eax, [ebp - 0x1064]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push dword [ebx + 0x10]
call edi
test eax, eax
je 0x405d5b
mov eax, dword [ebp - 0x1064]
test eax, eax
je 0x405d5b
cmp eax, 0x1001
jae 0x405eda
push eax
mov byte [ebp + eax - 0x1018], 0
mov ecx, esi
lea eax, [ebp - 0x1018]
push eax
call fcn.004045e0
jmp 0x405d11
lea ecx, [ebp - 0x1060]
call fcn.00405010
mov edx, dword [ebp - 0x101c]
cmp edx, 0x10
jb 0x405da0
mov ecx, dword [ebp - 0x1030]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405d96
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405edf
push edx
push ecx
call fcn.00439095
add esp, 8
mov edx, dword [ebp - 0x1034]
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 0xf
mov byte [ebp - 0x1030], 0
cmp edx, 0x10
jb 0x405e18
mov ecx, dword [ebp - 0x1048]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405deb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405edf
push edx
push ecx
call fcn.00439095
add esp, 8
jmp 0x405e18
mov eax, esi
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.004390b1
mov esp, ebp
pop ebp
ret 0x18
push 0x48d00c
lea eax, [ebp - 0x1078]
mov dword [ebp - 0x1078], 1
push eax
call fcn.00444d5c
push 0x48d00c
lea eax, [ebp - 0x107c]
mov dword [ebp - 0x107c], 2
push eax
call fcn.00444d5c
push 0x48d00c
lea eax, [ebp - 0x1084]
mov dword [ebp - 0x1084], 1
push eax
call fcn.00444d5c
push 0x48d00c
lea eax, [ebp - 0x1088]
mov dword [ebp - 0x1088], 3
push eax
call fcn.00444d5c
push 0x48d00c
lea eax, [ebp - 0x108c]
mov dword [ebp - 0x108c], 4
push eax
call fcn.00444d5c
push 0x48d00c
lea eax, [ebp - 0x1090]
mov dword [ebp - 0x1090], 5
push eax
call fcn.00444d5c
call fcn.0043a04e
call fcn.004480ba
push 0x48d00c
lea eax, [ebp - 0x1098]
mov dword [ebp - 0x1098], 0xe
push eax
call fcn.00444d5c
int3