Function at 0x1000d190
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100cd840
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100f4034]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x14], 0x80004005
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov byte [esp + 0x8c], 2
mov eax, dword [0x100f75cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x100f75cc
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x8c], 3
mov eax, dword [0x100f75cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x100f75cc
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x9c]
cmp ebp, ebx
mov byte [esp + 0x8c], 5
je 0x1000d26f
mov eax, dword [ebp]
test eax, eax
jne 0x1000d32e
mov edi, dword [esp + 0x94]
push edi
call fcn.1000cd20
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x1000d32e
cmp ebp, ebx
je 0x1000d297
mov ecx, dword [ebp]
test ecx, ecx
jne 0x1000d328
mov eax, dword [edi]
push ebx
push 0x100f5888
push 0x100f5868
push ebx
push eax
call 0x1009530a
add esp, 0x14
cmp eax, ebx
je 0x1000d328
cmp ebp, ebx
lea edx, [edi + 0x14]
mov dword [eax + 0xc], edx
je 0x1000d2c3
mov eax, dword [ebp]
test eax, eax
jne 0x1000d328
add edi, 0xc
push edi
push 0x100d58cc
push 0x100d58bc
call 0x10095182
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x1000d32e
push 0x100f7650
push 0xc
call 0x100951c2
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x1000d328
cmp ebp, ebx
lea eax, [esi + 4]
mov dword [esi], 0x100d7b8c
mov dword [eax], ebx
mov dword [esi + 8], ebx
je 0x1000d30c
mov ecx, dword [ebp]
test ecx, ecx
jne 0x1000d328
mov ecx, dword [esp + 0x98]
cmp ecx, ebx
jne 0x1000d3ee
mov dword [esp + 0x14], 0x80004003
call fcn.1000ced0
cmp dword [esp + 0x14], ebx
jge 0x1000d33a
mov esi, dword [esp + 0x94]
call fcn.1000de20
mov byte [esp + 0x8c], 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1000d352
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [esp + 0x8c], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000d37a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x8c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000d3a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ebx, [esp + 0x54]
mov byte [esp + 0x8c], 1
call fcn.10001cc0
lea ebx, [esp + 0x34]
mov byte [esp + 0x8c], 0
call fcn.10001cc0
mov ecx, dword [esp + 0x20]
push ecx
call 0x10095310
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0xc
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
push 0x100d62e0
push ecx
call eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x1000d323
cmp ebp, ebx
je 0x1000d417
mov ecx, dword [ebp]
test ecx, ecx
jne 0x1000d328
mov edx, dword [esi]
mov ecx, dword [edx]
lea eax, [esp + 0x24]
push eax
push 0x100d7b9c
push esi
call ecx
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x1000d323
cmp ebp, ebx
je 0x1000d443
mov edx, dword [ebp]
test edx, edx
jne 0x1000d328
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x94]
mov ecx, dword [eax]
mov eax, dword [edi]
mov dword [esp + 0x30], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0xc
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x1000d32e
cmp ebp, ebx
je 0x1000d48a
mov ecx, dword [ebp]
test ecx, ecx
jne 0x1000d328
lea esi, [esp + 0x18]
call 0x10082b40
mov edi, esi
call 0xffd7b30
mov eax, esi
lea edi, [esp + 0x1c]
call 0xffd7be0
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x38]
call fcn.1000d9f0
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x1000d32e
cmp ebp, ebx
je 0x1000d4d2
mov eax, dword [ebp]
test eax, eax
jne 0x1000d328
lea ecx, [esp + 0x34]
call fcn.10001a30
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.1000def0
cmp al, bl
jne 0x1000d4f7
mov dword [esp + 0x14], 0x8007000e
jmp 0x1000d32e
lea ecx, [esp + 0x34]
xor ebp, ebp
call fcn.10001a30
test eax, eax
jbe 0x1000d58c
lea ebx, [ebx]
lea eax, [esp + 0x1c]
lea edi, [esp + 0x18]
call 0xffd7be0
mov edi, ebp
lea esi, [esp + 0x34]
call fcn.1000dfb0
cmp dword [eax + 0x18], 8
jb 0x1000d533
mov eax, dword [eax + 4]
jmp 0x1000d536
add eax, 4
push eax
lea ebx, [esp + 0x1c]
call 0xffd7a80
mov edx, dword [esp + 0x18]
push edx
mov edi, ebp
lea esi, [esp + 0x38]
call fcn.1000dfb0
mov ecx, eax
call dword [0x100d431c]
call fcn.1000dfb0
cmp dword [eax + 0x18], 8
jb 0x1000d568
mov eax, dword [eax + 4]
jmp 0x1000d56b
add eax, 4
mov ecx, dword [esp + 0x20]
mov dword [ecx + ebp*8], eax
mov dword [ecx + ebp*8 + 4], 0
lea ecx, [esp + 0x34]
add ebp, 1
call fcn.10001a30
cmp ebp, eax
jb 0x1000d510
xor ebx, ebx
mov ebp, dword [esp + 0x9c]
cmp ebp, ebx
je 0x1000d5a2
mov eax, dword [ebp]
test eax, eax
jne 0x1000d328
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], 0x1c
call fcn.10001a30
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], eax
call fcn.1000df70
test al, al
jne 0x1000d6b2
lea ecx, [esp + 0x54]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x98], ebx
call fcn.10001a30
test eax, eax
jbe 0x1000d6a3
mov ebp, 0x10
lea eax, [esp + 0x1c]
lea edi, [esp + 0x18]
call 0xffd7be0
mov edi, dword [esp + 0x98]
lea esi, [esp + 0x54]
call fcn.1000dfb0
cmp dword [eax + 0x18], 8
jb 0x1000d625
mov eax, dword [eax + 4]
jmp 0x1000d628
add eax, 4
push eax
lea ebx, [esp + 0x1c]
call 0xffd7a80
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x4c], edx
add eax, 0xc
mov eax, dword [eax]
mov esi, 1
lea edx, [esp + 0x44]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x1000d679
mov ecx, dword [eax]
test ecx, ecx
jne 0x1000d779
mov edi, dword [esp + 0x98]
add edi, esi
lea ecx, [esp + 0x54]
mov dword [esp + 0x98], edi
call fcn.10001a30
cmp edi, eax
jb 0x1000d5fd
mov ebp, dword [esp + 0x9c]
xor ebx, ebx
cmp ebp, ebx
je 0x1000d6b2
mov edx, dword [ebp]
test edx, edx
jne 0x1000d328
mov edi, dword [esp + 0x94]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x64]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x1000d32e
cmp ebp, ebx
je 0x1000d6e4
mov ecx, dword [ebp]
test ecx, ecx
jne 0x1000d328
mov eax, dword [edi + 0xc]
mov edx, dword [eax]
lea esi, [edi + 0x10]
push esi
push 0x100d58fc
push eax
mov eax, dword [edx + 0x14]
call eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x1000d32e
cmp ebp, ebx
je 0x1000d713
mov ecx, dword [ebp]
test ecx, ecx
jne 0x1000d328
mov esi, dword [esi]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push ebx
push esi
call eax
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x1000d32e
cmp ebp, ebx
je 0x1000d739
mov ecx, dword [ebp]
test ecx, ecx
jne 0x1000d328
lea esi, [edi + 4]
push esi
call fcn.1000cd20
cmp eax, ebx
mov dword [esp + 0x14], eax
jl 0x1000d32e
mov esi, dword [esi]
push ebx
push 0x100f5888
push 0x100f5868
push ebx
push esi
call 0x1009530a
add esp, 0x14
cmp eax, ebx
mov dword [edi + 8], eax
je 0x1000d328
mov dword [esp + 0x14], ebx
jmp 0x1000d33a
mov ebp, eax
jmp 0x1000d6a1