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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512fc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x573054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp byte [esi + 8], 0
je 0x41382b
lea edx, [edi + 4]
call fcn.00411bc0
lea edx, [edi + 0x88]
mov ecx, esi
mov bh, al
call fcn.00411fa0
lea edx, [edi + 0x108]
mov ecx, esi
mov bl, al
call fcn.00412340
lea edx, [edi + 0x1a4]
mov byte [ebp - 0x11], al
mov ecx, esi
call fcn.00412790
mov byte [ebp - 0x12], al
mov ecx, esi
lea eax, [edi + 0x240]
mov edx, eax
call fcn.00412be0
xor esi, esi
mov byte [ebp - 0x13], al
cmp byte [ebp - 0x12], 0
mov ecx, 1
cmovne esi, ecx
cmp byte [ebp - 0x11], 0
je 0x413258
add esi, 2
test bl, bl
je 0x41325f
add esi, 4
test bh, bh
je 0x413266
add esi, 8
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
push 3
push 0x535cb4
test al, al
je 0x4132ca
xor eax, eax
add esi, 0x10
mov word [ebp - 0x2c], ax
call fcn.004033d0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push 1
push eax
call fcn.004291c0
mov ecx, eax
call fcn.004296b0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00403370
jmp 0x4132ff
xor eax, eax
mov word [ebp - 0x2c], ax
call fcn.004033d0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 5
push 0
push eax
call fcn.004291c0
mov ecx, eax
call fcn.004296b0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 6
call fcn.00403370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 3
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x535cbc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.004033d0
mov eax, esi
mov dword [ebp - 4], 0xa
cdq
push edx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004291c0
mov ecx, eax
call fcn.004296b0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xb
call fcn.00403370
cmp byte [ebp - 0x13], 0
mov dword [ebp - 4], 0xffffffff
je 0x4134d9
mov esi, dword [ebp + 8]
mov dword [esi], 5
lea ecx, [esi + 0x18]
mov eax, dword [edi + 0x240]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x244]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x248]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x24c]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x250]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x254]
cmp ecx, eax
je 0x4133c9
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x4133c0
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
lea eax, [edi + 0x26c]
lea ecx, [esi + 0x30]
cmp ecx, eax
je 0x4133e9
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x4133e0
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
lea eax, [edi + 0x2c4]
lea ecx, [esi + 0xa4]
cmp ecx, eax
je 0x41340c
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413403
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
lea eax, [edi + 0x2dc]
lea ecx, [esi + 0xbc]
cmp ecx, eax
je 0x41342f
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413426
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
lea eax, [edi + 0x2f8]
lea ecx, [esi + 0xdc]
cmp ecx, eax
je 0x413452
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413449
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
mov eax, dword [edi + 0x284]
lea ecx, [esi + 0x70]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x288]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x28c]
mov dword [esi + 0x6c], eax
lea eax, [edi + 0x290]
cmp ecx, eax
je 0x41348d
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413484
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
lea eax, [edi + 0x2a8]
lea ecx, [esi + 0x88]
cmp ecx, eax
je 0x4134b0
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x4134a7
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
mov eax, dword [edi + 0x2c0]
mov dword [esi + 0xa0], eax
mov eax, dword [edi + 0x2f4]
mov dword [esi + 0x60], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bh, bh
je 0x4135a8
mov esi, dword [ebp + 8]
mov dword [esi], 4
lea ecx, [esi + 0x18]
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
cmp ecx, eax
je 0x413525
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x41351c
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
cmp ecx, eax
je 0x413542
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413539
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
lea eax, [edi + 0x48]
lea ecx, [esi + 0x48]
cmp ecx, eax
je 0x41355f
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413556
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
mov eax, dword [edi + 0x60]
lea ecx, [esi + 0x70]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x6c]
add edi, 0x70
mov dword [esi + 0x6c], eax
cmp ecx, edi
je 0x413594
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41358b
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.004033d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x413699
mov esi, dword [ebp + 8]
mov dword [esi], 3
lea ecx, [esi + 0x18]
mov eax, dword [edi + 0x88]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x8c]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x90]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x94]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x98]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x9c]
cmp ecx, eax
je 0x413606
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x4135fd
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
lea eax, [edi + 0xb4]
lea ecx, [esi + 0x30]
cmp ecx, eax
je 0x413626
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x41361d
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
lea eax, [edi + 0xcc]
lea ecx, [esi + 0x48]
cmp ecx, eax
je 0x413646
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x41363d
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.004033d0
mov eax, dword [edi + 0xe4]
lea ecx, [esi + 0x70]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0xe8]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0xec]
add edi, 0xf0
mov dword [esi + 0x6c], eax
cmp ecx, edi
je 0x413594
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41367c
mov eax, dword [edi]
push dword [edi + 0x10]
push eax
call fcn.004033d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x11], 0
je 0x413762
mov esi, dword [ebp + 8]
mov dword [esi], 2
lea ecx, [esi + 0x18]
mov eax, dword [edi + 0x108]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x10c]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x110]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x114]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x118]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x11c]
push eax
call fcn.00405920
lea eax, [edi + 0x134]
push eax
lea ecx, [esi + 0x30]
call fcn.00405920
lea eax, [edi + 0x14c]
push eax
lea ecx, [esi + 0x48]
call fcn.00405920
mov eax, dword [edi + 0x164]
lea ecx, [esi + 0x70]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x168]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x16c]
mov dword [esi + 0x6c], eax
lea eax, [edi + 0x170]
push eax
call fcn.00405920
lea eax, [edi + 0x188]
push eax
lea ecx, [esi + 0x88]
call fcn.00405920
mov eax, dword [edi + 0x1a0]
mov dword [esi + 0xa0], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x12], 0
je 0x41382b
mov esi, dword [ebp + 8]
mov dword [esi], 1
lea ecx, [esi + 0x18]
mov eax, dword [edi + 0x1a4]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x1a8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x1ac]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x1b0]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x1b4]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x1b8]
push eax
call fcn.00405920
lea eax, [edi + 0x1d0]
push eax
lea ecx, [esi + 0x30]
call fcn.00405920
lea eax, [edi + 0x1e8]
push eax
lea ecx, [esi + 0x48]
call fcn.00405920
mov eax, dword [edi + 0x200]
lea ecx, [esi + 0x70]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x204]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x208]
mov dword [esi + 0x6c], eax
lea eax, [edi + 0x20c]
push eax
call fcn.00405920
lea eax, [edi + 0x224]
push eax
lea ecx, [esi + 0x88]
call fcn.00405920
mov eax, dword [edi + 0x23c]
mov dword [esi + 0xa0], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret