Function at 0x4291a0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x47f348
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4a97e0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a97e0]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov eax, dword [esp + 0x94]
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + 0x14]
xor edi, edi
cmp ecx, edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
je 0x4292ef
cmp ebx, edi
je 0x4292ef
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x8c], edi
cmp dword [eax + 0x18], 8
jb 0x42922a
add eax, 4
mov eax, dword [eax]
jmp 0x42922d
add eax, 4
push eax
xor eax, eax
call fcn.0042a6b0
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jl 0x4292e6
jmp 0x42924d
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
mov ecx, dword [esp + 0x20]
je 0x429272
mov eax, ecx
sub eax, ebp
sub edi, ebp
sar eax, 2
sar edi, 2
cmp eax, edi
jae 0x429272
mov eax, ecx
add eax, 4
mov dword [ecx], esi
mov dword [esp + 0x20], eax
jmp 0x429296
cmp ebp, ecx
mov edi, ecx
jbe 0x42927d
call fcn.0045eccb
push edi
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x28]
call fcn.0042a9b0
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x18], 8
mov ebx, dword [eax + 0x14]
mov edi, esi
jb 0x4292ad
mov ecx, dword [eax + 4]
add eax, 4
jmp 0x4292b0
lea ecx, [eax + 4]
mov edx, dword [esp + 0x30]
lea eax, [esi + edx]
mov edx, dword [esp + 0x2c]
push ecx
call fcn.0042a6b0
mov esi, eax
cmp esi, edi
mov dword [esp + 0x14], esi
jge 0x429245
mov edx, dword [esp + 0x1c]
xor edi, edi
cmp edx, edi
je 0x4292e6
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, edx
sar eax, 2
jne 0x429313
lea esi, [esp + 0x18]
call fcn.0041da90
xor eax, eax
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.0045e88c
add esp, 0x7c
ret
xor ebx, ebx
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x429321
xor eax, eax
jmp 0x429328
mov eax, ecx
sub eax, edx
sar eax, 2
cmp ebx, eax
jg 0x4294fd
push edi
push 0x4904a8
lea esi, [esp + 0x68]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], di
call fcn.00401b80
cmp ebx, edi
mov byte [esp + 0x8c], 1
jne 0x4293c7
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x429372
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 2
jne 0x42937b
call fcn.0045eccb
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov eax, dword [esp + 0x2c]
push edx
push eax
xor ecx, ecx
lea esi, [esp + 0x44]
call fcn.00429b30
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x94], 2
call fcn.00401d60
mov byte [esp + 0x8c], 1
cmp dword [esp + 0x54], 8
jb 0x4294bd
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0044204a
add esp, 4
jmp 0x4294bd
xor ecx, ecx
cmp ebx, edi
jle 0x4293f5
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
lea esi, [ebx - 1]
je 0x4293e5
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x4293ea
call fcn.0045eccb
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + esi*4]
add ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x34]
jae 0x4294bd
mov edx, dword [esp + 0x1c]
cmp edx, edi
jne 0x42940b
xor eax, eax
jmp 0x429414
mov eax, dword [esp + 0x20]
sub eax, edx
sar eax, 2
cmp ebx, eax
jne 0x42944b
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
push eax
lea esi, [esp + 0x44]
call fcn.00429b30
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x94], 3
call fcn.00401d60
mov byte [esp + 0x8c], 1
call fcn.0040e3b0
jmp 0x4294bd
cmp ebx, edi
jle 0x4294bd
add ebx, 0xffffffff
mov edi, ebx
lea esi, [esp + 0x18]
call fcn.0042a2c0
mov edi, dword [esp + 0x14]
mov ebp, eax
call fcn.0042a2c0
mov edi, ebx
mov dword [esp + 0x28], eax
call fcn.0042a2c0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
sub ecx, dword [ebp]
mov edx, dword [esp + 0x30]
sub ecx, edx
push ecx
mov ecx, dword [eax]
add ecx, edx
mov edx, dword [esp + 0x30]
push edx
lea esi, [esp + 0x44]
call fcn.00429b30
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x94], 4
call fcn.00401d60
mov byte [esp + 0x8c], 1
call fcn.0040e3b0
mov ebx, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x74], edi
jbe 0x4294d1
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x60]
push eax
call fcn.00429bd0
mov byte [esp + 0x8c], 0
cmp dword [esp + 0x78], 8
jb 0x4294ed
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0044204a
add esp, 4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add ebx, 1
jmp 0x429315
cmp edx, edi
jne 0x42950a
xor esi, esi
mov eax, esi
jmp 0x4292f1
sub ecx, edx
sar ecx, 2
push edx
mov esi, ecx
call fcn.0044204a
add esp, 4
mov eax, esi
jmp 0x4292f1