Function at 0x10021720
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6d02
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x101170e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x4c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x4c]
add ecx, 4
call fcn.1000b330
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
add ecx, 0x1c
call fcn.10020af0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
add ecx, 0x24
call fcn.10020af0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
add ecx, 0x30
call fcn.10020650
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4c]
add ecx, 0x58
call fcn.10020af0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4c]
add ecx, 0x60
call fcn.100206b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 0x68], 0
mov ecx, dword [ebp - 0x4c]
add ecx, 0x70
call fcn.100837c0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4c]
add ecx, 0x128
call fcn.10020750
mov byte [ebp - 4], 7
lea edx, [ebp - 0xd4]
push edx
call fcn.100290b0
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 4
call fcn.1000d550
lea ecx, [ebp - 0xd4]
call fcn.10002420
mov ecx, dword [ebp - 0x4c]
call fcn.100349b0
movzx ecx, al
test ecx, ecx
jne 0x1002182b
push str._XZMCore__Install_crash_report_failed_n
call fcn.1000b410
add esp, 4
lea edx, [ebp - 0xec]
push edx
call fcn.100274e0
add esp, 4
lea ecx, [ebp - 0xec]
call fcn.10002420
lea eax, [ebp - 0x30]
push eax
call fcn.10027b00
add esp, 4
mov byte [ebp - 4], 8
push 8
lea ecx, [ebp - 0x18]
call fcn.1002f1d0
lea ecx, [ebp - 0x18]
call fcn.10021fa0
push 2
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0xbc]
call fcn.1000d020
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x50]
or edx, 1
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xbc]
push ecx
call fcn.10032ba0
add esp, 8
movzx edx, al
test edx, edx
jne 0x100218dc
push 2
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xa0]
call fcn.1000d020
mov ecx, dword [ebp - 0x50]
or ecx, 2
mov dword [ebp - 0x50], ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xa0]
push eax
call fcn.10030330
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x100218dc
mov dword [ebp - 0x58], 1
jmp 0x100218e3
mov dword [ebp - 0x58], 0
mov dl, byte [ebp - 0x58]
mov byte [ebp - 0x51], dl
mov eax, dword [ebp - 0x50]
and eax, 2
je 0x10021900
and dword [ebp - 0x50], 0xfffffffd
lea ecx, [ebp - 0xa0]
call fcn.10002420
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x50]
and ecx, 1
je 0x1002191e
and dword [ebp - 0x50], 0xfffffffe
lea ecx, [ebp - 0xbc]
call fcn.10002420
movzx edx, byte [ebp - 0x51]
test edx, edx
je 0x1002193c
lea ecx, [ebp - 0x30]
call fcn.1000b540
push eax
push str._XZMCore__Create_data_directory__s__failed
call fcn.1000b410
add esp, 8
call fcn.100aed00
push edx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.100378a0
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x48]
push ecx
push str.Web.log
lea edx, [ebp - 0x11c]
push edx
call fcn.10027ef0
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x64]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.10016a00
add esp, 0xc
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.10074320
add esp, 0xc
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x1c
call fcn.100244c0
lea ecx, [ebp - 0x7c]
call fcn.100235a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x104]
call fcn.10002420
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x11c]
call fcn.10002420
lea ecx, [ebp - 0x84]
push ecx
call fcn.1001ea20
add esp, 4
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
push edx
mov ecx, dword [ebp - 0x4c]
add ecx, 0x24
call fcn.100244c0
lea ecx, [ebp - 0x84]
call fcn.100235a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x48]
call fcn.100023d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x30]
call fcn.10002420
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008511a
mov esp, ebp
pop ebp
ret