Function at 0x414b70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x900
mov eax, dword [0x485098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8f0], eax
push ebx
push esi
push edi
mov edi, ecx
test eax, eax
je 0x414df5
cmp dword [ebp + 0xc], 1
jb 0x414df5
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x414bb3
push eax
call fcn.0044576d
add esp, 4
mov eax, 2
mov dword [edi + 0x1c], 0
mov word [ebp - 0x7e4], ax
lea eax, [edi + 2]
push eax
mov dword [edi + 0x20], 0
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x7e0], eax
movzx eax, word [edi]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [ebp - 0x7e2], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x414df5
push 0x10
lea eax, [ebp - 0x7e4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x414dee
mov eax, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x414c4e
push 0
sub eax, ebx
push eax
mov eax, dword [ebp - 0x8f0]
add eax, ebx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x414de5
add ebx, eax
mov eax, dword [ebp + 0xc]
cmp ebx, eax
jb 0x414c27
xor bl, bl
mov byte [ebp - 0x8e9], bl
nop word [eax + eax]
lea eax, [ebp - 0x8f8]
mov dword [ebp - 0x8f8], 0
push eax
push 0
push 0
lea eax, [ebp - 0x8e8]
mov dword [ebp - 0x8f4], 0
push eax
push 0
mov dword [ebp - 0x8e4], esi
mov dword [ebp - 0x8e8], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x414d60
push 0
push 0x7d0
lea eax, [ebp - 0x7d4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414dde
test ebx, ebx
jg 0x414cd8
mov bl, 1
mov byte [ebp - 0x8e9], bl
jmp 0x414d60
mov eax, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x900], eax
inc eax
push eax
mov dword [ebp - 0x8fc], eax
call fcn.0044578a
add esp, 4
mov dword [ebp - 0x8f0], eax
test eax, eax
je 0x414dde
push dword [ebp - 0x8fc]
push 0
push eax
call fcn.004423c0
mov eax, dword [edi + 0x20]
add esp, 0xc
test eax, eax
je 0x414d2e
push eax
push dword [edi + 0x1c]
push dword [ebp - 0x8f0]
call fcn.004418c0
mov eax, dword [edi + 0x20]
add esp, 0xc
push ebx
mov ebx, dword [ebp - 0x8f0]
lea ecx, [ebp - 0x7d4]
push ecx
add eax, ebx
push eax
call fcn.004418c0
add esp, 0xc
mov ecx, edi
call fcn.004144c0
mov eax, dword [ebp - 0x900]
mov dword [edi + 0x1c], ebx
mov bl, byte [ebp - 0x8e9]
mov dword [edi + 0x20], eax
lea eax, [ebp - 0x8f8]
mov dword [ebp - 0x8e4], esi
push eax
lea eax, [ebp - 0x8e8]
mov dword [ebp - 0x8e8], 1
push eax
push 0
push 0
push 0
mov dword [ebp - 0x8f8], 0
mov dword [ebp - 0x8f4], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
je 0x414dde
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
je 0x414c60
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [edi + 0x20], 0
je 0x414df5
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.004144c0
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042aa99
mov esp, ebp
pop ebp
ret 8