Function at 0x4b2b50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x194
mov eax, dword [0x6f7d14]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
test esi, esi
je 0x4b30e9
cmp dword [esi + 4], 0
je 0x4b30e9
mov eax, dword [0x6fe0bc]
push edi
mov edi, dword [0x6fe0c0]
test eax, eax
jne 0x4b2b91
mov edi, dword [esi + 8]
test edi, edi
mov ecx, 0x15
push ebx
cmove edi, ecx
lea ebx, [esi + 0x18]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
test eax, eax
je 0x4b2bac
push eax
jmp 0x4b2baf
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x4b2be6
push str.gethostbyname_failed
push eax
push 9
call fcn.00472980
add esp, 0xc
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x194
ret
cmp word [ecx + 0xa], 4
jbe 0x4b2c19
push str.gethostbyname_address_mismatch
push 0
push 9
call fcn.00472980
add esp, 0xc
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x194
ret
mov eax, 2
mov word [ebx], ax
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [esi + 0x1c]
push eax
call fcn.00633410
add esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [esi + 0x1a], ax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x2c], eax
cmp eax, 0xffffffff
jne 0x4b2c82
push str.socket_failed
push 0
push 9
call fcn.00472980
add esp, 0xc
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x194
ret
push 0x10
push ebx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x4b2c9c
push str.Failed_to_create_a_connection
push 0
jmp 0x4b30b4
push esi
call fcn.004b4850
add esp, 4
cmp eax, 2
jne 0x4b30be
cmp dword [0x6fe0bc], 0
mov ebx, dword [sym.imp.WS2_32.dll_send]
je 0x4b2e3a
mov eax, dword [0x6fe0c4]
test eax, eax
je 0x4b2db9
push eax
push str.USER__s_r_n
lea eax, [esp + 0x14]
push 0x190
push eax
call fcn.0043df20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1ab], 0
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2cf5
push 0
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
push dword [esi + 0x2c]
call ebx
mov edi, eax
test edi, edi
js 0x4b2f53
push esi
call fcn.004b4850
add esp, 4
sub eax, 1
je 0x4b2db9
sub eax, 1
je 0x4b2d57
sub eax, 1
jne 0x4b30be
mov eax, dword [0x6fe0c8]
test eax, eax
jne 0x4b2d60
push str.PASS_anonymous__r_n
lea eax, [esp + 0x10]
push 0x190
push eax
call fcn.0043df20
add esp, 0xc
jmp 0x4b2d78
mov eax, dword [0x6fe0c8]
test eax, eax
je 0x4b2db9
push eax
push str.PASS__s_r_n
lea eax, [esp + 0x14]
push 0x190
push eax
call fcn.0043df20
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x19b], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2d87
push 0
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
push dword [esi + 0x2c]
call ebx
mov edi, eax
test edi, edi
js 0x4b2f53
push esi
call fcn.004b4850
add esp, 4
cmp eax, 3
jg 0x4b30be
mov eax, dword [0x6fe0cc]
test eax, eax
js 0x4b30be
cmp eax, 1
jle 0x4b2dd9
cmp eax, 2
je 0x4b2e6e
jmp 0x4b30be
push dword [esi + 4]
lea eax, [esp + 0x10]
push str.SITE__s_r_n
push 0x190
push eax
call fcn.0043df20
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1ab], 0
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2e02
push 0
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
push dword [esi + 0x2c]
call ebx
mov edi, eax
test edi, edi
js 0x4b2f53
push esi
call fcn.004b4850
add esp, 4
cmp eax, 2
jne 0x4b2e61
mov dword [0x6fe0cc], 1
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4b2fc9
push str.USER_anonymous_r_n
lea eax, [esp + 0x10]
push 0xc8
push eax
call fcn.0043df20
add esp, 0xc
jmp 0x4b2fe1
cmp dword [0x6fe0cc], 1
je 0x4b30be
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
push eax
lea eax, [esp + 0x10]
test ecx, ecx
jne 0x4b2e92
push str.USER_anonymous__s_r_n
push 0x190
push eax
call fcn.0043df20
add esp, 0x10
jmp 0x4b2ea6
push ecx
push str.USER__s__s_r_n
push 0x190
push eax
call fcn.0043df20
add esp, 0x14
lea ecx, [esp + 0xc]
mov byte [esp + 0x19b], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2eb5
push 0
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
push dword [esi + 0x2c]
call ebx
mov edi, eax
test edi, edi
js 0x4b2f53
push esi
call fcn.004b4850
add esp, 4
cmp eax, 1
je 0x4b2fa5
cmp eax, 2
je 0x4b2fa5
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4b2f10
push str.PASS_anonymous__r_n
lea eax, [esp + 0x10]
push 0x190
push eax
call fcn.0043df20
add esp, 0xc
jmp 0x4b2f28
push eax
push str.PASS__s_r_n
lea eax, [esp + 0x14]
push 0x190
push eax
call fcn.0043df20
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x19b], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2f37
push 0
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
push dword [esi + 0x2c]
call ebx
mov edi, eax
test edi, edi
jns 0x4b2f8e
push str.send_failed
push 0
push 9
call fcn.00472980
add esp, 0xc
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
mov eax, edi
mov dword [esi + 0x2c], 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x194
ret
push esi
call fcn.004b4850
add esp, 4
cmp eax, 1
je 0x4b2fa5
cmp eax, 2
jne 0x4b30be
mov dword [0x6fe0cc], 2
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x194
ret
push eax
push str.USER__s_r_n
lea eax, [esp + 0x14]
push 0xc8
push eax
call fcn.0043df20
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0xd3], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2ff0
push 0
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
push dword [esi + 0x2c]
call ebx
test eax, eax
js 0x4b308a
push esi
call fcn.004b4850
add esp, 4
sub eax, 2
je 0x4b2faf
sub eax, 1
jne 0x4b30be
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4b3045
push str.PASS_anonymous__r_n
lea eax, [esp + 0x10]
push 0xc8
push eax
call fcn.0043df20
add esp, 0xc
jmp 0x4b305d
push eax
push str.PASS__s_r_n
lea eax, [esp + 0x14]
push 0xc8
push eax
call fcn.0043df20
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0xd3], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b3070
push 0
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
push dword [esi + 0x2c]
call ebx
test eax, eax
jns 0x4b3093
push str.send_failed
push 0
jmp 0x4b30b4
push esi
call fcn.004b4850
add esp, 4
sub eax, 2
je 0x4b2faf
sub eax, 1
jne 0x4b30be
push str.FTP_server_asking_for_ACCNT_on_anonymous_n
push 0x7d2
push 9
call fcn.00472980
add esp, 0xc
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
mov dword [esi + 0x2c], 0xffffffff
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x194
ret
mov ecx, dword [esp + 0x194]
or eax, 0xffffffff
pop esi
xor ecx, esp
call fcn.0062fc3e
add esp, 0x194
ret