Function at 0x10133ee0
Capabilities:
Connect socket
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x194
mov eax, dword [0x10438fc0]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push esi
mov esi, dword [esp + 0x1a0]
xor ebx, ebx
cmp esi, ebx
jne 0x10133f1d
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.10148524
add esp, 0x194
ret
cmp dword [esi + 4], ebx
je 0x10133f03
mov ecx, dword [0x1044dc9c]
push ebp
mov ebp, dword [0x1044dca0]
cmp ecx, ebx
jne 0x10133f36
mov ebp, dword [esi + 8]
cmp ebp, ebx
jne 0x10133f3f
mov ebp, 0x15
xor eax, eax
push edi
lea edi, [esi + 0x18]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
cmp ecx, ebx
je 0x10133f57
push ecx
jmp 0x10133f5b
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
cmp eax, ebx
jne 0x10133f7d
push str.gethostbyname_failed
push ebx
push 9
call fcn.100e31a0
add esp, 0xc
or eax, 0xffffffff
jmp 0x10134391
cmp word [eax + 0xa], 4
jbe 0x10133f9c
push str.gethostbyname_address_mismatch
push ebx
push 9
call fcn.100e31a0
add esp, 0xc
or eax, 0xffffffff
jmp 0x10134391
mov ecx, 2
mov word [edi], cx
movsx edx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esi + 0x1c]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push ebp
call dword [sym.imp.WSOCK32.dll_htons]
push ebx
push 1
push 2
mov word [esi + 0x1a], ax
call dword [sym.imp.WSOCK32.dll_socket]
push 0x10
push edi
push eax
mov dword [esi + 0x2c], eax
call dword [sym.imp.WSOCK32.dll_connect]
test eax, eax
jge 0x10133ff7
push str.Failed_to_create_a_connection
push ebx
push 9
call fcn.100e31a0
add esp, 0xc
jmp 0x1013408e
mov eax, esi
call fcn.10133b40
cmp eax, 2
jne 0x10134206
cmp dword [0x1044dc9c], ebx
je 0x101341aa
mov eax, dword [0x1044dca4]
mov ebp, dword [sym.imp.MSVCR100.dll__snprintf]
cmp eax, ebx
je 0x10134124
push eax
push str.USER__s_r_n
lea edx, [esp + 0x18]
push 0x190
push edx
call ebp
lea eax, [esp + 0x20]
add esp, 0x10
mov byte [esp + 0x19f], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10134050
mov ecx, dword [esi + 0x2c]
push ebx
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, ebx
jl 0x10134288
mov eax, esi
call fcn.10133b40
sub eax, 1
je 0x10134124
sub eax, 1
je 0x101340a3
sub eax, 1
je 0x101340ae
mov eax, dword [esi + 0x2c]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
or eax, 0xffffffff
mov dword [esi + 0x2c], eax
jmp 0x10134391
mov eax, dword [0x1044dca8]
cmp eax, ebx
je 0x10134124
jmp 0x101340b7
mov eax, dword [0x1044dca8]
cmp eax, ebx
je 0x101340ce
push eax
push str.PASS__s_r_n
lea ecx, [esp + 0x18]
push 0x190
push ecx
call ebp
add esp, 0x10
jmp 0x101340e2
push str.PASS_anonymous__r_n
lea edx, [esp + 0x14]
push 0x190
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
mov byte [esp + 0x19f], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101340f0
mov ecx, dword [esi + 0x2c]
push ebx
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, ebx
jl 0x10134288
mov eax, esi
call fcn.10133b40
cmp eax, 3
jg 0x1013408e
mov eax, dword [0x1044dcac]
cmp eax, ebx
jl 0x1013408e
cmp eax, 1
jle 0x10134144
cmp eax, 2
je 0x10134228
jmp 0x1013408e
mov ecx, dword [esi + 4]
push ecx
push str.SITE__s_r_n
lea edx, [esp + 0x18]
push 0x190
push edx
call ebp
lea eax, [esp + 0x20]
add esp, 0x10
mov byte [esp + 0x19f], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10134170
mov ecx, dword [esi + 0x2c]
push ebx
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, ebx
jl 0x10134288
mov eax, esi
call fcn.10133b40
cmp eax, 2
jne 0x1013421b
mov dword [0x1044dcac], 1
mov ecx, esi
call fcn.10133c80
test eax, eax
jl 0x10134206
mov eax, esi
call fcn.10133b40
sub eax, 2
je 0x1013438f
sub eax, 1
jne 0x10134373
mov ecx, esi
call fcn.10133d50
test eax, eax
jl 0x1013408e
mov eax, esi
call fcn.10133b40
sub eax, 2
je 0x1013438f
sub eax, 1
jne 0x10134206
push str.FTP_server_asking_for_ACCNT_on_anonymous_n
push 0x7d2
push 9
call fcn.100e31a0
add esp, 0xc
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
or eax, 0xffffffff
mov dword [esi + 0x2c], eax
jmp 0x10134391
cmp dword [0x1044dcac], 1
je 0x1013408e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push ecx
cmp eax, ebx
jne 0x10134249
push str.USER_anonymous__s_r_n
push 0x190
push edx
call ebp
add esp, 0x10
jmp 0x1013425a
push eax
push str.USER__s__s_r_n
push 0x190
push edx
call ebp
add esp, 0x14
lea eax, [esp + 0x10]
mov byte [esp + 0x19f], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10134268
mov ecx, dword [esi + 0x2c]
push ebx
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, ebx
jge 0x101342b0
push str.send_failed
push ebx
push 9
call fcn.100e31a0
mov edx, dword [esi + 0x2c]
add esp, 0xc
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 0x2c], 0xffffffff
mov eax, edi
jmp 0x10134391
mov eax, esi
call fcn.10133b40
cmp eax, 1
je 0x10134385
cmp eax, 2
je 0x10134385
mov eax, dword [esi + 0x14]
cmp eax, ebx
jne 0x101342e6
push str.PASS_anonymous__r_n
lea eax, [esp + 0x14]
push 0x190
push eax
call ebp
add esp, 0xc
jmp 0x101342fb
push eax
push str.PASS__s_r_n
lea ecx, [esp + 0x18]
push 0x190
push ecx
call ebp
add esp, 0x10
lea eax, [esp + 0x10]
mov byte [esp + 0x19f], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10134310
sub eax, edx
push ebx
push eax
mov eax, dword [esi + 0x2c]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov edi, eax
cmp edi, ebx
jge 0x10134355
push str.send_failed
push ebx
push 9
call fcn.100e31a0
mov ecx, dword [esi + 0x2c]
add esp, 0xc
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [esi + 0x2c], 0xffffffff
mov eax, edi
jmp 0x10134391
mov eax, esi
call fcn.10133b40
cmp eax, 1
je 0x10134385
cmp eax, 2
je 0x10134385
cmp dword [0x1044dcac], 2
jne 0x1013408e
mov edx, dword [esi + 0x2c]
push edx
call dword [sym.imp.WSOCK32.dll_closesocket]
or eax, 0xffffffff
mov dword [esi + 0x2c], eax
jmp 0x10134391
mov dword [0x1044dcac], 2
xor eax, eax
mov ecx, dword [esp + 0x1a0]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.10148524
add esp, 0x194
ret