Function at 0x645e42
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ead6
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [reloc.MSVCRT.dll_strncpy]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [reloc.MSVCRT.dll_strncpy]
mov dword [edi + 8], eax
mov eax, 0x12c
mov dword [edi + 0x14], eax
mov dword [edi + 0x24], eax
mov esi, 3
mov eax, 0x190
mov dword [edi], reloc.MSVCRT.dll_strncpy
mov dword [edi + 4], ebx
mov dword [edi + 0xc], 0x2710
mov dword [edi + 0x10], 0x96
mov dword [edi + 0x18], 0x258
mov dword [edi + 0x1c], 0x4b0
mov dword [edi + 0x20], 0x5c0
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], 0x14
mov dword [edi + 0x30], 1
call fcn.0065be42
push esp
push 0x202
call dword [0x100201cc]
mov dword [edi + 0x34], eax
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], reloc.MSVCRT.dll_strncpy
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], esi
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
push ebx
push ebx
push ebx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x68], ebx
mov dword [edi + 0x6c], ebx
call dword [0x10020008]
mov dword [edi + 0x60], eax
lea esi, [edi + 0x70]
call fcn.00648762
lea eax, reloc.MSVCRT.dll_strncpy
push 0x1000
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
push eax
call dword [0x10020000]
push ebx
push ebx
push ebx
push ebx
call dword [0x1002004c]
mov dword [edi + reloc.MSVCRT.dll_strncpy], eax
mov esi, dword [reloc.MSVCRT.dll_strncpy]
push ebx
push accept
push ebx
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
push ebx
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
call esi
push ebx
push 1
push ebx
push ebx
mov dword [edi + reloc.MSVCRT.dll_strncpy], eax
call esi
mov dword [edi + reloc.MSVCRT.dll_strncpy], eax
lea edx, [ebp - 0x12]
lea eax, reloc.MSVCRT.dll_strncpy
push edx
push eax
mov byte [ebp - 4], 7
call fcn.006499d2
lea ecx, [ebp - 0x14]
lea eax, reloc.MSVCRT.dll_strncpy
push ecx
push eax
mov byte [ebp - 4], 8
call fcn.006499d2
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov eax, dword [edi + reloc.MSVCRT.dll_strncpy]
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
cmp eax, ebx
je 0x645ff6
push eax
call fcn.00657803
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
add esp, 4
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov byte [ebp - 4], 0xa
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
push 8
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
call fcn.006576ef
add esp, 4
cmp eax, ebx
je 0x64601b
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x64601d
xor eax, eax
mov dword [edi + reloc.MSVCRT.dll_strncpy], eax
mov dword [edi + reloc.MSVCRT.dll_strncpy], eax
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov dword [edi + reloc.MSVCRT.dll_strncpy], ebx
mov dword [edi + 0x44], 3
mov eax, edi
lea esp, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006576e0
mov esp, ebp
pop ebp
ret 8