Function at 0x407b70
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x42bb48
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4340a0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4340a0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
push 1
xor ebp, ebp
push ebp
push ebp
push ebp
push 1
push 2
mov edi, ecx
mov esi, edx
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x407bdd
mov dword [edi + 0x18], ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Proxy_WSASocket__
call fcn.004073e0
add esp, 8
xor al, al
jmp 0x407e3b
mov ecx, dword [0x436778]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [esp + 0x1c]
push edx
push 0x1002
push 0xffff
push eax
mov dword [esp + 0x2c], ecx
call ebx
mov ecx, dword [edi + 0x18]
push 4
lea eax, [esp + 0x1c]
push eax
push 0x1001
push 0xffff
push ecx
call ebx
mov edx, dword [edi]
mov eax, dword [edi + 0x18]
push ebp
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test eax, eax
jne 0x407c46
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Proxy_CreateIoCompletionPort
call fcn.004073e0
add esp, 8
xor al, al
jmp 0x407e3b
mov ecx, 2
push ebp
mov word [esp + 0x3c], cx
call dword [sym.imp.WS2_32.dll_htonl]
push ebp
mov dword [esp + 0x40], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x3c]
mov word [esp + 0x3e], ax
mov eax, dword [edi + 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x407c98
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Proxy_bind
call fcn.004073e0
add esp, 8
xor al, al
jmp 0x407e3b
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edi + 0x18]
push 4
mov ecx, 0xddf3
mov word [esp + 0x3c], cx
lea ecx, [esp + 0x2c]
push ecx
mov edx, 0x4660
push 0x10
mov word [esp + 0x46], dx
lea edx, [esp + 0x40]
push edx
push 0xc8000006
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], 0x25a207b9
mov byte [esp + 0x54], 0x8e
mov byte [esp + 0x55], 0xe9
mov byte [esp + 0x56], 0x76
mov byte [esp + 0x57], 0xe5
mov byte [esp + 0x58], 0x8c
mov byte [esp + 0x59], 0x74
mov byte [esp + 0x5a], 6
mov byte [esp + 0x5b], 0x3e
mov dword [esp + 0x48], ebp
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x407d13
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ebx, [edi + 0x1c]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov ecx, 2
mov dword [ebx + 0xc], eax
lea edx, [edi + 0x2c]
mov word [ebx], cx
push edx
lea ecx, [esp + 0x4c]
call fcn.00404470
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], ebp
call fcn.00405720
mov dword [ebx + 4], eax
movzx eax, word [edi + 0x12c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 2], ax
mov eax, dword [ebx + 4]
cmp eax, ebp
je 0x407df5
cmp eax, 0xffffffff
je 0x407df5
mov edx, dword [esp + 0x1c]
cmp edx, ebp
je 0x407df5
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x401c]
lea ecx, [esi + 0x1c]
mov dword [esi + 0x4024], 2
mov dword [esi + 0x4020], 1
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
lea esi, [edi + 0x134]
push esi
lea esi, [esp + 0x24]
push esi
push eax
push ecx
mov ecx, dword [edi + 0x18]
push 0x10
push ebx
push ecx
mov dword [esp + 0x3c], ebp
call edx
cmp eax, 0xffffffff
jne 0x407e25
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x407e25
call esi
push eax
push str.Proxy_ConnectEx
call fcn.004073e0
add esp, 8
lea ecx, [esp + 0x48]
call fcn.00402fa0
xor al, al
jmp 0x407e3b
push 8
mov dword [esi + 0x4024], 5
call fcn.0041c81e
add esp, 4
cmp eax, ebp
je 0x407e14
call fcn.00405960
jmp 0x407e16
xor eax, eax
mov dword [edi + 0x130], eax
mov esi, eax
mov dword [eax], edi
call fcn.004059f0
cmp dword [esp + 0x60], 0x10
jb 0x407e39
mov edx, dword [esp + 0x4c]
push edx
call fcn.0041c21c
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0041c227
add esp, 0x60
ret