Function at 0x5e20e5
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1019ca79
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x101a2a60]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x101a2a60]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x34]
mov edi, dword [ebp + 0x38]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x50], edx
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], eax
call dword [0x10001354]
cmp eax, dword [ebx + 0x84]
jne 0x687997
test esi, esi
je 0x5e2181
push esi
call dword [0x10001198]
test edi, edi
je 0x5e2191
mov ecx, 8
mov esi, 0x1002aee0
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x160]
mov edi, dword [eax + 0x460]
mov esi, dword [edi + 4]
mov dword [esp + 0x48], edi
call fcn.005b71bc
lea esi, [edi + 8]
call fcn.005b71bc
push 1
push 0
add edi, 0x1544
push edi
call dword [0x100012d4]
mov eax, dword [ebp + 0x1c]
and eax, 0x1e3
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x88], 0
je 0x6879a1
or eax, 0x80000000
cmp dword [esp + 0x3c], 0
mov dword [ebp + 0x1c], eax
je 0x6879cd
mov edi, dword [esp + 0x14]
test edi, edi
je 0x5e221f
cmp word [edi], 0
je 0x5e221f
lea eax, [ebx + 0xa4]
call fcn.005bc07c
mov dword [esp + 0x38], eax
test eax, eax
je 0x62aa61
mov edx, dword [eax + 0x20]
mov dword [esp + 0x40], edx
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x88], 1
mov eax, dword [ebx + 0x68]
push eax
or eax, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.005e0cc0
push 0x10033400
or eax, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.005e0cc0
cmp edi, esi
je 0x5e2276
push edi
or eax, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.005e0cc0
push 0x20
lea eax, [esp + 0x20]
call fcn.005e2653
push 0x10033634
or eax, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.005e0cc0
cmp dword [esp + 0x28], esi
jne 0x6879fa
lea esi, [esp + 0x1c]
call fcn.005e0c75
xor esi, esi
mov dword [esp + 0x18], eax
cmp eax, esi
je 0x6879fa
mov edi, dword [esp + 0x38]
cmp edi, esi
je 0x5e22ba
test byte [edi + 0x24], 2
je 0x60131f
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], esi
cmp eax, esi
je 0x5e22fd
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x100330d0
push eax
mov eax, dword [ecx]
mov dword [esp + 0x20], esi
call eax
test eax, eax
js 0x5e22fd
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x34]
push edx
push esi
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x34]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x60], edx
mov edx, dword [ebp + 0x28]
push edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x74], ecx
mov ecx, dword [ebp + 0x24]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [ebp + 0x1c]
push ecx
push edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x20]
push eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x5c]
push eax
push ebx
lea ecx, [esp + 0x80]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x9c], esi
call fcn.005e269d
mov edi, eax
mov eax, dword [ebx + 0x160]
cmp eax, esi
je 0x5e238f
mov ecx, dword [eax + 0x1f8]
cmp dword [ecx + 0xbdc], esi
jne 0x60d5d4
lea esi, [esp + 0x1c]
mov byte [esp + 0x88], 0
call fcn.005e0c4a
mov eax, dword [ebp + 0x1c]
test eax, eax
jns 0x5e23bd
test edi, edi
js 0x5e23bd
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
push ebx
call fcn.005d31fa
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5e23cf
push eax
call dword [0x10001124]
add esp, 4
lea eax, [esp + 0x48]
call fcn.005e0ec1
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005b4fc4
mov esp, ebp
pop ebp
ret 0x34
push ebx
call fcn.006012e5
mov edi, eax
test edi, edi
js 0x6879de
xor esi, esi
jmp 0x5e22ba
mov ecx, dword [eax + 0x66c]
cmp byte [ecx + 0x18], 0
je 0x5e238f
jmp 0x6879ec
mov ecx, dword [ebx + 0x160]
mov eax, dword [ecx + 0x580]
cmp dword [eax + 0x1bc], 0
jne 0x5e221f
jmp 0x6879d4