Function at 0x405f00
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 0x46b288
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 0x40641b
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405fb0
sub ecx, edx
sar ecx, 1
je 0x40641b
mov eax, dword [ebx + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x405fdc
push eax
call esi
mov dword [ebx + 0x10], 0
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x405fed
push eax
call esi
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 8]
test eax, eax
je 0x405ffe
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 0x40636f
xor eax, eax
mov dword [ebp - 0x1048], 0
mov dword [ebp - 0x1068], 0x50
mov dword [ebp - 0x1038], 0
mov dword [ebp - 0x1034], 7
mov word [ebp - 0x1048], ax
mov dword [ebp - 0x1030], eax
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
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.00404b60
mov ecx, dword [ebp - 0x1068]
mov eax, 0x1bb
add esp, 8
cmp cx, ax
jne 0x4060a0
mov byte [ebx + 4], 1
cmp dword [ebp - 0x1034], 8
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_InternetConnectW]
mov edx, eax
mov dword [ebx + 0xc], edx
test edx, edx
je 0x40638a
cmp byte [ebx + 4], 0
mov eax, connect
push 0
mov ecx, 0x80802000
cmove ecx, eax
cmp dword [ebp - 0x101c], 8
push ecx
push 0
push 0
push 0x483834
lea eax, [ebp - 0x1030]
mov ecx, str.POST
cmovae eax, dword [ebp - 0x1030]
cmp dword [ebp - 0x1080], 0
push eax
mov eax, 0x483848
cmovne eax, ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4063a5
mov eax, dword [ebp - 0x1070]
test eax, eax
jne 0x40613d
xor esi, esi
jmp 0x406151
mov esi, eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x406142
sub esi, ecx
sar esi, 1
mov eax, dword [ebp - 0x106c]
test eax, eax
jne 0x40615f
xor edi, edi
jmp 0x40616d
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x406164
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_HttpSendRequestW]
test eax, eax
je 0x4063c0
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 0x4063db
lea eax, [ebp - 0x1018]
push 0x483830
push eax
call fcn.00446770
add esp, 8
test eax, eax
jne 0x4063f6
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [ebp - 0x1094]
nop word [eax + eax]
lea eax, [ebp - 0x1064]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
push dword [ebx + 0x10]
call edi
test eax, eax
je 0x40628a
mov eax, dword [ebp - 0x1064]
test eax, eax
je 0x40628a
cmp eax, 0x1001
jae 0x406411
push eax
mov byte [ebp + eax - 0x1018], 0
mov ecx, esi
lea eax, [ebp - 0x1018]
push eax
call fcn.004045e0
jmp 0x406240
lea ecx, [ebp - 0x1060]
call fcn.00405010
mov edx, dword [ebp - 0x101c]
cmp edx, 8
jb 0x4062d5
mov ecx, dword [ebp - 0x1030]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4062cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406416
push edx
push ecx
call fcn.00439095
add esp, 8
mov edx, dword [ebp - 0x1034]
xor eax, eax
mov dword [ebp - 0x1020], 0
mov dword [ebp - 0x101c], 7
mov word [ebp - 0x1030], ax
cmp edx, 8
jb 0x40634f
mov ecx, dword [ebp - 0x1048]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406328
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406416
push edx
push ecx
call fcn.00439095
add esp, 8
jmp 0x40634f
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