Function at 0x4b3a20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
sub esp, 0x100
mov eax, dword [0x6f7d14]
xor eax, esp
mov dword [esp + 0xfc], eax
push esi
mov esi, dword [esp + 0x108]
push edi
test esi, esi
je 0x4b3b8e
push 6
push 1
xorps xmm0, xmm0
push 2
movups xmmword [esp + 0x18], xmm0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x30], eax
mov ecx, 2
mov word [esp + 0xc], cx
mov dword [esp + 8], 0x10
cmp eax, 0xffffffff
jne 0x4b3a89
push str.socket_failed
push 0
push 9
call fcn.00472980
add esp, 0xc
jmp 0x4b3b8e
cmp dword [esi + 0x28], 0
je 0x4b3c23
push str.PASV_r_n
lea eax, [esp + 0x40]
push 0xc8
push eax
call fcn.0043df20
lea ecx, [esp + 0x48]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b3ab1
push 0
sub ecx, edx
lea eax, [esp + 0x40]
push ecx
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b3aee
push str.send_failed
push 0
push 9
call fcn.00472980
add esp, 0xc
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4b3b87
push esi
call fcn.004b4850
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
add esp, 4
cmp eax, 2
je 0x4b3b1b
mov ecx, dword [esi + 0x30]
push ecx
cmp eax, 5
je 0x4b3ae3
call edi
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x448]
lea ecx, [esi + 0x3c]
add ecx, eax
mov al, byte [ecx]
cmp al, 0x30
jl 0x4b3b30
cmp al, 0x39
jle 0x4b3b37
test al, al
je 0x4b3b37
inc ecx
jmp 0x4b3b26
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
push str._u__u__u__u__u__u
push ecx
call fcn.00421490
add esp, 0x20
cmp eax, 6
je 0x4b3ba8
push str.Invalid_answer_to_PASV_n
push 0x7d0
push 9
call fcn.00472980
mov eax, dword [esi + 0x30]
add esp, 0xc
cmp eax, 0xffffffff
je 0x4b3b8e
push eax
call edi
mov dword [esi + 0x30], 0xffffffff
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0xfc]
xor ecx, esp
call fcn.0062fc3e
add esp, 0x100
ret
movzx eax, byte [esp + 0x1c]
push dword [esp + 8]
mov byte [esp + 0x38], al
movzx eax, byte [esp + 0x24]
mov byte [esp + 0x39], al
movzx eax, byte [esp + 0x28]
mov byte [esp + 0x3a], al
movzx eax, byte [esp + 0x2c]
mov byte [esp + 0x3b], al
movzx eax, byte [esp + 0x30]
mov byte [esp + 0x3c], al
movzx eax, byte [esp + 0x34]
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov ax, word [esp + 0x3c]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x4b3d04
push str.Failed_to_create_a_data_connection
push 0
push 9
call fcn.00472980
add esp, 0xc
push dword [esi + 0x30]
jmp 0x4b3b85
mov edi, dword [sym.imp.WS2_32.dll_getsockname]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x10]
push ecx
push eax
call edi
push dword [esp + 8]
xor eax, eax
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x4b3c5d
push str.bind_failed
jmp 0x4b3ad4
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x30]
call edi
push 1
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x4b3c85
push str.listen_failed
jmp 0x4b3ad4
movzx eax, byte [esp + 0xf]
push eax
movzx eax, byte [esp + 0x12]
push eax
movzx eax, byte [esp + 0x1b]
push eax
movzx eax, byte [esp + 0x1e]
push eax
movzx eax, byte [esp + 0x21]
push eax
movzx eax, byte [esp + 0x24]
push eax
push str.PORT__d__d__d__d__d__d_r_n
lea eax, [esp + 0x58]
push 0xc8
push eax
call fcn.0043df20
lea ecx, [esp + 0x60]
mov byte [esp + 0x127], 0
add esp, 0x24
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b3cd0
push 0
sub ecx, edx
lea eax, [esp + 0x40]
push ecx
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x4b3acf
push esi
call fcn.004b4850
add esp, 4
cmp eax, 2
jne 0x4b3ae0
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x104]
pop edi
pop esi
xor ecx, esp
call fcn.0062fc3e
add esp, 0x100
ret