Function at 0x436fe0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status

Disassembly:
sub esp, 0x144
push ebx
push esi
mov esi, dword [esp + 0x150]
push edi
xor edi, edi
cmp dword [esi + 0x49], edi
je 0x4370eb
mov eax, dword [esi + 0x45]
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
lea edx, [esp + 0x58]
push edx
push edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], 1
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4370d2
mov ecx, dword [esi + 0x45]
lea eax, [esp + 0x4c]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4370d2
mov ecx, dword [esi + 0x45]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
mov dword [esi + 0x39], eax
je 0x4370d2
mov edx, dword [esi + 0x45]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esi + 0x45], 0xffffffff
mov dword [esi + 0x49], edi
call fcn.0044a8f0
mov edx, dword [esp + 0x46]
add esp, 8
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, byte [esp + 0xf]
movzx edx, byte [esp + 0xe]
movzx eax, ax
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
movzx ecx, ah
push ecx
movzx edx, al
push edx
push str.150_Data_connection_accepted_from__d._d._d._d:_d__transfer_starting._r_n
push esi
call fcn.00436e90
add esp, 0x1c
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x144
ret
mov eax, dword [esi + 0x45]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x45], 0xffffffff
mov dword [esi + 0x49], edi
jmp 0x4371e5
push 6
push 1
mov ebx, 2
push ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x39], eax
je 0x4371e5
push 0x10
lea ecx, [esp + 0x30]
push ecx
push eax
mov word [esp + 0x38], bx
mov word [esp + 0x3a], di
mov dword [esp + 0x3c], edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4371d4
mov di, word [esi + 0x51]
mov dl, byte [esi + 0x4f]
mov cl, byte [esi + 0x4e]
xor eax, eax
mov dword [esp + 0x10], eax
mov word [esp + 0x12], di
mov edi, dword [esi + 0x51]
push edi
mov dword [esp + 0x18], eax
mov word [esp + 0x14], bx
mov bl, byte [esi + 0x50]
mov byte [esp + 0x1a], dl
movzx edi, bl
movzx edx, dl
push edi
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov al, byte [esi + 0x4d]
mov byte [esp + 0x21], cl
movzx ecx, cl
movzx edx, al
push ecx
push edx
push str.PORT_connecting_to__d._d._d._d:_d..._n
mov byte [esp + 0x2c], al
mov byte [esp + 0x2f], bl
call fcn.00433c50
mov ecx, dword [esi + 0x39]
add esp, 0x18
push 0x10
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4371d4
mov edx, dword [esi + 0x51]
movzx eax, byte [esi + 0x50]
movzx ecx, byte [esi + 0x4f]
push edx
movzx edx, byte [esi + 0x4e]
push eax
movzx eax, byte [esi + 0x4d]
push ecx
push edx
push eax
push str.150_Data_connection_connected_to__d._d._d._d:_d__transfer_starting._r_n
push esi
call fcn.00436e90
add esp, 0x1c
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x144
ret
mov ecx, dword [esi + 0x39]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x39], 0xffffffff
push str.500_Data_connection_failed._r_n
push esi
call fcn.00436e90
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x144
ret