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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512db8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x575054]
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 0x41381b
lea edx, [edi + 4]
call fcn.00411bb0
lea edx, [edi + 0x88]
mov ecx, esi
mov bh, al
call fcn.00411f90
lea edx, [edi + 0x108]
mov ecx, esi
mov bl, al
call fcn.00412330
lea edx, [edi + 0x1a4]
mov byte [ebp - 0x11], al
mov ecx, esi
call fcn.00412780
mov byte [ebp - 0x12], al
mov ecx, esi
lea eax, [edi + 0x240]
mov edx, eax
call fcn.00412bd0
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 0x413248
add esi, 2
test bl, bl
je 0x41324f
add esi, 4
test bh, bh
je 0x413256
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 0x536bbc
test al, al
je 0x4132ba
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.004291b0
mov ecx, eax
call fcn.004296a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.00403370
jmp 0x4132ef
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.004291b0
mov ecx, eax
call fcn.004296a0
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 0x536bc4
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.004291b0
mov ecx, eax
call fcn.004296a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xb
call fcn.00403370
cmp byte [ebp - 0x13], 0
mov dword [ebp - 4], 0xffffffff
je 0x4134c9
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 0x4133b9
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x4133b0
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 0x4133d9
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x4133d0
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 0x4133fc
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x4133f3
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 0x41341f
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413416
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 0x413442
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413439
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 0x41347d
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413474
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 0x4134a0
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413497
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 0x413598
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 0x413515
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x41350c
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 0x413532
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413529
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 0x41354f
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x413546
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 0x413584
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41357b
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 0x413689
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 0x4135f6
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x4135ed
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 0x413616
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x41360d
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 0x413636
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x41362d
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 0x413584
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41366c
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 0x413752
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 0x41381b
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