Function at 0x4d8a60
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x5928ba
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e173c]
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.00403ff0
mov byte [esp + 0x8c], 2
mov edx, esi
push 0
lea ecx, [esp + 0x20]
call fcn.004b1890
add esp, 4
mov byte [esp + 0x8c], 3
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push 0
push eax
call fcn.00403e60
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x30], 0x10
jb 0x4d8b48
push dword [esp + 0x1c]
call fcn.00564de3
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.004b1890
add esp, 4
mov byte [esp + 0x8c], 4
lea ecx, [esp + 0x3c]
push 0xffffffffffffffff
push 0
push eax
call fcn.00403e60
mov byte [esp + 0x8c], 2
cmp dword [esp + 0x30], 0x10
jb 0x4d8b9e
push dword [esp + 0x1c]
call fcn.00564de3
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.00506030
mov byte [esp + 0x94], 5
lea ecx, [esp + 0x5c]
call fcn.004aff10
push 0
lea edx, [esp + 0x60]
lea ecx, [esp + 0x28]
call fcn.004b1890
add esp, 0xc
mov byte [esp + 0x8c], 6
lea ecx, [esp + 0xa0]
push 0xffffffffffffffff
push 0
push eax
call fcn.00403e60
mov byte [esp + 0x8c], 5
cmp dword [esp + 0x30], 0x10
jb 0x4d8c2a
push dword [esp + 0x1c]
call fcn.00564de3
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 0x4d8c9a
cmp dword [esp + 0x50], esi
je 0x4d8c9a
push 1
push esi
lea ecx, [esp + 0x44]
call fcn.00404700
test al, al
je 0x4d8c93
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 0x4d8cc0
cmp ecx, 0x10
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x3c]
cmovae eax, edx
cmp esi, eax
je 0x4d8d21
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 0x4d8d01
sub eax, ecx
push dword [esp + 0x14]
lea ecx, [esp + 0x40]
push 1
push eax
call fcn.00417460
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xa0]
jmp 0x4d8cc0
lea eax, [esp + 0xa0]
push eax
call fcn.004dae70
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 0x4d8de3
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 0x4d8dd6
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 0x4d8d66
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x18]
xor esi, esi
test edi, edi
je 0x4d8e6a
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 0x4d8e61
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 0x4d8df1
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 0x4d8ea4
mov eax, dword [esp + 0xb0]
inc eax
je 0x4d8ed1
push eax
lea eax, [esp + 0xa4]
push eax
push ebp
call fcn.00565090
add esp, 0xc
jmp 0x4d8ed1
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 0x4d8f26
push dword [esp + 0x54]
call fcn.00564de3
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 0x4d8f58
push dword [esp + 0x3c]
call fcn.00564de3
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 0x4d8f8e
push dword [esp + 0xa0]
call fcn.00564de3
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.00564de8
add esp, 0x7c
ret 0x24