Function at 0x407e30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45dde3
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x478a70]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b8], ecx
push 0x4635e4
push 0x47a5a4
call fcn.0041af70
add esp, 8
movzx eax, al
test eax, eax
je 0x407e90
mov ecx, 0x47a5a4
call fcn.004015f0
push eax
mov ecx, dword [ebp - 0x2b8]
call fcn.00416850
mov ecx, dword [ebp - 0x2b8]
cmp dword [ecx + 0x70c], 0
je 0x407ea4
jmp 0x4080dd
mov dword [ebp - 0x210], 0
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [ebp - 0x290], eax
mov ecx, 0x47a5a4
call fcn.004015f0
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x224], 0x3e8
push 4
lea edx, [ebp - 0x224]
push edx
push 0x1005
push 0xffff
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x224]
push ecx
push 0x1006
push 0xffff
mov edx, dword [ebp - 0x290]
push edx
call dword [sym.imp.WSOCK32.dll_setsockopt]
mov eax, 2
mov word [ebp - 0x220], ax
push 0x6e
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x21e], ax
push 0x10
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x290]
push edx
call dword [sym.imp.WSOCK32.dll_connect]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
jne 0x407f73
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x4080dd
mov dword [ebp - 0x2b4], 0
xor ecx, ecx
mov dword [ebp - 0x2b0], ecx
mov dword [ebp - 0x2b4], 0
push 8
lea edx, [ebp - 0x2b4]
push edx
call section..text
add esp, 8
push 8
lea eax, [ebp - 0x2b4]
push eax
mov ecx, dword [ebp - 0x290]
push ecx
call fcn.00420cc0
add esp, 0xc
mov dword [ebp - 0x210], eax
mov byte [ebp - 0x28c], 0
push 0x63
push 0
lea edx, [ebp - 0x28b]
push edx
call fcn.00442f90
add esp, 0xc
push 0x4635f4
lea eax, [ebp - 0x28c]
push eax
call fcn.0041db70
add esp, 8
push 0x64
lea ecx, [ebp - 0x28c]
push ecx
call section..text
add esp, 8
push 0x64
lea edx, [ebp - 0x28c]
push edx
mov eax, dword [ebp - 0x290]
push eax
call fcn.00420cc0
add esp, 0xc
mov dword [ebp - 0x210], eax
push 0x64
lea ecx, [ebp - 0x28c]
push ecx
mov edx, dword [ebp - 0x290]
push edx
call fcn.00420bf0
add esp, 0xc
mov dword [ebp - 0x210], eax
push 0x64
lea eax, [ebp - 0x28c]
push eax
call fcn.00401040
add esp, 8
lea ecx, [ebp - 0x28c]
push ecx
lea ecx, [ebp - 0x2ac]
call fcn.0041b0b0
mov dword [ebp - 4], 0
push str.working
lea edx, [ebp - 0x2ac]
push edx
call fcn.0041da50
add esp, 8
movzx eax, al
test eax, eax
je 0x40808d
mov ecx, dword [ebp - 0x2b8]
mov byte [ecx + 0x4f0], 1
jmp 0x4080aa
push 0x463608
mov ecx, dword [ebp - 0x2b8]
call fcn.00416850
mov edx, dword [ebp - 0x2b8]
mov byte [edx + 0x4f0], 0
lea eax, [ebp - 0x20c]
push eax
push 0x463614
call fcn.00442ecb
add esp, 8
mov ecx, dword [ebp - 0x290]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ac]
call fcn.0041b130
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044240e
mov esp, ebp
pop ebp
ret