Function at 0x43e240
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 [0x554efc]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
test esi, esi
je 0x43e7d9
cmp dword [esi + 4], 0
je 0x43e7d9
mov eax, dword [0x555e70]
push edi
mov edi, dword [0x555e74]
test eax, eax
jne 0x43e281
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 0x43e29c
push eax
jmp 0x43e29f
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x43e2d6
push str.gethostbyname_failed
push eax
push 9
call fcn.004224c0
add esp, 0xc
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00457db8
add esp, 0x194
ret
cmp word [ecx + 0xa], 4
jbe 0x43e309
push str.gethostbyname_address_mismatch
push 0
push 9
call fcn.004224c0
add esp, 0xc
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00457db8
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 sub.VCRUNTIME140.dll_memcpy
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 0x43e372
push str.socket_failed
push 0
push 9
call fcn.004224c0
add esp, 0xc
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00457db8
add esp, 0x194
ret
push 0x10
push ebx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x43e38c
push str.Failed_to_create_a_connection
push 0
jmp 0x43e7a4
push esi
call fcn.0043ef30
add esp, 4
cmp eax, 2
jne 0x43e7ae
cmp dword [0x555e70], 0
mov ebx, dword [sym.imp.WS2_32.dll_send]
je 0x43e52a
mov eax, dword [0x555e78]
test eax, eax
je 0x43e4a9
push eax
push str.USER__s_r_n
lea eax, [esp + 0x14]
push 0x190
push eax
call fcn.0040a4c0
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 0x43e3e5
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 0x43e643
push esi
call fcn.0043ef30
add esp, 4
sub eax, 1
je 0x43e4a9
sub eax, 1
je 0x43e447
sub eax, 1
jne 0x43e7ae
mov eax, dword [0x555e7c]
test eax, eax
jne 0x43e450
push str.PASS_anonymous__r_n
lea eax, [esp + 0x10]
push 0x190
push eax
call fcn.0040a4c0
add esp, 0xc
jmp 0x43e468
mov eax, dword [0x555e7c]
test eax, eax
je 0x43e4a9
push eax
push str.PASS__s_r_n
lea eax, [esp + 0x14]
push 0x190
push eax
call fcn.0040a4c0
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 0x43e477
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 0x43e643
push esi
call fcn.0043ef30
add esp, 4
cmp eax, 3
jg 0x43e7ae
mov eax, dword [0x555e80]
test eax, eax
js 0x43e7ae
cmp eax, 1
jle 0x43e4c9
cmp eax, 2
je 0x43e55e
jmp 0x43e7ae
push dword [esi + 4]
lea eax, [esp + 0x10]
push str.SITE__s_r_n
push 0x190
push eax
call fcn.0040a4c0
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 0x43e4f2
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 0x43e643
push esi
call fcn.0043ef30
add esp, 4
cmp eax, 2
jne 0x43e551
mov dword [0x555e80], 1
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x43e6b9
push str.USER_anonymous_r_n
lea eax, [esp + 0x10]
push 0xc8
push eax
call fcn.0040a4c0
add esp, 0xc
jmp 0x43e6d1
cmp dword [0x555e80], 1
je 0x43e7ae
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x10]
push eax
lea eax, [esp + 0x10]
test ecx, ecx
jne 0x43e582
push str.USER_anonymous__s_r_n
push 0x190
push eax
call fcn.0040a4c0
add esp, 0x10
jmp 0x43e596
push ecx
push str.USER__s__s_r_n
push 0x190
push eax
call fcn.0040a4c0
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 0x43e5a5
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 0x43e643
push esi
call fcn.0043ef30
add esp, 4
cmp eax, 1
je 0x43e695
cmp eax, 2
je 0x43e695
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x43e600
push str.PASS_anonymous__r_n
lea eax, [esp + 0x10]
push 0x190
push eax
call fcn.0040a4c0
add esp, 0xc
jmp 0x43e618
push eax
push str.PASS__s_r_n
lea eax, [esp + 0x14]
push 0x190
push eax
call fcn.0040a4c0
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 0x43e627
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 0x43e67e
push str.send_failed
push 0
push 9
call fcn.004224c0
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.00457db8
add esp, 0x194
ret
push esi
call fcn.0043ef30
add esp, 4
cmp eax, 1
je 0x43e695
cmp eax, 2
jne 0x43e7ae
mov dword [0x555e80], 2
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00457db8
add esp, 0x194
ret
push eax
push str.USER__s_r_n
lea eax, [esp + 0x14]
push 0xc8
push eax
call fcn.0040a4c0
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 0x43e6e0
push 0
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
push dword [esi + 0x2c]
call ebx
test eax, eax
js 0x43e77a
push esi
call fcn.0043ef30
add esp, 4
sub eax, 2
je 0x43e69f
sub eax, 1
jne 0x43e7ae
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x43e735
push str.PASS_anonymous__r_n
lea eax, [esp + 0x10]
push 0xc8
push eax
call fcn.0040a4c0
add esp, 0xc
jmp 0x43e74d
push eax
push str.PASS__s_r_n
lea eax, [esp + 0x14]
push 0xc8
push eax
call fcn.0040a4c0
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 0x43e760
push 0
sub ecx, edx
lea eax, [esp + 0x10]
push ecx
push eax
push dword [esi + 0x2c]
call ebx
test eax, eax
jns 0x43e783
push str.send_failed
push 0
jmp 0x43e7a4
push esi
call fcn.0043ef30
add esp, 4
sub eax, 2
je 0x43e69f
sub eax, 1
jne 0x43e7ae
push str.FTP_server_asking_for_ACCNT_on_anonymous_n
push 0x7d2
push 9
call fcn.004224c0
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.00457db8
add esp, 0x194
ret
mov ecx, dword [esp + 0x194]
or eax, 0xffffffff
pop esi
xor ecx, esp
call fcn.00457db8
add esp, 0x194
ret