Function at 0x440ab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fe420
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x591430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x14]
push edi
push 0x16c
mov dword [ebp - 0x20], edi
call fcn.00414730
mov ebx, eax
mov dword [ebp + 0x14], 0
mov eax, dword [ebp + 8]
add esp, 8
mov dl, byte [eax + 4]
mov ecx, dword [eax]
lea eax, [esi + 0x14]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0x441e70
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x1c], 0
mov dword [ebp - 0x10], eax
mov dword [ebx + 0x24], ecx
shr dl, 2
and dl, 1
test esi, esi
mov esi, dword [ebp + 0xc]
cmove eax, dword [ebp + 0x14]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x28], 0xffffffff
mov dword [ebx + 0x2c], esi
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x34], eax
mov byte [ebx + 0x158], dl
mov eax, dword [edi]
mov dword [ebx + 0x15c], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0x160], eax
mov eax, dword [edi + 8]
mov dword [ebx + 0x164], eax
mov dword [ebx + 0x168], 0
mov eax, dword [ebx + 0x168]
mov ecx, dword [edi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x168], ecx
mov dword [edi + 8], 0
mov eax, dword [eax + 0x20]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 4]
mov esi, dword [ebp + 8]
mov dword [ebp + 0x14], eax
cmp dword [esi + 0x14], 0
jne 0x440bd0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x14], eax
jmp 0x440be2
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x14], eax
je 0x440be2
mov dword [esi + 0x14], 0xffffffff
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 4]
lock inc dword [eax + 0x18]
cmp dword [esi], 0xffffffff
jne 0x440c06
mov ecx, dword [edi + 4]
push 0
push 0x2719
push ebx
call fcn.004198e0
jmp 0x440caf
cmp dword [ebp + 0x14], 0xffffffff
je 0x440c1e
mov ecx, dword [edi + 4]
push 0
push 1
push ebx
call fcn.004198e0
jmp 0x440caf
mov dword [ebp - 0x14], 0
call fcn.004b9da0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 6
push 1
push dword [ebp + 0xc]
call fcn.0041c8c0
add esp, 0x10
lea ecx, [ebx + 0x28]
push eax
call fcn.004427e0
mov eax, dword [ebx + 0x28]
cmp eax, 0xffffffff
jne 0x440c62
mov ecx, dword [edi + 4]
lea eax, [ebp - 0x14]
push 0
push eax
push ebx
call fcn.00442680
jmp 0x440caf
push ebx
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 0x90
push 0x90
push 0
lea ecx, [ebx + 0x38]
push ecx
push eax
push dword [esi]
call sub.WSOCK32.dll_AcceptEx
mov esi, eax
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test esi, esi
jne 0x440ca6
cmp eax, 0x3e5
je 0x440ca6
mov ecx, dword [edi + 4]
push esi
push eax
push ebx
call fcn.004198e0
jmp 0x440caf
mov ecx, dword [edi + 4]
push ebx
call fcn.00419a20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00442700
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10