Function at 0x1000d210
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x100a0fb0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d1040]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x20], ebx
lea esi, [esp + 0x20]
mov dword [esp + 0x8c], ebx
call fcn.1000d630
cmp eax, ebx
je 0x1000d291
mov eax, dword [esp + 0x24]
cmp eax, ebx
jmp 0x1000d57b
lea eax, [esp + 0x40]
push eax
call fcn.1000de90
mov byte [esp + 0x8c], 1
cmp dword [ebp + 0x20], 8
jb 0x1000d2ae
mov eax, dword [ebp + 0xc]
jmp 0x1000d2b1
lea eax, [ebp + 0xc]
push eax
lea eax, [esp + 0x44]
lea ecx, [esp + 0x24]
call fcn.1000d750
test eax, eax
jne 0x1000d301
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x1000d2d4
push eax
call fcn.10057e66
add esp, 4
mov ecx, dword [esp + 0x50]
push ecx
call fcn.1005758d
mov edx, dword [esp + 0x50]
add esp, 4
push edx
mov dword [esp + 0x54], ebx
call fcn.1005758d
mov eax, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x4c], ebx
cmp eax, ebx
jmp 0x1000d57b
mov esi, dword [esp + 0x40]
cmp esi, ebx
ja 0x1000d313
mov eax, 0x80004005
call fcn.1000f890
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
cmp ecx, ebx
je 0x1000d388
cmp edx, ebx
je 0x1000d388
mov eax, 0x50
push 0x100d61b4
push 0x80
mov word [ebp + 0x98], ax
call fcn.10057d0e
add esp, 8
cmp eax, ebx
je 0x1000d357
mov esi, eax
call fcn.1000a520
jmp 0x1000d359
xor eax, eax
mov dword [ebp], eax
cmp eax, ebx
jne 0x1000d456
lea esi, [esp + 0x40]
call fcn.1000d5c0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1000d37e
push eax
call fcn.10057e66
add esp, 4
mov eax, 0x8007000e
jmp 0x1000d58b
mov ecx, 0x15
mov word [ebp + 0x98], cx
cmp esi, 2
ja 0x1000d3a3
mov eax, 0x80004005
call fcn.1000f890
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
cmp esi, ebx
je 0x1000d40e
cmp edi, ebx
je 0x1000d40e
lea ebx, [ebp + 0x5c]
mov eax, ebx
call fcn.1000af00
sub edi, esi
sar edi, 1
push edi
push esi
mov esi, ebx
call fcn.1000ae00
lea edx, [esp + 0x40]
push edx
lea esi, [esp + 0x1c]
lea edx, [esp + 0x20]
mov eax, 3
call fcn.1000de40
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1000d40c
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1000d40c
lea esi, [ebp + 0x78]
mov eax, esi
call fcn.1000af00
sub edi, ebx
sar edi, 1
push edi
push ebx
call fcn.1000ae00
xor ebx, ebx
push 0x50
call fcn.10057386
add esp, 4
cmp eax, ebx
je 0x1000d425
mov esi, eax
call fcn.10008880
jmp 0x1000d427
xor eax, eax
mov dword [ebp + 4], eax
cmp eax, ebx
jne 0x1000d456
lea esi, [esp + 0x40]
call fcn.1000d5c0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1000d37e
push eax
call fcn.10057e66
add esp, 4
mov eax, 0x8007000e
jmp 0x1000d58b
lea eax, [esp + 0x40]
push eax
lea esi, [esp + 0x1c]
lea edx, [esp + 0x20]
mov eax, 4
call fcn.1000de40
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1000d56c
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1000d56c
lea esi, [ebp + 0x24]
mov eax, esi
call fcn.1000af00
sub edi, ebx
sar edi, 1
push edi
push ebx
call fcn.1000ae00
lea ecx, [esp + 0x40]
push ecx
lea esi, [esp + 0x1c]
lea edx, [esp + 0x20]
mov eax, 5
call fcn.1000de40
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x1000d512
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x1000d512
sub ecx, edx
sar ecx, 1
cmp ecx, 0xa
jg 0x1000d56c
inc ecx
xor eax, eax
push ecx
push edx
lea ecx, [esp + 0x70]
push ecx
mov word [esp + 0x74], ax
mov dword [esp + 0x76], eax
mov dword [esp + 0x7a], eax
mov dword [esp + 0x7e], eax
mov dword [esp + 0x82], eax
mov word [esp + 0x86], ax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [esp + 0x68]
push edx
call fcn.10057ced
add esp, 4
mov word [ebp + 0x98], ax
lea eax, [esp + 0x40]
push eax
lea esi, [esp + 0x1c]
lea edx, [esp + 0x20]
mov eax, 6
call fcn.1000de40
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x1000d56c
mov edi, dword [esp + 0x18]
test edi, edi
je 0x1000d56c
lea esi, [ebp + 0x40]
mov eax, esi
call fcn.1000af00
sub edi, ebx
sar edi, 1
push edi
push ebx
call fcn.1000ae00
lea esi, [esp + 0x40]
call fcn.1000d5c0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000d568
push eax
call fcn.10057e66
add esp, 4
xor eax, eax
jmp 0x1000d58b
lea esi, [esp + 0x40]
call fcn.1000d5c0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1000d586
push eax
call fcn.10057e66
add esp, 4
mov eax, 0x80004005
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.1005710f
add esp, 0x7c
ret 4