Function at 0x421660
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x46f9ba
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.004030f0
mov byte [esp + 0x8c], 2
mov edx, esi
push 0
lea ecx, [esp + 0x20]
call fcn.004108f0
add esp, 4
mov byte [esp + 0x8c], 3
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push 0
push eax
call fcn.00402f60
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x30], 0x10
jb 0x421748
push dword [esp + 0x1c]
call fcn.0044b7dc
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.004108f0
add esp, 4
mov byte [esp + 0x8c], 4
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push 0
push eax
call fcn.00402f60
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x30], 0x10
jb 0x42179e
push dword [esp + 0x1c]
call fcn.0044b7dc
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.00439010
mov byte [esp + 0x94], 5
lea ecx, [esp + 0x5c]
call fcn.0040f270
push 0
lea edx, [esp + 0x60]
lea ecx, [esp + 0x28]
call fcn.004108f0
add esp, 0xc
mov byte [esp + 0x8c], 6
lea ecx, [esp + 0xa0]
push 0xffffffffffffffff
push 0
push eax
call fcn.00402f60
mov byte [esp + 0x8c], 5
cmp dword [esp + 0x30], 0x10
jb 0x42182a
push dword [esp + 0x1c]
call fcn.0044b7dc
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 0x42189a
cmp dword [esp + 0x50], esi
je 0x42189a
push 1
push esi
lea ecx, [esp + 0x44]
call fcn.00403800
test al, al
je 0x421893
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 0x4218c0
cmp ecx, 0x10
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x3c]
cmovae eax, edx
cmp esi, eax
je 0x421921
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 0x421901
sub eax, ecx
push dword [esp + 0x14]
lea ecx, [esp + 0x40]
push 1
push eax
call fcn.00423d30
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xa0]
jmp 0x4218c0
lea eax, [esp + 0xa0]
push eax
call fcn.00423b80
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 0x4219e3
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 0x4219d6
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 0x421966
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
xor esi, esi
test edi, edi
je 0x421a6a
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 0x421a61
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 0x4219f1
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 0x421aa4
mov eax, dword [esp + 0xb0]
inc eax
je 0x421ad1
push eax
lea eax, [esp + 0xa4]
push eax
push ebp
call fcn.0044b7f0
add esp, 0xc
jmp 0x421ad1
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 0x421b26
push dword [esp + 0x54]
call fcn.0044b7dc
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 0x421b58
push dword [esp + 0x3c]
call fcn.0044b7dc
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 0x421b8e
push dword [esp + 0xa0]
call fcn.0044b7dc
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.0044b7e1
add esp, 0x7c
ret 0x24