Function at 0x406f50
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a97ac
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x4c900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x2c], edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0xf
mov byte [edi + 0x58], 0
lea esi, [edi + 0x70]
mov byte [ebp - 4], 6
push 0x28
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004a7a9b
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push 0x3ff
lea eax, [edi + 0x7a]
mov word [edi + 0x78], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x3ff
lea eax, [edi + 0x47d]
mov dword [edi + 0x479], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x3ff
lea eax, [edi + 0x87d]
mov byte [edi + 0x87c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x3ff
lea eax, [edi + 0xc7d]
mov byte [edi + 0xc7c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov dword [edi + 0x107c], 0
add esp, 0x34
mov dword [edi + 0x108c], 0
mov dword [edi + 0x1090], 0xf
mov byte [edi + 0x107c], 0
mov dword [edi + 0x1094], 0
mov dword [edi + 0x10a4], 0
mov dword [edi + 0x10a8], 0xf
mov byte [edi + 0x1094], 0
mov dword [edi + 0x10ac], 0
mov dword [edi + 0x10bc], 0
mov dword [edi + 0x10c0], 0xf
mov byte [edi + 0x10ac], 0
mov dword [edi + 0x10c4], 0
mov dword [edi + 0x10d4], 0
mov dword [edi + 0x10d8], 0xf
mov byte [edi + 0x10c4], 0
mov dword [edi + 0x10dc], 0x1010101
mov dword [edi + 0x10e0], 1
mov byte [edi + 0x10e4], 0
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10f8], 0
mov dword [edi + 0x10fc], 0xf
mov byte [edi + 0x10e8], 0
mov dword [edi + 0x1100], 0
mov dword [edi + 0x1110], 0
mov dword [edi + 0x1114], 0xf
mov byte [edi + 0x1100], 0
mov dword [edi + 0x1118], 1
mov byte [edi + 0x111c], 0
mov dword [edi + 0x1120], 0
mov dword [edi + 0x1130], 0
mov dword [edi + 0x1134], 0xf
mov byte [edi + 0x1120], 0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
push 0x5c
push 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
call fcn.00412b40
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 0x1120]
call fcn.00411f10
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x407257
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40724d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40724d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004a7acb
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret