Function at 0x438750
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x4886d8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4bc7b8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7b8]
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 0x43889f
cmp ebx, edi
je 0x43889f
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 0x4387da
add eax, 4
mov eax, dword [eax]
jmp 0x4387dd
add eax, 4
push eax
xor eax, eax
call fcn.00439c30
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jl 0x438896
jmp 0x4387fd
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
test ebp, ebp
mov ecx, dword [esp + 0x20]
je 0x438822
mov eax, ecx
sub eax, ebp
sub edi, ebp
sar eax, 2
sar edi, 2
cmp eax, edi
jae 0x438822
mov eax, ecx
add eax, 4
mov dword [ecx], esi
mov dword [esp + 0x20], eax
jmp 0x438846
cmp ebp, ecx
mov edi, ecx
jbe 0x43882d
call fcn.004677c8
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.00401510
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x18], 8
mov ebx, dword [eax + 0x14]
mov edi, esi
jb 0x43885d
mov ecx, dword [eax + 4]
add eax, 4
jmp 0x438860
lea ecx, [eax + 4]
mov edx, dword [esp + 0x30]
lea eax, [esi + edx]
mov edx, dword [esp + 0x2c]
push ecx
call fcn.00439c30
mov esi, eax
cmp esi, edi
mov dword [esp + 0x14], esi
jge 0x4387f5
mov edx, dword [esp + 0x1c]
xor edi, edi
cmp edx, edi
je 0x438896
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, edx
sar eax, 2
jne 0x4388c3
lea esi, [esp + 0x18]
call fcn.004257c0
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.004677d8
add esp, 0x7c
ret
xor ebx, ebx
cmp edx, edi
mov dword [esp + 0x14], ebx
jne 0x4388d1
xor eax, eax
jmp 0x4388d8
mov eax, ecx
sub eax, edx
sar eax, 2
cmp ebx, eax
jg 0x438aad
push edi
push 0x498194
lea esi, [esp + 0x68]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], di
call fcn.0040b760
cmp ebx, edi
mov byte [esp + 0x8c], 1
jne 0x438977
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x438922
mov ecx, dword [esp + 0x20]
sub ecx, eax
sar ecx, 2
jne 0x43892b
call fcn.004677c8
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.004390e0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x94], 2
call fcn.0040b800
mov byte [esp + 0x8c], 1
cmp dword [esp + 0x54], 8
jb 0x438a6d
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0044ac38
add esp, 4
jmp 0x438a6d
xor ecx, ecx
cmp ebx, edi
jle 0x4389a5
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
lea esi, [ebx - 1]
je 0x438995
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x43899a
call fcn.004677c8
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + esi*4]
add ecx, dword [esp + 0x30]
cmp ecx, dword [esp + 0x34]
jae 0x438a6d
mov edx, dword [esp + 0x1c]
cmp edx, edi
jne 0x4389bb
xor eax, eax
jmp 0x4389c4
mov eax, dword [esp + 0x20]
sub eax, edx
sar eax, 2
cmp ebx, eax
jne 0x4389fb
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
push eax
lea esi, [esp + 0x44]
call fcn.004390e0
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x68]
mov byte [esp + 0x94], 3
call fcn.0040b800
mov byte [esp + 0x8c], 1
call fcn.0040b470
jmp 0x438a6d
cmp ebx, edi
jle 0x438a6d
add ebx, 0xffffffff
mov edi, ebx
lea esi, [esp + 0x18]
call fcn.00439870
mov edi, dword [esp + 0x14]
mov ebp, eax
call fcn.00439870
mov edi, ebx
mov dword [esp + 0x28], eax
call fcn.00439870
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.004390e0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x68]
mov byte [esp + 0x94], 4
call fcn.0040b800
mov byte [esp + 0x8c], 1
call fcn.0040b470
mov ebx, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x74], edi
jbe 0x438a81
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x60]
push eax
call fcn.00439180
mov byte [esp + 0x8c], 0
cmp dword [esp + 0x78], 8
jb 0x438a9d
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0044ac38
add esp, 4
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add ebx, 1
jmp 0x4388c5
cmp edx, edi
jne 0x438aba
xor esi, esi
mov eax, esi
jmp 0x4388a1
sub ecx, edx
sar ecx, 2
push edx
mov esi, ecx
call fcn.0044ac38
add esp, 4
mov eax, esi
jmp 0x4388a1