Function at 0x4214d0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x46f78a
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x48c74c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48c74c]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov esi, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], 0
mov dword [esp + 0x8c], 1
lea eax, [esp + 0xa0]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x54], 0
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 0
push eax
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
call fcn.00403150
mov byte [esp + 0x8c], 2
mov edx, esi
push 0
lea ecx, [esp + 0x20]
call fcn.00410760
add esp, 4
mov byte [esp + 0x8c], 3
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push 0
push eax
call fcn.00402fc0
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x30], 0x10
jb 0x4215b8
push dword [esp + 0x1c]
call fcn.0044b63d
add esp, 4
push 0
mov edx, edi
mov dword [esp + 0x34], 0xf
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.00410760
add esp, 4
mov byte [esp + 0x8c], 4
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push 0
push eax
call fcn.00402fc0
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x30], 0x10
jb 0x42160e
push dword [esp + 0x1c]
call fcn.0044b63d
add esp, 4
cmp dword [esp + 0x50], 0x10
lea eax, [esp + 0x6c]
push eax
push dword [esp + 0x50]
lea edx, [esp + 0x44]
mov dword [esp + 0x38], 0xf
cmovae edx, dword [esp + 0x44]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x34], 0
mov byte [esp + 0x24], 0
call fcn.00438e70
mov byte [esp + 0x94], 5
lea ecx, [esp + 0x5c]
call fcn.0040f150
push 0
lea edx, [esp + 0x60]
lea ecx, [esp + 0x28]
call fcn.00410760
add esp, 0xc
mov byte [esp + 0x8c], 6
lea ecx, [esp + 0xa0]
push 0xffffffffffffffff
push 0
push eax
call fcn.00402fc0
mov byte [esp + 0x8c], 5
cmp dword [esp + 0x30], 0x10
jb 0x42169a
push dword [esp + 0x1c]
call fcn.0044b63d
add esp, 4
cmp dword [esp + 0x50], 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x4c], 0
cmovae eax, dword [esp + 0x3c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
mov byte [eax], 0
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0x4c]
cmp edi, esi
ja 0x42170a
cmp dword [esp + 0x50], esi
je 0x42170a
push 1
push esi
lea ecx, [esp + 0x44]
call fcn.00403860
test al, al
je 0x421703
cmp dword [esp + 0x50], 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x4c], edi
cmovae eax, dword [esp + 0x3c]
mov byte [eax + edi], 0
mov esi, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
lea eax, [esp + 0xa0]
mov edx, dword [esp + 0xa0]
cmp ecx, 0x10
cmovae eax, edx
add esi, eax
jmp 0x421730
cmp ecx, 0x10
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x3c]
cmovae eax, edx
cmp esi, eax
je 0x421791
mov al, byte [esi - 1]
dec esi
cmp dword [esp + 0x50], 0x10
mov byte [esp + 0x14], al
cmovae ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x4c]
add eax, ecx
cmp dword [esp + 0x50], 0x10
lea ecx, [esp + 0x3c]
cmovae ecx, dword [esp + 0x3c]
test eax, eax
je 0x421771
sub eax, ecx
push dword [esp + 0x14]
lea ecx, [esp + 0x40]
push 1
push eax
call fcn.00423b80
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xa0]
jmp 0x421730
lea eax, [esp + 0xa0]
push eax
call fcn.004239d0
mov edi, dword [esp + 0x4c]
xor esi, esi
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xb0], edi
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0xb4], ecx
test edi, edi
je 0x421853
mov ebp, ecx
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
cmp ecx, 1
jne 0x421846
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0xa0]
cmp ebp, 0x10
lea ecx, [esp + 0xa0]
cmovae eax, edx
cmovae ecx, edx
mov bl, byte [eax + esi - 1]
lea eax, [esp + 0xa0]
cmovae eax, edx
mov al, byte [eax + esi]
mov byte [ecx + esi - 1], al
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 0x10
cmovae eax, dword [esp + 0xa0]
mov byte [eax + esi], bl
mov ebp, dword [esp + 0xb4]
mov edi, dword [esp + 0xb0]
inc esi
cmp esi, edi
jb 0x4217d6
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
xor esi, esi
test edi, edi
je 0x4218da
mov ebp, dword [esp + 0x14]
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
cmp ecx, 2
jne 0x4218d1
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0xa0]
cmp ebp, 0x10
lea ecx, [esp + 0xa0]
cmovae eax, edx
cmovae ecx, edx
mov bl, byte [eax + esi - 1]
lea eax, [esp + 0xa0]
cmovae eax, edx
mov al, byte [eax + esi]
mov byte [ecx + esi - 1], al
lea eax, [esp + 0xa0]
cmp dword [esp + 0xb4], 0x10
cmovae eax, dword [esp + 0xa0]
mov byte [eax + esi], bl
mov ebp, dword [esp + 0xb4]
mov edi, dword [esp + 0xb0]
inc esi
cmp esi, edi
jb 0x421861
mov ebp, dword [esp + 0x18]
mov dword [ebp + 0x14], 0xf
mov dword [ebp + 0x10], 0
mov byte [ebp], 0
cmp dword [esp + 0xb4], 0x10
jae 0x421914
mov eax, dword [esp + 0xb0]
inc eax
je 0x421941
push eax
lea eax, [esp + 0xa4]
push eax
push ebp
call fcn.0044b660
add esp, 0xc
jmp 0x421941
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov byte [esp + 0x8c], 8
mov eax, dword [esp + 0xa0]
mov dword [ebp], eax
mov byte [esp + 0x8c], 5
mov dword [esp + 0xa0], 0
mov eax, dword [esp + 0xb0]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0xb4]
mov dword [ebp + 0x14], eax
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], 0
mov byte [esp + 0xa0], 0
mov dword [esp + 0x34], 1
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x68], 8
jb 0x421996
push dword [esp + 0x54]
call fcn.0044b63d
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov byte [esp + 0x8c], 1
cmp dword [esp + 0x50], 0x10
jb 0x4219c8
push dword [esp + 0x3c]
call fcn.0044b63d
add esp, 4
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x8c], 0
cmp dword [esp + 0xb4], 0x10
jb 0x4219fe
push dword [esp + 0xa0]
call fcn.0044b63d
add esp, 4
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], 0
mov byte [esp + 0xa0], 0
mov eax, ebp
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0044b642
add esp, 0x7c
ret 0x24