Function at 0x10001b90
Capabilities:
Access peb ldr_data
Check os version
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1011189e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x54a0
call fcn.100b4600
mov eax, dword [0x102ac760]
xor eax, esp
mov dword [esp + 0x549c], eax
push ebx
push esi
mov eax, dword [0x102ac760]
xor eax, esp
push eax
lea eax, [esp + 0x54b0]
mov dword fs:[0], eax
lea eax, [esp + 0x3c]
push eax
call fcn.10001e70
xor ebx, ebx
lea esi, [esp + 0x20]
mov dword [esp + 0x54b8], ebx
call fcn.10001300
mov byte [esp + 0x54b8], 1
mov edx, dword [0x102b0b9c]
mov eax, dword [edx + 0xc]
mov ecx, 0x102b0b9c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, esi
push ecx
lea eax, [esp + 0x1c]
mov byte [esp + 0x54bc], 2
call fcn.10001360
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x70], edx
call fcn.10003630
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x30]
mov dword [esp + 0x74], ecx
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x7c], edx
call fcn.10003630
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x84]
call fcn.10003630
mov edx, dword [esp + 0x38]
mov eax, dword [edi + 8]
mov dword [esp + 0x84], edx
inc dword [eax + 0x50]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x20]
call fcn.10002e70
lea eax, [esp + 0x8c]
mov byte [esp + 0x54b8], 3
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.10005e00
add esp, 8
lea ecx, [esp + 0x3c]
call fcn.10005bd0
mov dword [edi + 0x1c], ebx
cmp dword [edi + 0x70], 8
mov esi, eax
jb 0x10001cbe
mov edx, dword [edi + 0x5c]
jmp 0x10001cc1
lea edx, [edi + 0x5c]
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001cc6
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x5520]
call fcn.10004210
mov edx, dword [esi]
mov edx, dword [edx]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0xa4]
push eax
mov ecx, esi
call edx
test eax, eax
je 0x10001db5
mov eax, dword [edi + 0x18]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x18]
mov ecx, esi
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
mov dword [esp + 0x24], eax
call ebx
cmp eax, 0xffffffff
je 0x10001d96
test eax, eax
je 0x10001d7d
cmp eax, 0x102
je 0x10001d55
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
cmp eax, 3
je 0x10001d8f
cmp eax, 4
je 0x10001d8f
cmp eax, 1
je 0x10001d86
mov ecx, dword [edi + 0x18]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
mov dword [esp + 0x10], ecx
mov ecx, esi
call eax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x18]
push ecx
push 2
mov dword [esp + 0x24], eax
call ebx
cmp eax, 0xffffffff
jne 0x10001d32
jmp 0x10001d96
mov dword [edi + 0x1c], 0xa
jmp 0x10001d9d
mov dword [edi + 0x1c], 5
jmp 0x10001d9d
mov dword [edi + 0x30], 0xfffffffe
mov dword [edi + 0x1c], 0xb
cmp dword [edi + 0x1c], 5
jne 0x10001dbc
lea edx, [esp + 0x3c]
push edx
push edi
mov ecx, esi
call fcn.10001f30
mov dword [edi + 0x1c], eax
jmp 0x10001dbc
mov dword [edi + 0x1c], 0xb
lea eax, [esp + 0x3c]
call fcn.10005ae0
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x1c]
test ecx, ecx
je 0x10001dd9
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx]
push edi
call eax
mov byte [esp + 0x54b8], 2
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 0x10001e01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54b8], 1
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 0x10001e29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x20]
call fcn.10001ed0
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x54bc], 0xffffffff
call fcn.10005a40
xor eax, eax
mov ecx, dword [esp + 0x54b0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x549c]
xor ecx, esp
call fcn.100b2738
mov esp, ebp
pop ebp
ret