Function at 0x4a6c48
Capabilities:
Connect to http server
Create http request
Manipulate console buffer
Send file using ftp

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [0x4aa178]
mov byte [eax], 1
mov eax, 0x4a1204
call fcn.0040a538
xor eax, eax
push ebp
push 0x4a6fa6
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4a6f40
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4aa280]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0049c49c
xor edx, edx
push ebp
push 0x4a6f2f
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004a11c8
mov esi, eax
mov word [0x4b02a8], 0
mov word [0x4b02aa], 0
push 0x4b02b4
push esi
call sub.kernel32.dll_GetConsoleScreenBufferInfo
mov eax, dword [0x4b02b8]
mov dword [0x4b02a8], eax
push 0
push 0
push 0
push 0
push 0x4a6fb8
call sub.wininet.dll_InternetOpenW
mov ebx, eax
test ebx, ebx
jne 0x4a6d5f
mov eax, 0x4b02ac
mov edx, 0x4a6fcc
call fcn.00406d38
mov eax, dword [0x4b02ac]
test eax, eax
je 0x4a6d24
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4a6d24
mov eax, 0x4b02ac
mov edx, dword [0x4b02ac]
call fcn.0040663c
mov ebx, eax
test ebx, ebx
je 0x4a6d2f
sub ebx, 4
mov ebx, dword [ebx]
push 0x4b02b0
push dword [0x4b02a8]
inc ebx
push ebx
mov eax, dword [0x4b02ac]
call fcn.00406dc4
push eax
push esi
call sub.kernel32.dll_WriteConsoleOutputCharacterW
call fcn.00405db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a6f8b
push 0xff
push 0x8000000
push 1
push 0x4a7008
push 0x4a701c
push 0x15
push 0x4a7038
push ebx
call sub.wininet.dll_InternetConnectW
mov edi, eax
test edi, edi
jne 0x4a6df6
mov eax, 0x4b02ac
mov edx, 0x4a706c
call fcn.00406d38
mov eax, dword [0x4b02ac]
test eax, eax
je 0x4a6dbb
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4a6dbb
mov eax, 0x4b02ac
mov edx, dword [0x4b02ac]
call fcn.0040663c
mov ebx, eax
test ebx, ebx
je 0x4a6dc6
sub ebx, 4
mov ebx, dword [ebx]
push 0x4b02b0
push dword [0x4b02a8]
inc ebx
push ebx
mov eax, dword [0x4b02ac]
call fcn.00406dc4
push eax
push esi
call sub.kernel32.dll_WriteConsoleOutputCharacterW
call fcn.00405db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a6f8b
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00404578
mov eax, dword [ebp - 0x14]
mov edx, 0x4a70c0
call fcn.004073f8
jne 0x4a6f0d
push 0xff
push 2
lea edx, [ebp - 0x18]
mov eax, 3
call fcn.00404578
mov eax, dword [ebp - 0x18]
call fcn.00406dc4
push eax
lea edx, [ebp - 0x1c]
mov eax, 2
call fcn.00404578
mov eax, dword [ebp - 0x1c]
call fcn.00406dc4
push eax
push edi
call sub.wininet.dll_FtpPutFileW
test eax, eax
je 0x4a6eb1
mov eax, 0x4b02ac
mov edx, 0x4a70d8
call fcn.00406d38
mov eax, dword [0x4b02ac]
test eax, eax
je 0x4a6e86
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4a6e86
mov eax, 0x4b02ac
mov edx, dword [0x4b02ac]
call fcn.0040663c
mov edi, eax
test edi, edi
je 0x4a6e91
sub edi, 4
mov edi, dword [edi]
push 0x4b02b0
push dword [0x4b02a8]
inc edi
push edi
mov eax, dword [0x4b02ac]
call fcn.00406dc4
push eax
push esi
call sub.kernel32.dll_WriteConsoleOutputCharacterW
jmp 0x4a6f0d
mov eax, 0x4b02ac
mov edx, 0x4a7144
call fcn.00406d38
mov eax, dword [0x4b02ac]
test eax, eax
je 0x4a6ee4
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4a6ee4
mov eax, 0x4b02ac
mov edx, dword [0x4b02ac]
call fcn.0040663c
mov edi, eax
test edi, edi
je 0x4a6eef
sub edi, 4
mov edi, dword [edi]
push 0x4b02b0
push dword [0x4b02a8]
inc edi
push edi
mov eax, dword [0x4b02ac]
call fcn.00406dc4
push eax
push esi
call sub.kernel32.dll_WriteConsoleOutputCharacterW
push ebx
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6f36
mov eax, dword [0x4aa280]
mov eax, dword [eax]
xor edx, edx
call fcn.0049c49c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6fad
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00406d30
ret