Function at 0x48f1e0
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:
push ebp
or eax, 0xffffffff
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x33c
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x48f330
mov edx, dword [ebp + 8]
mov edx, dword [edx + 4]
test edx, edx
je 0x48f330
mov eax, dword [0x78e300]
test eax, eax
jne 0x48f338
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x48f221
mov bl, 0x15
mov esi, dword [ebp + 8]
xor eax, eax
add esi, 0x18
mov ecx, 4
cld
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0x78e300]
test eax, eax
je 0x48f343
sub esp, 0xc
push eax
call sub.ws2_32.dll_gethostbyname
add esp, 0xc
mov edx, eax
test eax, eax
je 0x48f8f0
cmp word [eax + 0xa], 4
ja 0x48f859
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, 0x1c
mov word [eax + 0x18], 2
movsx eax, word [edx + 0xa]
mov edx, dword [edx + 0xc]
push edi
push eax
mov edi, dword [edx]
push edi
push ecx
call fcn.0058e948
mov eax, ebx
and eax, 0xffff
mov dword [esp], eax
call sub.ws2_32.dll_htons
mov edx, dword [ebp + 8]
mov word [edx + 0x1a], ax
pop eax
pop edx
push 0
push 1
push 2
call sub.ws2_32.dll_socket
mov edx, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [edx + 0x2c], eax
pop edi
je 0x48f8d3
push ecx
push 0x10
push esi
push eax
call sub.ws2_32.dll_connect
pop edx
test eax, eax
js 0x48f8db
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.0048f090
add esp, 0x10
cmp eax, 2
jne 0x48f729
mov eax, dword [0x78e300]
test eax, eax
je 0x48f360
mov eax, dword [0x78e2e0]
test eax, eax
jne 0x48f60e
mov eax, dword [0x78e2c0]
test eax, eax
js 0x48f311
cmp eax, 1
jle 0x48f74a
cmp eax, 2
je 0x48f4d3
mov edx, dword [ebp + 8]
sub esp, 0xc
mov eax, dword [edx + 0x2c]
push eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], 0xffffffff
or eax, 0xffffffff
lea esi, [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [0x78e2f0]
jmp 0x48f21b
mov edx, dword [ebp + 8]
sub esp, 0xc
mov eax, dword [edx + 4]
jmp 0x48f243
mov dword [0x78e2c0], 1
nop
lea esi, [esi]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x48f4c8
push eax
push str.USER_anonymous_r_n
lea ebx, [ebp - 0x278]
push 0xc8
push ebx
call sub.msvcrt.dll__snprintf
add esp, 0x10
mov byte [ebp - 0x1b1], 0
mov ecx, ebx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x48f391
test edx, 0x8080
jne 0x48f3b7
shr edx, 0x10
add ecx, 2
add dl, dl
mov eax, dword [ebp + 8]
sbb ecx, 3
push 0
sub ecx, ebx
push ecx
push ebx
mov edi, dword [eax + 0x2c]
push edi
call sub.ws2_32.dll_send
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x48f840
test eax, eax
js 0x48f311
sub esp, 0xc
mov ebx, dword [ebp + 8]
push ebx
call fcn.0048f090
mov edi, eax
add esp, 0x10
xor eax, eax
cmp edi, 2
je 0x48f330
cmp edi, 3
jne 0x48f311
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
test eax, eax
jne 0x48f603
push ecx
push str.PASS_anonymous__r_n
lea ebx, [ebp - 0x348]
push 0xc8
push ebx
call sub.msvcrt.dll__snprintf
add esp, 0x10
mov byte [ebp - 0x281], 0
mov ecx, ebx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x48f438
test edx, 0x8080
jne 0x48f45e
shr edx, 0x10
add ecx, 2
add dl, dl
mov eax, dword [ebp + 8]
sbb ecx, 3
push 0
sub ecx, ebx
push ecx
push ebx
mov edx, dword [eax + 0x2c]
push edx
call sub.ws2_32.dll_send
mov ebx, eax
xor eax, eax
test ebx, ebx
js 0x48f882
test eax, eax
js 0x48f311
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.0048f090
mov edi, eax
add esp, 0x10
xor eax, eax
cmp edi, 2
je 0x48f330
cmp edi, 3
jne 0x48f311
push eax
push str.FTP_server_asking_for_ACCNT_on_anonymous_n
push 0x7d2
push 9
call fcn.0041e020
add esp, 0x10
jmp 0x48f311
push eax
push str.USER__s_r_n
jmp 0x48f374
lea ebx, [ebp - 0x1a8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
test eax, eax
jne 0x48f7e4
mov eax, dword [edx + 4]
push eax
push str.USER_anonymous__s_r_n
push 0x190
push ebx
call sub.msvcrt.dll__snprintf
add esp, 0x10
mov byte [ebp - 0x19], 0
mov ecx, ebx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x48f504
test edx, 0x8080
jne 0x48f52a
shr edx, 0x10
add ecx, 2
add dl, dl
mov eax, dword [ebp + 8]
sbb ecx, 3
push 0
sub ecx, ebx
push ecx
push ebx
mov esi, dword [eax + 0x2c]
push esi
call sub.ws2_32.dll_send
mov edi, eax
test eax, eax
js 0x48f813
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048f090
add esp, 0x10
lea eax, [eax - 1]
cmp eax, 1
jbe 0x48f5f2
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
test eax, eax
jne 0x48f8c8
push edx
push str.PASS_anonymous__r_n
push 0x190
push ebx
call sub.msvcrt.dll__snprintf
add esp, 0x10
mov byte [ebp - 0x19], 0
mov ecx, ebx
mov esi, esi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x48f590
test edx, 0x8080
jne 0x48f5b6
shr edx, 0x10
add ecx, 2
add dl, dl
mov eax, dword [ebp + 8]
sbb ecx, 3
push 0
sub ecx, ebx
push ecx
push ebx
mov eax, dword [eax + 0x2c]
push eax
call sub.ws2_32.dll_send
mov edi, eax
test eax, eax
js 0x48f813
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.0048f090
add esp, 0x10
lea eax, [eax - 1]
cmp eax, 1
ja 0x48f311
xor eax, eax
mov dword [0x78e2c0], 2
jmp 0x48f330
push eax
push str.PASS__s_r_n
jmp 0x48f41b
lea ebx, [ebp - 0x1a8]
push eax
push str.USER__s_r_n
push 0x190
push ebx
call sub.msvcrt.dll__snprintf
mov byte [ebp - 0x19], 0
mov ecx, ebx
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x48f630
test edx, 0x8080
jne 0x48f656
shr edx, 0x10
add ecx, 2
add dl, dl
mov eax, dword [ebp + 8]
sbb ecx, 3
push 0
sub ecx, ebx
push ecx
push ebx
mov eax, dword [eax + 0x2c]
push eax
call sub.ws2_32.dll_send
add esp, 0x10
mov edi, eax
test eax, eax
js 0x48f813
sub esp, 0xc
mov edi, dword [ebp + 8]
push edi
call fcn.0048f090
add esp, 0x10
mov edi, eax
cmp eax, 2
je 0x48f870
jle 0x48f807
cmp eax, 3
jne 0x48f729
mov eax, dword [0x78e2d0]
test eax, eax
je 0x48f8fb
push eax
push str.PASS__s_r_n
push 0x190
push ebx
call sub.msvcrt.dll__snprintf
add esp, 0x10
mov byte [ebp - 0x19], 0
mov ecx, ebx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x48f6ca
test edx, 0x8080
jne 0x48f6f0
shr edx, 0x10
add ecx, 2
add dl, dl
mov edx, dword [ebp + 8]
sbb ecx, 3
push 0
sub ecx, ebx
push ecx
push ebx
mov ebx, dword [edx + 0x2c]
push ebx
call sub.ws2_32.dll_send
mov edi, eax
test eax, eax
js 0x48f89b
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048f090
add esp, 0x10
cmp eax, 3
jle 0x48f2f6
sub esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
push eax
call sub.ws2_32.dll_closesocket
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [edx + 0x2c], 0xffffffff
jmp 0x48f330
mov eax, dword [ebp + 8]
lea ebx, [ebp - 0x1a8]
mov edx, dword [eax + 4]
push edx
push str.SITE__s_r_n
push 0x190
push ebx
call sub.msvcrt.dll__snprintf
mov byte [ebp - 0x19], 0
mov ecx, ebx
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x48f770
test edx, 0x8080
jne 0x48f796
shr edx, 0x10
add ecx, 2
add dl, dl
mov edx, dword [ebp + 8]
sbb ecx, 3
push 0
sub ecx, ebx
push ecx
push ebx
mov eax, dword [edx + 0x2c]
push eax
call sub.ws2_32.dll_send
add esp, 0x10
mov edi, eax
test eax, eax
js 0x48f89b
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.0048f090
add esp, 0x10
cmp eax, 2
je 0x48f351
cmp dword [0x78e2c0], 1
jne 0x48f4d9
jmp 0x48f729
mov edx, dword [ebp + 8]
sub esp, 0xc
mov edi, dword [edx + 4]
push edi
push eax
push str.USER__s__s_r_n
push 0x190
push ebx
call sub.msvcrt.dll__snprintf
add esp, 0x20
jmp 0x48f4fe
dec edi
jne 0x48f729
jmp 0x48f2f6
push eax
push str.send_failed
push 0
push 9
call fcn.0041e020
mov edx, dword [ebp + 8]
pop eax
mov eax, dword [edx + 0x2c]
push eax
call sub.ws2_32.dll_closesocket
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], 0xffffffff
mov eax, edi
jmp 0x48f330
push esi
push str.send_failed
push 0
push 9
call fcn.0041e020
add esp, 0x10
mov eax, ebx
jmp 0x48f3da
push eax
push str.gethostbyname_address_mismatch
push 0
push 9
call fcn.0041e020
or eax, 0xffffffff
jmp 0x48f330
mov eax, dword [0x78e2d0]
test eax, eax
je 0x48f2f6
jmp 0x48f6b0
push eax
push str.send_failed
push 0
push 9
call fcn.0041e020
add esp, 0x10
mov eax, ebx
jmp 0x48f481
push eax
push str.send_failed
push 0
push 9
call fcn.0041e020
pop eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
push eax
call sub.ws2_32.dll_closesocket
mov edx, dword [ebp + 8]
mov eax, edi
mov dword [edx + 0x2c], 0xffffffff
jmp 0x48f330
push eax
push str.PASS__s_r_n
jmp 0x48f57a
push ebx
push str.socket_failed
jmp 0x48f85f
push eax
push str.Failed_to_create_a_connection
push 0
push 9
call fcn.0041e020
pop eax
jmp 0x48f72c
push eax
push str.gethostbyname_failed
jmp 0x48f85f
push esi
push str.PASS_anonymous__r_n
jmp 0x48f6b6