Function at 0x485840
Capabilities:
Create raw socket
Get number of processors
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50a80b
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x54b708]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x54b708]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00469d40
mov esi, eax
call fcn.00469c80
test al, al
jne 0x485918
push 0x54d958
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x53131c
call fcn.0040b2c0
mov ebx, eax
mov eax, dword [0x555850]
add esp, 4
cmp eax, dword [0x555854]
jne 0x4858c7
mov esi, 0x555830
call fcn.004145f0
mov edx, dword [0x555850]
mov ecx, dword [0x55584c]
mov dword [ecx + edx*4], ebx
mov eax, dword [0x555830]
mov edx, dword [eax + 0x30]
add dword [0x555850], 1
mov ecx, 0x555830
call edx
cmp eax, 0x64
jbe 0x485908
call fcn.004409c0
test eax, eax
je 0x4858ff
lea ecx, [eax + 4]
jmp 0x485901
xor ecx, ecx
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
push 0x54d958
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x485d96
xor ebx, ebx
push 1
push ebx
push ebx
push ebx
push 3
push 2
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.WS2_32.dll_WSASocketW]
cmp eax, 0xffffffff
mov dword [edi + 0x34], eax
jne 0x48595d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.WSASocket___Failed:
call fcn.00485dd0
add esp, 4
jmp 0x485d96
mov ecx, dword [edi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
xor esi, esi
call edx
test eax, eax
jbe 0x485995
lea ecx, [ecx]
mov ecx, dword [edi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x19c]
push esi
call edx
mov al, byte [eax]
mov ecx, dword [edi + 0x38]
mov byte [esp + esi + 0x4c], al
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
add esi, 1
call eax
cmp esi, eax
jb 0x485970
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + eax + 0x50], bl
mov word [esp + 0x40], 2
call esi
push 0x10
lea edx, [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x34]
push edx
push eax
mov word [esp + 0x4a], bx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x4859ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.bind___Failed:
call fcn.00485dd0
add esp, 4
jmp 0x485d80
mov eax, dword [edi + 0x34]
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push 4
lea edx, [esp + 0x40]
push edx
push 0x98000001
push eax
mov dword [esp + 0x4c], 1
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
jne 0x485b3e
call fcn.004a4cfc
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x485a38
push 0x80004005
call fcn.0040bb70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x98000001
lea ecx, [esp + 0x14]
push str.WSAIotcl_0x_x__Failed:
push ecx
mov dword [esp + 0x16c], ebx
call fcn.0041d490
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call fcn.00485dd0
add esp, 4
cmp esi, 0x2726
jne 0x485b0a
push 0x54d958
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.NOTE:_IPv6_does_not_currently_support_the_SIO_RCVALL_ioctls
call fcn.0040b2c0
mov dword [esp + 0x18], eax
mov eax, dword [0x555850]
add esp, 4
cmp eax, dword [0x555854]
jne 0x485abc
mov esi, 0x555830
call fcn.004145f0
xor ebx, ebx
mov eax, dword [0x555850]
mov ecx, dword [0x55584c]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax*4], edx
mov edx, dword [0x555830]
mov eax, dword [edx + 0x30]
add dword [0x555850], 1
mov ecx, 0x555830
call eax
cmp eax, 0x64
jbe 0x485aff
call fcn.004409c0
cmp eax, ebx
je 0x485af6
lea ebx, [eax + 4]
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
push 0x54d958
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x160], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x485d80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x485d80
push 0xffff
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
jne 0x485be5
push 0x54d958
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.HeapAlloc_Failed:
call fcn.0040b2c0
mov ecx, dword [0x555850]
add esp, 4
cmp ecx, dword [0x555854]
mov dword [esp + 0x14], eax
jne 0x485b8f
mov esi, 0x555830
call fcn.004145f0
mov ecx, dword [0x555850]
mov edx, dword [0x55584c]
mov eax, dword [esp + 0x14]
mov dword [edx + ecx*4], eax
mov edx, dword [0x555830]
mov eax, dword [edx + 0x30]
add dword [0x555850], 1
mov ecx, 0x555830
call eax
cmp eax, 0x64
jbe 0x485bd5
call fcn.004409c0
test eax, eax
je 0x485bcc
lea ecx, [eax + 4]
jmp 0x485bce
xor ecx, ecx
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
push 0x54d958
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x485d6c
lea ecx, [esp + 0x4c]
push ecx
call esi
mov dword [esp + 0x34], eax
call fcn.0040a930
cmp byte [edi + 0x31], 0
mov dword [esp + 0x10], eax
jne 0x485d59
push 0
push 0
lea edx, [esp + 0x2c]
push edx
mov edx, dword [edi + 0x34]
lea eax, [esp + 0x24]
push eax
push 1
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x48], 0xffff
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x485d46
mov ecx, dword [esp + 0x18]
cmp ecx, 0x14
jb 0x485d3a
movzx eax, byte [ebx]
mov edx, dword [ebx + 0xc]
and eax, 0xf
add eax, eax
add eax, eax
mov esi, eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
mov al, byte [ebx + 9]
cmp al, 6
mov dword [esp + 0x38], edx
jne 0x485c82
sub ecx, esi
cmp ecx, 0x14
jb 0x485d3a
mov dword [esp + 0x20], 0x51fe0c
jmp 0x485c9d
cmp al, 0x11
jne 0x485d3a
sub ecx, esi
cmp ecx, 8
jb 0x485d3a
mov dword [esp + 0x20], 0x51fe58
movzx ecx, word [esi + ebx]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
movzx eax, word [esi + ebx + 2]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x34]
movzx esi, ax
mov eax, dword [esp + 0x38]
cmp eax, ecx
jne 0x485cfe
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00415890
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x40]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [edi + 0x38]
push esi
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
push 1
jmp 0x485d32
cmp dword [esp + 0x14], ecx
jne 0x485d3a
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.00415890
mov eax, dword [edi + 0x44]
mov ecx, dword [edi + 0x40]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [edi + 0x38]
push eax
mov eax, dword [esp + 0x38]
push ecx
push esi
push edx
push eax
push 0
mov ecx, dword [edi + 0x3c]
call ecx
add esp, 0x2c
cmp byte [edi + 0x31], 0
je 0x485c03
jmp 0x485d59
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.WSARecv___Failed:
call fcn.00485dd0
add esp, 4
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x485d6c
mov edx, dword [ecx + 4]
mov eax, dword [edx + 4]
add ecx, 4
call eax
test ebx, ebx
je 0x485d80
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi + 0x34]
cmp eax, 0xffffffff
je 0x485d96
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 0x34], 0xffffffff
mov byte [edi + 0x31], 0
mov byte [edi + 0x30], 0
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004b8e16
mov esp, ebp
pop ebp
ret