Function at 0x437c35
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.0044e520
push ebx
push edi
lea edi, [esi + 0x4c]
push edi
mov eax, esi
call fcn.00437f9b
test eax, eax
jne 0x437c68
push edi
push esi
call fcn.00437fc3
test eax, eax
je 0x437c68
mov eax, 0x190
jmp 0x437f43
cmp dword [ebp + 0x14], 0
je 0x437f3e
cmp dword [esi + 4], 0xffffffff
je 0x437c8c
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 8]
jne 0x437c8c
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0xc]
je 0x437ef7
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 [0x48d1c4]
call fcn.00454eb0
push 0xfff
lea eax, [ebp - 0x1143]
push 0
push eax
mov byte [ebp - 0x1144], 0
call fcn.0043c260
mov eax, dword [esi + 4]
add esp, 0x2c
cmp eax, 0xffffffff
je 0x437ce5
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esi]
lea edi, [ebp - 0x1144]
call fcn.004376d4
pop ecx
push dword [esi]
mov ebx, str.TYPE_I_r_n
call fcn.0043761e
push dword [esi]
lea edi, [ebp - 0x1144]
call fcn.004376d4
pop ecx
pop ecx
cmp eax, 0xc8
je 0x437d29
push 0x47c7bc
push 0x80
push dword [0x48d1c4]
call fcn.00454eb0
add esp, 0xc
mov eax, 0x191
jmp 0x437f43
push dword [esi]
mov ebx, str.PASV_r_n
call fcn.0043761e
push dword [esi]
lea edi, [ebp - 0x1144]
call fcn.004376d4
pop ecx
pop ecx
cmp eax, 0xe3
jne 0x437d1f
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x143]
push ebx
push eax
mov byte [ebp - 0x144], bl
call fcn.0043c260
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 0x437e04
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 0x437dfc
dec ecx
je 0x437df8
sub ecx, 3
jne 0x437dc2
inc edx
cmp edx, 5
mov byte [eax], 0x2e
jge 0x437dff
lea ecx, [edx - 1]
cmp ecx, 3
ja 0x437dd6
mov edi, dword [ebp - 0xc]
mov cl, byte [eax]
inc dword [ebp - 0xc]
mov byte [edi], cl
jmp 0x437dff
cmp edx, 5
jne 0x437de7
mov edi, dword [ebp - 8]
mov cl, byte [eax]
inc dword [ebp - 8]
mov byte [edi], cl
jmp 0x437dff
cmp edx, 6
jne 0x437dff
mov edi, dword [ebp - 0x10]
mov cl, byte [eax]
inc dword [ebp - 0x10]
mov byte [edi], cl
jmp 0x437dff
xor edx, edx
jmp 0x437dff
xor edx, edx
inc edx
inc eax
cmp byte [eax], bl
jne 0x437da9
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x437c5e
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.0044009e
mov edi, eax
lea eax, [ebp - 0x40]
push eax
shl edi, 8
call fcn.0044009e
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 0x437c5e
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x437eb8
push dword [ebp + 0xc]
lea eax, [ebp - 0x1144]
push dword [ebp + 8]
push str.REST__d_r_n
push eax
call fcn.0043fe3d
push dword [esi]
lea ebx, [ebp - 0x1144]
call fcn.0043761e
push dword [esi]
mov edi, ebx
call fcn.004376d4
add esp, 0x18
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 3
jne 0x437d1f
push dword [esi + 0x3c]
lea eax, [ebp - 0x1144]
push str.RETR__s_r_n
push eax
call fcn.0043fe3d
push dword [esi]
lea ebx, [ebp - 0x1144]
call fcn.0043761e
push dword [esi]
mov edi, ebx
call fcn.004376d4
add esp, 0x14
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 1
je 0x437ef7
mov eax, 0x193
jmp 0x437f43
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 0x437f3e
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 0x437f49
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 0x437f0f
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 0x437f43