Function at 0x481020
Capabilities:
Connect to http server
Create http request
Read .ini file
Read and send data from client to server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b1e4
mov eax, dword fs:[0]
push eax
sub esp, 0xb54
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x82c], 0x50
lea ecx, [ebp - 0x81c]
call fcn.00403840
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x814], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x812]
push ecx
call fcn.004b0ac0
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call fcn.004b0ac0
add esp, 0xc
push 0x540e68
lea eax, [ebp - 0xb50]
push eax
call fcn.0041acc0
add esp, 8
mov dword [ebp - 0xb5c], eax
mov ecx, dword [ebp - 0xb5c]
mov dword [ebp - 0xb60], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xb60]
push edx
lea ecx, [ebp - 0x81c]
call fcn.00401970
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb50]
call fcn.00401eb0
lea ecx, [ebp - 0x81c]
call fcn.0043e290
push eax
push 0
push str.port
push str.proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x82c], eax
lea ecx, [ebp - 0x81c]
call fcn.0043e290
push eax
push 0x3ff
lea eax, [ebp - 0x814]
push eax
push 0x540868
push 0x540e40
push str.proxy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [ebp - 0x82c], 0
je 0x481154
lea ecx, [ebp - 0x814]
push ecx
call fcn.004b0eb7
add esp, 4
test eax, eax
jne 0x48117b
mov dword [ebp - 0xb54], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x81c]
call fcn.00401eb0
mov eax, dword [ebp - 0xb54]
jmp 0x481473
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x820], 2
mov edx, 1
test edx, edx
je 0x4813ef
push 0
push 0
push 0
push 1
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
jne 0x4811e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x820], eax
jmp 0x4813ef
mov dword [ebp - 0xa40], 0x7530
push 4
lea eax, [ebp - 0xa40]
push eax
push 2
mov ecx, dword [ebp - 0x824]
push ecx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea edx, [ebp - 0xa40]
push edx
push 6
mov eax, dword [ebp - 0x824]
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea ecx, [ebp - 0xa40]
push ecx
push 5
mov edx, dword [ebp - 0x824]
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 3
push 0
push 0
movzx eax, word [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x814]
push ecx
mov edx, dword [ebp - 0x824]
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x828], eax
cmp dword [ebp - 0x828], 0
jne 0x48127b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x820], eax
jmp 0x4813ef
mov dword [ebp - 0xa44], 0x8400c100
push 0
mov eax, dword [ebp - 0xa44]
push eax
push 0
push 0
push str.HTTP_1.1
mov ecx, dword [ebp + 8]
push ecx
push 0x548fc4
mov edx, dword [ebp - 0x828]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
jne 0x4812cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x820], eax
jmp 0x4813ef
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4812f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x820], eax
jmp 0x4813ef
xor ecx, ecx
mov word [ebp - 0xa3c], cx
push 0x206
push 0
lea edx, [ebp - 0xa3a]
push edx
call fcn.004b0ac0
add esp, 0xc
mov dword [ebp - 0x830], 0x208
push 0
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0xa3c]
push ecx
push 0x13
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x48134d
mov dword [ebp - 0x820], 0
cmp dword [ebp + 0x10], 0
je 0x4813e8
cmp dword [ebp + 0xc], 0
je 0x4813e8
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4813e8
push 0x548fbc
lea ecx, [ebp - 0xa3c]
push ecx
call fcn.004b0de4
add esp, 8
test eax, eax
jne 0x4813e8
mov byte [ebp - 0xb4c], 0
push 0x103
push 0
lea edx, [ebp - 0xb4b]
push edx
call fcn.004b0ac0
add esp, 0xc
lea eax, [ebp - 0x830]
push eax
push 0x104
lea ecx, [ebp - 0xb4c]
push ecx
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4813e8
cmp dword [ebp - 0x830], 0
jbe 0x4813e8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xb4c]
push edx
call fcn.00480760
add esp, 0xc
jmp 0x4813ef
cmp dword [ebp - 0x818], 0
je 0x48140f
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x818], 0
cmp dword [ebp - 0x828], 0
je 0x48142f
mov ecx, dword [ebp - 0x828]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x828], 0
cmp dword [ebp - 0x824], 0
je 0x48144f
mov edx, dword [ebp - 0x824]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x824], 0
mov eax, dword [ebp - 0x820]
mov dword [ebp - 0xb58], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x81c]
call fcn.00401eb0
mov eax, dword [ebp - 0xb58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret