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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
test dl, dl
je 0x521caa
add esp, 0xfffffff0
call fcn.00403fa0
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x8c]
call fcn.00404fac
mov eax, dword [ebp + 0x88]
call fcn.00404fac
mov eax, dword [ebp + 0x84]
call fcn.00404fac
mov eax, dword [ebp + 0x80]
call fcn.00404fac
mov eax, dword [ebp + 0x2c]
call fcn.00404fac
mov eax, dword [ebp + 0x28]
call fcn.00404fac
mov eax, dword [ebp + 0x24]
call fcn.00404fac
mov eax, dword [ebp + 0x20]
call fcn.00404fac
mov eax, dword [ebp + 0x1c]
call fcn.00404fac
mov eax, dword [ebp + 0x18]
call fcn.00404fac
mov eax, dword [ebp + 0x14]
call fcn.00404fac
mov eax, dword [ebp + 0x10]
call fcn.00404fac
mov eax, dword [ebp + 0xc]
call fcn.00404fac
mov eax, dword [ebp + 8]
call fcn.00404fac
xor eax, eax
push ebp
push 0x521f16
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00403ba8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + 0x68], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 4]
add eax, 0x70
mov edx, dword [ebp + 0x8c]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0x74
mov edx, dword [ebp + 0x88]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0x78
mov edx, dword [ebp + 0x84]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0x7c
mov edx, dword [ebp + 0x80]
call fcn.00404ba4
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x78]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x7c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x50]
mov dword [eax + 0xc], edx
mov edx, dword [ebp + 0x54]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x48]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp + 0x4c]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x48]
mov dword [eax + 0x24], edx
mov edx, dword [ebp + 0x4c]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x40]
mov dword [eax + 0x2c], edx
mov edx, dword [ebp + 0x44]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x38]
mov dword [eax + 0x34], edx
mov edx, dword [ebp + 0x3c]
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x30]
mov dword [eax + 0x3c], edx
mov edx, dword [ebp + 0x34]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x70]
mov dword [eax + 0x44], edx
mov edx, dword [ebp + 0x74]
mov dword [eax + 0x48], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x68]
mov dword [eax + 0x4c], edx
mov edx, dword [ebp + 0x6c]
mov dword [eax + 0x50], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x60]
mov dword [eax + 0x54], edx
mov edx, dword [ebp + 0x64]
mov dword [eax + 0x58], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x58]
mov dword [eax + 0x5c], edx
mov edx, dword [ebp + 0x5c]
mov dword [eax + 0x60], edx
mov eax, dword [ebp - 4]
add eax, 0x80
mov edx, dword [ebp + 0x2c]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0x84
mov edx, dword [ebp + 0x28]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0x88
mov edx, dword [ebp + 0x24]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0x8c
mov edx, dword [ebp + 0x20]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0x90
mov edx, dword [ebp + 0x1c]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0x94
mov edx, dword [ebp + 0x18]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0x98
mov edx, dword [ebp + 0x14]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0x9c
mov edx, dword [ebp + 0x10]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0xa0
mov edx, dword [ebp + 0xc]
call fcn.00404ba4
mov eax, dword [ebp - 4]
add eax, 0xa4
mov edx, dword [ebp + 8]
call fcn.00404ba4
mov eax, dword [ebp - 4]
mov byte [eax + 0xa8], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x521f1d
lea eax, [ebp + 8]
mov edx, 0xa
call fcn.00404b74
lea eax, [ebp + 0x80]
mov edx, 4
call fcn.00404b74
ret