Function at 0x51caa0
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x53472f
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x78], eax
push esi
push edi
mov eax, dword [0x551e00]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x34], 0
mov dword [esp + 0xc], esi
mov dword [esi], 0xffffffff
mov dword [esi + 4], getpeername
mov dword [esi + 0x1c], 0xf
mov dword [esi + 0x18], 0
mov byte [esi + 8], 0
movzx eax, ax
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], getpeername
mov dword [esi + 0x30], 0xffffffff
push dword [esp + 0xa0]
mov dword [esp + 0x94], 0
push eax
lea eax, [esp + 0x48]
mov dword [esp + 0x3c], 1
push eax
call fcn.0051c8b0
add esp, 0xc
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
mov dword [esp + 0x90], 1
cmovae eax, dword [esp + 0x40]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x90], 2
push ecx
push 0xc0000000
push eax
push 2
lea ecx, [esp + 0x24]
call fcn.0051ec10
lea eax, [esp + 0x14]
mov byte [esp + 0x90], 3
push eax
mov ecx, esi
call fcn.0051c350
mov eax, dword [esp + 0x14]
mov byte [esp + 0x90], 4
cmp eax, 0xffffffff
je 0x51cbe2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0xffffffff
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x90], 1
jb 0x51cbfd
push dword [esp + 0x1c]
call fcn.004f9345
add esp, 4
push 0
push 0x84
mov ecx, esi
call fcn.0051f7c0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push 0xc0000000
push esi
lea ecx, [esp + 0x3c]
call fcn.0051a1b0
push eax
lea ecx, [esi + 0x20]
mov byte [esp + 0x94], 5
call fcn.0051c2d0
mov eax, dword [esp + 0x20]
mov byte [esp + 0x90], 1
test eax, eax
je 0x51cc58
sub eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x51cc68
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 0x20]
lea eax, [esp + 0x40]
push 0x41a4d8
push eax
lea eax, [esp + 0x60]
push eax
call fcn.0051a580
add esp, 0xc
cmp dword [esp + 0x6c], 0x10
lea eax, [esp + 0x58]
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
cmovae eax, dword [esp + 0x58]
movdqu xmmword [esp + 0x70], xmm0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], getpeername
mov dword [esp + 0x80], 0xffffffff
push 1
push 2
lea eax, [esp + 0x40]
mov byte [esp + 0x98], 7
push eax
push 0
push 0xc0000000
push 0xc
lea eax, [esp + 0x54]
push eax
push 2
lea ecx, [esp + 0x90]
call fcn.0051ab80
push 1
lea eax, [esp + 0x74]
mov byte [esp + 0x94], 8
push 0xbb8
push eax
call fcn.005212b0
lea eax, [esp + 0x7c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0051a670
add esp, 0x14
mov edx, 1
cmp dword [edi], 0
jne 0x51cd56
mov dword [edi], edx
lea ecx, [edi + 4]
mov eax, edx
xchg dword [ecx], eax
mov eax, dword [esp + 0x38]
mov eax, dword [eax]
add eax, 8
lock xadd dword [eax], edx
inc edx
mov eax, dword [esp + 0x70]
mov byte [esp + 0x90], 6
test eax, eax
je 0x51cd87
sub eax, dword [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esp + 0x70], 0
mov eax, dword [esp + 0x80]
cmp eax, 0xffffffff
je 0x51cda5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x6c], 0x10
jb 0x51cdb8
push dword [esp + 0x58]
call fcn.004f9345
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], 0
mov byte [esp + 0x58], 0
jb 0x51cde0
push dword [esp + 0x40]
call fcn.004f9345
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004f9e32
add esp, 0x88
ret