Function at 0x10006420
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 0x100d56e4
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x10117d48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x510], ecx
mov dword [ebp - 0x50c], 0
mov dword [ebp - 4], 2
mov byte [ebp - 0x4a4], 0
push 0x3ff
push 0
lea eax, [ebp - 0x4a3]
push eax
call fcn.10092830
add esp, 0xc
mov dword [ebp - 0x504], 1
mov dword [ebp - 0x4e0], 0x400
lea ecx, [ebp - 0x4c0]
call fcn.10002230
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x500]
call fcn.10002230
mov byte [ebp - 4], 4
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x4e4], 0
mov dword [ebp - 0x88], 0
lea ecx, [ebp - 0x4dc]
call fcn.10005390
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa4]
call fcn.10005390
mov byte [ebp - 4], 6
push 0
push 0
push 0
push 1
push str.interall
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x10006578
push 3
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c]
push ecx
call fcn.100af510
add esp, 0xc
mov dword [ebp - 0x514], eax
mov edx, dword [ebp - 0x514]
mov dword [ebp - 0x518], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x518]
push eax
lea ecx, [ebp - 0xa4]
call fcn.10005340
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.10003050
lea ecx, [ebp - 0xa4]
call fcn.100aa4c0
push eax
push str.InternetOpenA_failed__s
lea ecx, [ebp - 0x4dc]
push ecx
call fcn.100abd40
add esp, 0xc
jmp 0x10006817
push 0
push 0
push 3
push 0x101049e3
push 0x101049ed
push 0
lea ecx, [ebp + 0xc]
call fcn.10002210
push eax
mov edx, dword [ebp - 0x84]
push edx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x4e4], eax
cmp dword [ebp - 0x4e4], 0
jne 0x10006618
push 3
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
call fcn.100af510
add esp, 0xc
mov dword [ebp - 0x51c], eax
mov ecx, dword [ebp - 0x51c]
mov dword [ebp - 0x520], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x520]
push edx
lea ecx, [ebp - 0xa4]
call fcn.10005340
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.10003050
lea ecx, [ebp - 0xa4]
call fcn.100aa4c0
push eax
push str.InternetConnectA_failed__s
lea eax, [ebp - 0x4dc]
push eax
call fcn.100abd40
add esp, 0xc
jmp 0x10006817
push 1
push 0x4000000
push 0
push 0
push 0
lea ecx, [ebp + 0x28]
call fcn.10002210
push eax
push str.POST
mov ecx, dword [ebp - 0x4e4]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x100066b8
push 3
push 0xffffffffffffffff
lea edx, [ebp - 0x64]
push edx
call fcn.100af510
add esp, 0xc
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x528], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x528]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.10005340
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x64]
call fcn.10003050
lea ecx, [ebp - 0xa4]
call fcn.100aa4c0
push eax
push str.HttpOpenRequestA_failed__s
lea edx, [ebp - 0x4dc]
push edx
call fcn.100abd40
add esp, 0xc
jmp 0x10006817
push str.Content_Type:_application_x_www_form_urlencoded_r_n_r_n
lea ecx, [ebp - 0x500]
call fcn.10002a70
cmp dword [ebp + 0x60], 0
jbe 0x10006701
push 4
lea eax, [ebp + 0x60]
push eax
push 6
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x10006701
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x101071f0
call fcn.100b1bb0
push eax
call fcn.100b2600
add esp, 0xc
lea ecx, [ebp + 0x44]
call fcn.1001a120
push eax
lea ecx, [ebp + 0x44]
call fcn.10002210
push eax
lea ecx, [ebp - 0x500]
call fcn.1001a120
push eax
lea ecx, [ebp - 0x500]
call fcn.10002210
push eax
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x100067a2
push 3
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
push eax
call fcn.100af510
add esp, 0xc
mov dword [ebp - 0x52c], eax
mov ecx, dword [ebp - 0x52c]
mov dword [ebp - 0x530], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x530]
push edx
lea ecx, [ebp - 0xa4]
call fcn.10005340
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x80]
call fcn.10003050
lea ecx, [ebp - 0xa4]
call fcn.100aa4c0
push eax
push str.HttpSendRequestA_failed__s
lea eax, [ebp - 0x4dc]
push eax
call fcn.100abd40
add esp, 0xc
jmp 0x10006817
mov ecx, dword [ebp - 0x4e0]
push ecx
push 0
lea edx, [ebp - 0x4a4]
push edx
call fcn.10092830
add esp, 0xc
lea eax, [ebp - 0x504]
push eax
mov ecx, dword [ebp - 0x4e0]
sub ecx, 1
push ecx
lea edx, [ebp - 0x4a4]
push edx
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x508], eax
cmp dword [ebp - 0x504], 0
je 0x1000680e
mov ecx, dword [ebp - 0x504]
mov byte [ebp + ecx - 0x4a4], 0
lea edx, [ebp - 0x4a4]
push edx
lea ecx, [ebp - 0x4c0]
call fcn.100041b0
cmp dword [ebp - 0x504], 0
jne 0x100067a2
cmp dword [ebp - 0x84], 0
je 0x1000682d
mov eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x4e4], 0
je 0x10006843
mov ecx, dword [ebp - 0x4e4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x88], 0
je 0x10006859
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp - 0x4c0]
push eax
mov ecx, dword [ebp + 8]
call fcn.10002160
mov ecx, dword [ebp - 0x50c]
or ecx, 1
mov dword [ebp - 0x50c], ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xa4]
call fcn.10003050
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4dc]
call fcn.10003050
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x500]
call fcn.100018b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c0]
call fcn.100018b0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.100018b0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.100018b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x44]
call fcn.100018b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008efb4
mov esp, ebp
pop ebp
ret 0x5c