Function at 0x4741b0
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, 0x190
push ebp
mov ebp, dword [esp + 0x198]
test ebp, ebp
je 0x4741e1
mov eax, dword [ebp + 4]
test eax, eax
je 0x4741e1
mov ecx, dword [0x4a49a8]
test ecx, ecx
je 0x4741d6
push ecx
jmp 0x4741d7
push eax
call dword [0x478280]
test eax, eax
jne 0x4741ec
or eax, 0xffffffff
pop ebp
add esp, 0x190
ret
xor ecx, ecx
push ebx
lea ebx, [ebp + 0x18]
mov edx, ebx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov word [ebx], 2
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push esi
mov esi, dword [eax]
mov eax, dword [0x4a49a8]
mov edx, ecx
shr ecx, 2
push edi
lea edi, [ebp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test eax, eax
mov eax, dword [0x4a49ac]
rep movsb byte es:[edi], byte [esi]
jne 0x474231
mov eax, dword [ebp + 8]
test eax, eax
jne 0x47423a
mov eax, 0x15
push eax
call dword [0x478288]
push 0
push 1
push 2
mov word [ebp + 0x1a], ax
call dword [0x47829c]
push 0x10
push ebx
push eax
mov dword [ebp + 0x2c], eax
call dword [0x4782a4]
test eax, eax
jl 0x474321
mov eax, ebp
call fcn.00473f40
cmp eax, 2
je 0x47428d
mov ecx, dword [ebp + 0x2c]
push ecx
call dword [0x4782bc]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov dword [ebp + 0x2c], eax
pop ebp
add esp, 0x190
ret
mov eax, dword [0x4a49a8]
test eax, eax
je 0x47443a
mov eax, dword [0x4a49b0]
test eax, eax
mov edi, dword [0x4781dc]
mov ebx, dword [0x4782b8]
je 0x4743c1
push eax
lea edx, [esp + 0x14]
push str.USER__s_r_n
push edx
call edi
lea eax, [esp + 0x1c]
add esp, 0xc
mov byte [esp + 0x19f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4742d2
mov ecx, dword [ebp + 0x2c]
push 0
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call ebx
mov esi, eax
test esi, esi
jge 0x47430d
mov edx, dword [ebp + 0x2c]
push edx
call dword [0x4782bc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword [ebp + 0x2c], 0xffffffff
pop ebp
add esp, 0x190
ret
mov eax, ebp
call fcn.00473f40
dec eax
je 0x4743c1
dec eax
je 0x47433c
dec eax
je 0x474352
mov eax, dword [ebp + 0x2c]
push eax
call dword [0x4782bc]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov dword [ebp + 0x2c], eax
pop ebp
add esp, 0x190
ret
mov eax, dword [0x4a49b4]
test eax, eax
je 0x4743c1
push eax
push str.PASS__s_r_n
lea ecx, [esp + 0x18]
push ecx
jmp 0x474377
mov eax, dword [0x4a49b4]
test eax, eax
je 0x474368
push eax
push str.PASS__s_r_n
lea ecx, [esp + 0x18]
push ecx
jmp 0x474377
push 0x4a4940
push str.PASS_libxml__s_r_n
lea edx, [esp + 0x18]
push edx
call edi
lea eax, [esp + 0x1c]
add esp, 0xc
mov byte [esp + 0x19f], 0
lea edx, [eax + 1]
jmp 0x474390
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474390
mov ecx, dword [ebp + 0x2c]
push 0
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call ebx
mov esi, eax
test esi, esi
jl 0x4742ef
mov eax, ebp
call fcn.00473f40
cmp eax, 3
jg 0x474321
mov eax, dword [0x4a49b8]
test eax, eax
jl 0x474321
cmp eax, 1
jle 0x4743e1
cmp eax, 2
je 0x4744ab
jmp 0x474321
mov ecx, dword [ebp + 4]
push ecx
lea edx, [esp + 0x14]
push str.SITE__s_r_n
push edx
call edi
lea eax, [esp + 0x1c]
add esp, 0xc
mov byte [esp + 0x19f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474403
mov ecx, dword [ebp + 0x2c]
push 0
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call ebx
mov esi, eax
test esi, esi
jl 0x4742ef
mov eax, ebp
call fcn.00473f40
cmp eax, 2
jne 0x47449e
mov dword [0x4a49b8], 1
mov esi, ebp
call fcn.00474080
test eax, eax
jl 0x474272
mov eax, ebp
call fcn.00473f40
sub eax, 2
je 0x4745d1
dec eax
jne 0x4745ac
call fcn.004740f0
test eax, eax
jl 0x474321
mov eax, ebp
call fcn.00473f40
sub eax, 2
je 0x4745d1
dec eax
jne 0x4745ac
mov ecx, dword [0x4a4528]
push str.FTP_server_asking_for_ACCNT_on_anonymous_n
push ecx
call dword [0x490ca8]
add esp, 8
jmp 0x4745ac
cmp dword [0x4a49b8], 1
je 0x474321
mov eax, dword [ebp + 0x10]
test eax, eax
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x10]
push ecx
jne 0x4744c7
push str.USER_anonymous__s_r_n
push edx
call edi
add esp, 0xc
jmp 0x4744d3
push eax
push str.USER__s__s_r_n
push edx
call edi
add esp, 0x10
lea eax, [esp + 0x10]
mov byte [esp + 0x19f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4744e2
mov ecx, dword [ebp + 0x2c]
push 0
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
push ecx
call ebx
mov esi, eax
test esi, esi
jl 0x4742ef
mov eax, ebp
call fcn.00473f40
cmp eax, 1
je 0x4745c7
cmp eax, 2
je 0x4745c7
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x474534
push 0x4a4940
push str.PASS_libxml__s_r_n
lea eax, [esp + 0x18]
push eax
jmp 0x47453f
push eax
push str.PASS__s_r_n
lea ecx, [esp + 0x18]
push ecx
call edi
lea eax, [esp + 0x1c]
add esp, 0xc
mov byte [esp + 0x19f], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474553
sub eax, edx
push 0
push eax
mov eax, dword [ebp + 0x2c]
lea edx, [esp + 0x18]
push edx
push eax
call ebx
mov esi, eax
test esi, esi
jge 0x47458e
mov ecx, dword [ebp + 0x2c]
push ecx
call dword [0x4782bc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword [ebp + 0x2c], 0xffffffff
pop ebp
add esp, 0x190
ret
mov eax, ebp
call fcn.00473f40
cmp eax, 1
je 0x4745c7
cmp eax, 2
je 0x4745c7
cmp dword [0x4a49b8], 2
jne 0x474321
mov edx, dword [ebp + 0x2c]
push edx
call dword [0x4782bc]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov dword [ebp + 0x2c], eax
pop ebp
add esp, 0x190
ret
mov dword [0x4a49b8], 2
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x190
ret