Function at 0x409c70
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 0x444481
mov eax, dword fs:[0]
push eax
mov eax, 0x2074
call fcn.004301c0
mov eax, dword [0x4576e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2080], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.0040a6d0
movzx eax, al
test eax, eax
je 0x409cdb
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00404520
jmp 0x40a2b9
mov ecx, dword [ebp - 0x2080]
call fcn.0040a2e0
push 0
push 0
push 0
push 0
push str.Http_connect
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x2080]
mov dword [ecx], eax
mov edx, dword [ebp - 0x2080]
cmp dword [edx], 0xffffffff
je 0x409d17
mov eax, dword [ebp - 0x2080]
cmp dword [eax], 0
jne 0x409d37
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00404520
jmp 0x40a2b9
mov ecx, 0x50
mov word [ebp - 0x203c], cx
lea ecx, [ebp - 0x2034]
call fcn.004044b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2074]
call fcn.004044b0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x203c]
push edx
lea eax, [ebp - 0x2074]
push eax
lea ecx, [ebp - 0x2034]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x2080]
call fcn.0040a370
lea ecx, [ebp - 0x2034]
call fcn.0040a6d0
movzx eax, al
test eax, eax
jne 0x409da2
movzx ecx, word [ebp - 0x203c]
test ecx, ecx
jge 0x409dfb
mov edx, dword [ebp - 0x2080]
mov eax, dword [edx]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x2080]
mov dword [ecx], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2074]
call fcn.00404520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2034]
call fcn.00404520
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00404520
jmp 0x40a2b9
push 0
push 0
push 3
push 0
push 0
movzx edx, word [ebp - 0x203c]
push edx
lea ecx, [ebp - 0x2034]
call fcn.004079e0
push eax
mov eax, dword [ebp - 0x2080]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, dword [ebp - 0x2080]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x2080]
cmp dword [eax + 4], 0xffffffff
je 0x409e49
mov ecx, dword [ebp - 0x2080]
cmp dword [ecx + 4], 0
jne 0x409ea2
mov edx, dword [ebp - 0x2080]
mov eax, dword [edx]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 0x2080]
mov dword [ecx], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2074]
call fcn.00404520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2034]
call fcn.00404520
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00404520
jmp 0x40a2b9
lea ecx, [ebp - 0x2058]
call fcn.004044b0
mov byte [ebp - 4], 4
cmp dword [ebp + 0xc], 0
jne 0x409ec9
push 0x447c34
lea ecx, [ebp - 0x2058]
call fcn.0040a6b0
jmp 0x409ed9
push str.POST
lea ecx, [ebp - 0x2058]
call fcn.0040a6b0
push 0
push 0x4000000
push 0
push 0
push str.HTTP_1.1
lea ecx, [ebp - 0x2074]
call fcn.004079e0
push eax
lea ecx, [ebp - 0x2058]
call fcn.004079e0
push eax
mov edx, dword [ebp - 0x2080]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, dword [ebp - 0x2080]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x2080]
cmp dword [edx + 8], 0xffffffff
je 0x409f36
mov eax, dword [ebp - 0x2080]
cmp dword [eax + 8], 0
jne 0x409fbb
mov ecx, dword [ebp - 0x2080]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x2080]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp - 0x2080]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x2080]
mov dword [eax + 4], 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2058]
call fcn.00404520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2074]
call fcn.00404520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2034]
call fcn.00404520
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00404520
jmp 0x40a2b9
mov dword [ebp - 0x2018], 0
cmp dword [ebp + 0xc], 0
jne 0x409ffc
push 0
push 0
lea ecx, [ebp + 0x10]
call fcn.00404820
push eax
lea ecx, [ebp + 0x10]
call fcn.004079e0
push eax
mov ecx, dword [ebp - 0x2080]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x2018], eax
jmp 0x40a098
lea ecx, [ebp + 0x2c]
call fcn.00404820
add eax, 1
push eax
call fcn.004118fd
add esp, 4
mov dword [ebp - 0x207c], eax
mov eax, dword [ebp - 0x207c]
mov dword [ebp - 0x2078], eax
lea ecx, [ebp + 0x2c]
call fcn.00404820
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x2078]
push ecx
call fcn.0042e940
add esp, 0xc
lea ecx, [ebp + 0x2c]
call fcn.00404820
push eax
lea ecx, [ebp + 0x2c]
call fcn.004079e0
push eax
mov edx, dword [ebp - 0x2078]
push edx
call fcn.0042fe50
add esp, 0xc
lea ecx, [ebp + 0x2c]
call fcn.00404820
push eax
mov eax, dword [ebp - 0x2078]
push eax
lea ecx, [ebp + 0x10]
call fcn.00404820
push eax
lea ecx, [ebp + 0x10]
call fcn.004079e0
push eax
mov ecx, dword [ebp - 0x2080]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [ebp - 0x2018], eax
cmp dword [ebp - 0x2018], 0
jne 0x40a0f9
mov ecx, dword [ebp - 0x2080]
call fcn.0040a2e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2058]
call fcn.00404520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2074]
call fcn.00404520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2034]
call fcn.00404520
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00404520
jmp 0x40a2b9
mov byte [ebp - 0x2014], 0
push 0x1fff
push 0
lea eax, [ebp - 0x2013]
push eax
call fcn.0042e940
add esp, 0xc
mov dword [ebp - 0x2038], 0x1fff
push 0
lea ecx, [ebp - 0x2038]
push ecx
lea edx, [ebp - 0x2014]
push edx
push 0x15
mov eax, dword [ebp - 0x2080]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x40a19e
mov ecx, dword [ebp - 0x2080]
call fcn.0040a2e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2058]
call fcn.00404520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2074]
call fcn.00404520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2034]
call fcn.00404520
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00404520
jmp 0x40a2b9
push 0x447c4c
lea edx, [ebp - 0x2014]
push edx
call fcn.0040a670
add esp, 8
test eax, eax
je 0x40a20e
mov ecx, dword [ebp - 0x2080]
call fcn.0040a2e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2058]
call fcn.00404520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2074]
call fcn.00404520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2034]
call fcn.00404520
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00404520
jmp 0x40a2b9
lea eax, [ebp - 0x2038]
push eax
push 0x1fff
lea ecx, [ebp - 0x2014]
push ecx
mov edx, dword [ebp - 0x2080]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [ebp - 0x2018], eax
cmp dword [ebp - 0x2018], 0
je 0x40a249
cmp dword [ebp - 0x2038], 0
jne 0x40a24b
jmp 0x40a271
mov ecx, dword [ebp - 0x2038]
mov byte [ebp + ecx - 0x2014], 0
lea edx, [ebp - 0x2014]
push edx
mov ecx, dword [ebp + 0x48]
call fcn.00404540
mov eax, 1
test eax, eax
jne 0x40a20e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2058]
call fcn.00404520
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2074]
call fcn.00404520
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2034]
call fcn.00404520
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00404520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00404520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e930
mov esp, ebp
pop ebp
ret 0x44