Function at 0x40cbc0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57395b
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x5e5044]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x154], eax
push 0x288
mov dword [ebp - 0x184], eax
call fcn.00421a79
mov esi, eax
add esp, 4
mov dword [ebp - 0x158], esi
test esi, esi
je 0x40cc2a
push 0x288
push 0
push esi
call fcn.0054ee00
add esp, 0xc
jmp 0x40cc32
xor esi, esi
mov dword [ebp - 0x158], esi
lea eax, [ebp - 0x164]
mov dword [ebp - 0x160], esi
push eax
push esi
mov dword [ebp - 0x164], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40cc88
push 0x288
push esi
call fcn.0054cce7
push dword [ebp - 0x164]
call fcn.00421aa6
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x164]
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x160], esi
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x40d155
lea edi, [eax + 2]
test esi, esi
je 0x40d167
add esi, 0x1ac
mov dword [ebp - 0x174], esi
nop word [eax + eax]
lea eax, [esi + 4]
mov dword [ebp - 0x178], 0xc8
push eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x14d], 1
mov word [ebp - 0x14c], di
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0x2328
mov dword [ebp - 0x148], eax
call esi
push 0x2328
mov word [ebp - 0x14a], ax
mov word [ebp - 0x13c], di
mov dword [ebp - 0x138], 0xffffffff
call esi
push 0
push 2
push 2
mov word [ebp - 0x13a], ax
mov dword [ebp - 0x170], 0x10
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
push 1
lea eax, [ebp - 0x14d]
mov dword [ebp - 0x16c], edi
push eax
push 0x20
push 0xffff
push edi
call esi
push 4
lea eax, [ebp - 0x178]
push eax
push 0x1006
push 0xffff
push edi
call esi
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x17c], 0
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
push 0x100
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.0054ee00
add esp, 0xc
mov dword [ebp - 0x20], 0x30305058
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x1c], 0x49463130
mov word [ebp - 0x18], 0x444e
mov dword [ebp - 0x2c], 0x30305058
push dword [ebp - 0x170]
mov dword [ebp - 0x28], 0x4f463130
push eax
push 0
push 0xa
lea eax, [ebp - 0x20]
mov word [ebp - 0x24], 0x4e55
push eax
push edi
mov byte [ebp - 0x22], 0x44
call dword [sym.imp.WS2_32.dll_sendto]
push 0x100
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.0054ee00
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x13c]
push eax
push 0
push 0x100
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x40d113
cmp eax, 0x22
jne 0x40cdf0
xor eax, eax
mov dword [ebp - 0x15c], eax
call fcn.00422a3c
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40ce5b
push 0x80004005
call fcn.00402180
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x168], esi
push 0xb
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0056634c
add esp, 0xc
test eax, eax
je 0x40ceaf
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40cdf0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40cdf0
push 0x1c
call fcn.00421a79
mov edi, eax
add esp, 4
test edi, edi
je 0x40ced3
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x18], 0
jmp 0x40ced5
xor edi, edi
movzx eax, byte [ebp - 0x121]
mov byte [edi + 8], al
movzx eax, byte [ebp - 0x120]
mov byte [edi + 9], al
movzx eax, byte [ebp - 0x11f]
mov byte [edi + 0xa], al
movzx eax, byte [ebp - 0x11e]
mov byte [edi + 0xb], al
movzx eax, byte [ebp - 0x11d]
mov byte [edi + 0xc], al
movzx eax, byte [ebp - 0x11c]
mov byte [edi + 0xd], al
movzx eax, byte [ebp - 0x119]
mov byte [edi], al
movzx eax, byte [ebp - 0x118]
mov byte [edi + 1], al
movzx eax, byte [ebp - 0x117]
mov byte [edi + 2], al
movzx eax, byte [ebp - 0x116]
mov byte [edi + 3], al
movzx eax, byte [ebp - 0x115]
mov byte [edi + 4], al
movzx eax, byte [ebp - 0x114]
mov byte [edi + 5], al
movzx eax, byte [ebp - 0x113]
mov byte [edi + 6], al
movzx eax, byte [ebp - 0x112]
mov byte [edi + 7], al
movzx eax, byte [ebp - 0x111]
mov byte [edi + 0xe], al
movzx eax, byte [ebp - 0x110]
mov byte [edi + 0xf], al
movzx eax, byte [ebp - 0x10f]
mov byte [edi + 0x10], al
movzx eax, byte [ebp - 0x10e]
mov byte [edi + 0x11], al
movzx eax, byte [ebp - 0x10d]
mov byte [edi + 0x12], al
movzx eax, byte [ebp - 0x10c]
mov byte [edi + 0x13], al
movzx eax, byte [ebp - 0x10b]
mov byte [edi + 0x14], al
movzx eax, byte [edi + 0xd]
push eax
movzx eax, byte [edi + 0xc]
push eax
movzx eax, byte [edi + 0xb]
push eax
movzx eax, byte [edi + 0xa]
push eax
movzx eax, byte [edi + 9]
push eax
movzx eax, byte [edi + 8]
push eax
lea eax, [ebp - 0x168]
push 0x58a590
push eax
call fcn.00402630
mov eax, dword [ebp - 0x180]
add esp, 0x20
xor esi, esi
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x154]
push esi
push esi
push 0x18b
push dword [eax + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x40d076
mov eax, dword [ebp - 0x154]
push 0
push esi
push 0x199
push dword [eax + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [eax + 8]
cmp ecx, dword [edi + 8]
jne 0x40d038
movzx eax, word [eax + 0xc]
cmp ax, word [edi + 0xc]
jne 0x40d038
mov dword [ebp - 0x15c], 1
jmp 0x40d044
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x154]
inc esi
push 0
push 0
push 0x18b
push dword [eax + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, eax
jl 0x40d000
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x40d076
mov esi, dword [ebp - 0x168]
jmp 0x40d0c4
mov esi, dword [ebp - 0x168]
mov eax, dword [ebp - 0x154]
push esi
push 0
push 0x180
push dword [eax + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [ebp - 0x154]
push eax
push 0x19a
push dword [edi + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x186
push dword [edi + 0x2c0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
mov edi, dword [ebp - 0x16c]
test eax, eax
jg 0x40cdf0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40cdf0
mov esi, dword [ebp - 0x174]
push edi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [esi]
mov dword [ebp - 0x174], esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov edi, 2
test esi, esi
jne 0x40ccb0
mov esi, dword [ebp - 0x158]
mov esi, dword [esi]
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x160], esi
jmp 0x40cc93
test esi, esi
je 0x40d167
push 0x288
push esi
call fcn.0054cce7
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054c90d
mov esp, ebp
pop ebp
ret