Function at 0x41e28e
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1144
call fcn.0043b380
push ebx
push edi
lea edi, [esi + 0x4c]
push edi
mov eax, esi
call fcn.0041e5f4
test eax, eax
jne 0x41e2c1
push edi
push esi
call fcn.0041e61c
test eax, eax
je 0x41e2c1
mov eax, 0x190
jmp 0x41e59c
cmp dword [ebp + 0x14], 0
je 0x41e597
cmp dword [esi + 4], 0xffffffff
je 0x41e2e5
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 8]
jne 0x41e2e5
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0xc]
je 0x41e550
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xc]
push dword [esi + 8]
push esi
push str._08X_peer_data_conn_closed_or_offset_not_equal__old__I64d__new__I64d_n
push 8
push dword [0x468674]
call fcn.00429300
push 0xfff
lea eax, [ebp - 0x1143]
push 0
push eax
mov byte [ebp - 0x1144], 0
call fcn.0043ae00
mov eax, dword [esi + 4]
add esp, 0x2c
cmp eax, 0xffffffff
je 0x41e33e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esi]
lea edi, [ebp - 0x1144]
call fcn.0041dd2d
pop ecx
push dword [esi]
mov ebx, str.TYPE_I_r_n
call fcn.0041dc77
push dword [esi]
lea edi, [ebp - 0x1144]
call fcn.0041dd2d
pop ecx
pop ecx
cmp eax, 0xc8
je 0x41e382
push 0x458870
push 0x80
push dword [0x468674]
call fcn.00429300
add esp, 0xc
mov eax, 0x191
jmp 0x41e59c
push dword [esi]
mov ebx, str.PASV_r_n
call fcn.0041dc77
push dword [esi]
lea edi, [ebp - 0x1144]
call fcn.0041dd2d
pop ecx
pop ecx
cmp eax, 0xe3
jne 0x41e378
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x143]
push ebx
push eax
mov byte [ebp - 0x144], bl
call fcn.0043ae00
xor eax, eax
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x40], bl
lea edi, [ebp - 0x3f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
xor edx, edx
stosb byte es:[edi], al
cmp byte [ebp - 0x1144], bl
je 0x41e45d
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x144]
lea eax, [ebp - 0x1144]
mov dword [ebp - 0xc], ecx
movsx ecx, byte [eax]
sub ecx, 0x28
je 0x41e455
dec ecx
je 0x41e451
sub ecx, 3
jne 0x41e41b
inc edx
cmp edx, 5
mov byte [eax], 0x2e
jge 0x41e458
lea ecx, [edx - 1]
cmp ecx, 3
ja 0x41e42f
mov edi, dword [ebp - 0xc]
mov cl, byte [eax]
inc dword [ebp - 0xc]
mov byte [edi], cl
jmp 0x41e458
cmp edx, 5
jne 0x41e440
mov edi, dword [ebp - 8]
mov cl, byte [eax]
inc dword [ebp - 8]
mov byte [edi], cl
jmp 0x41e458
cmp edx, 6
jne 0x41e458
mov edi, dword [ebp - 0x10]
mov cl, byte [eax]
inc dword [ebp - 0x10]
mov byte [edi], cl
jmp 0x41e458
xor edx, edx
jmp 0x41e458
xor edx, edx
inc edx
inc eax
cmp byte [eax], bl
jne 0x41e402
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x41e2b7
push 2
pop eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push eax
call fcn.0043bfeb
mov edi, eax
lea eax, [ebp - 0x40]
push eax
shl edi, 8
call fcn.0043bfeb
pop ecx
pop ecx
add eax, edi
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
push 0x10
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x41e2b7
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x41e511
push dword [ebp + 0xc]
lea eax, [ebp - 0x1144]
push dword [ebp + 8]
push str.REST__d_r_n
push eax
call fcn.0043c1c2
push dword [esi]
lea ebx, [ebp - 0x1144]
call fcn.0041dc77
push dword [esi]
mov edi, ebx
call fcn.0041dd2d
add esp, 0x18
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 3
jne 0x41e378
push dword [esi + 0x3c]
lea eax, [ebp - 0x1144]
push str.RETR__s_r_n
push eax
call fcn.0043c1c2
push dword [esi]
lea ebx, [ebp - 0x1144]
call fcn.0041dc77
push dword [esi]
mov edi, ebx
call fcn.0041dd2d
add esp, 0x14
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 1
je 0x41e550
mov eax, 0x193
jmp 0x41e59c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp dword [ebp + 0x14], 0
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
jle 0x41e597
mov eax, dword [edi]
mov ecx, dword [ebp + 0x14]
push 0
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x10]
add eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x41e5a2
cdq
add dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
adc dword [esi + 0xc], edx
add dword [edi], ebx
cmp dword [edi], eax
jl 0x41e568
mov eax, 0xc8
pop edi
pop ebx
leave
ret 0x14
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi + 4], 0xffffffff
mov eax, ebx
neg eax
sbb eax, eax
add eax, 0x1f3
jmp 0x41e59c