Function at 0x42c630
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
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48bb68
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ad658]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x4ad658]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
call fcn.004827a0
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
call edi
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
call fcn.004827a0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp esi, 0xffffffff
jne 0x42c6b5
or ebx, esi
mov dword [esp + 0x2c], ebx
jmp 0x42c6cc
xor ebx, ebx
call fcn.004827a0
mov ecx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], esi
mov ebx, esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x60], 0
cmp ebx, 0xffffffff
jne 0x42c6f0
test ecx, ecx
je 0x42c6f0
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.socket_select_interrupter
call fcn.004019f0
mov dword [esp + 0x28], 1
cmp ebx, 0xffffffff
je 0x42c727
push 0
call edi
push 4
lea edx, [esp + 0x2c]
push edx
push 4
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.004827a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x42c72c
call fcn.004827a0
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, 2
push str.127.0.0.1
mov dword [esp + 0x28], 0x10
mov word [esp + 0x44], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
xor ecx, ecx
mov dword [esp + 0x44], eax
mov word [esp + 0x42], cx
cmp ebx, 0xffffffff
jne 0x42c77f
call fcn.004827a0
mov ecx, 0x2719
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x42c7f6
push 0
call edi
push 0x10
lea edx, [esp + 0x44]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_bind]
mov esi, eax
call fcn.004827a0
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
test esi, esi
jne 0x42c7f1
call fcn.004827a0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
lea edx, [esp + 0x40]
push edx
lea esi, [esp + 0x18]
lea eax, [esp + 0x28]
mov ecx, ebx
call fcn.0042c4c0
add esp, 4
cmp eax, 0xffffffff
jne 0x42c809
cmp dword [esp + 0x14], 0
je 0x42c809
mov eax, esi
push eax
mov ecx, str.socket_select_interrupter
call fcn.004019f0
cmp esi, 0xffffffff
jne 0x42c7c1
test ecx, ecx
je 0x42c7c1
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.socket_select_interrupter
call fcn.004019f0
push str.127.0.0.1
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x44], eax
cmp ebx, 0xffffffff
jne 0x42c831
call fcn.004827a0
mov ecx, 0x2719
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x42c8a4
push 0
call edi
push SysReAllocString
push ebx
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
call fcn.004827a0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
test esi, esi
jne 0x42c89f
call fcn.004827a0
push 0
call edi
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
call fcn.004827a0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp esi, 0xffffffff
jne 0x42c8b7
or esi, esi
mov dword [esp + 0x20], esi
jmp 0x42c8cc
cmp esi, 0xffffffff
jne 0x42c863
test ecx, ecx
je 0x42c863
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.socket_select_interrupter
call fcn.004019f0
xor ebx, ebx
call fcn.004827a0
mov ecx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], esi
mov byte [esp + 0x60], 1
cmp esi, 0xffffffff
jne 0x42c901
test ecx, ecx
je 0x42c8ed
lea edx, [esp + 0x14]
push edx
mov ecx, str.socket_select_interrupter
call fcn.004019f0
call fcn.004827a0
mov ecx, 0x2719
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x42c974
push 0
call edi
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call fcn.004827a0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
test esi, esi
jne 0x42c96f
call fcn.004827a0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
lea esi, [esp + 0x14]
call fcn.0042c540
mov dword [esp + 0x24], eax
mov byte [esp + 0x60], 2
cmp eax, 0xffffffff
jne 0x42c987
cmp dword [esp + 0x14], 0
je 0x42c987
mov eax, esi
push eax
mov ecx, str.socket_select_interrupter
call fcn.004019f0
cmp esi, 0xffffffff
jne 0x42c940
test ecx, ecx
je 0x42c940
lea edx, [esp + 0x14]
push edx
mov ecx, str.socket_select_interrupter
call fcn.004019f0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x1f]
push ecx
lea esi, [esp + 0x18]
lea ebx, [esp + 0x34]
mov dword [esp + 0x34], 1
mov byte [esp + 0x23], 0
call fcn.0042c5b0
add esp, 4
test eax, eax
je 0x42c9c5
cmp dword [esp + 0x14], 0
je 0x42c9c5
mov edx, esi
push edx
mov ecx, str.socket_select_interrupter
call fcn.004019f0
mov esi, dword [esp + 0x20]
mov dword [esp + 0x28], 1
cmp esi, 0xffffffff
jne 0x42c9e6
call fcn.004827a0
mov ecx, 0x2719
mov dword [esp + 0x14], ecx
jmp 0x42ca20
push 0
call edi
push 4
lea eax, [esp + 0x2c]
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.004827a0
mov ebx, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
test esi, esi
jne 0x42ca24
call fcn.004827a0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1f]
push ecx
lea esi, [esp + 0x18]
lea ebx, [esp + 0x34]
mov dword [esp + 0x34], 1
mov byte [esp + 0x23], 0
call fcn.0042c5b0
add esp, 4
test eax, eax
je 0x42ca62
cmp dword [esp + 0x14], 0
je 0x42ca62
mov edx, esi
push edx
mov ecx, str.socket_select_interrupter
call fcn.004019f0
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], 1
cmp ebx, 0xffffffff
je 0x42ca9a
push 0
call edi
push 4
lea eax, [esp + 0x2c]
push eax
push 1
push 6
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.004827a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x42ca9f
call fcn.004827a0
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [esp + 0x60], 0xffffffff
cmp edi, 0xffffffff
je 0x42cae8
mov dword [esp + 0x14], 0
call fcn.004827a0
lea edx, [esp + 0x1f]
mov dword [esp + 0x18], eax
push 1
push edx
lea esi, [esp + 0x1c]
mov eax, edi
mov byte [esp + 0x27], 0
call fcn.00432be0
add esp, 8
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00464d49
mov esp, ebp
pop ebp
ret 4