Function at 0x10012a40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101697e0
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x101b01e4]
xor eax, esp
mov dword [esp + 0x17c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b01e4]
xor eax, esp
push eax
lea eax, [esp + 0x194]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1a4]
mov edx, dword [esp + 0x1ac]
mov ebp, dword [esp + 0x1b8]
mov esi, ecx
mov ecx, dword [esp + 0x1a8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1b0]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x1c4]
mov dword [esp + 0x58], edx
mov edx, dword [eax]
mov dword [esi + 0x34], edx
lea edi, [esi + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov edx, dword [eax + 8]
mov dword [edi + 8], edx
mov ecx, dword [eax + 0xc]
mov dword [edi + 0xc], ecx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x1c0]
lea ebx, [esi + 0x54]
push ebx
mov dword [edi + 0x10], edx
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push ebx
mov byte [esi + 0x6c], 1
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor ebx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x19c], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x1bc]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c]
push edx
push eax
push ebp
push ecx
mov ecx, dword [esi + 0x28]
mov byte [esp + 0x1b0], 1
call fcn.1012fb80
test al, al
mov eax, dword [esp + 0x2c]
sete byte [esp + 0x17]
cmp eax, ebx
je 0x10012b7b
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
push edx
push eax
call fcn.1000ece0
mov eax, dword [esp + 0x3c]
push eax
call fcn.10149646
add esp, 0x14
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x19c], 0xffffffff
je 0x10012ba3
push eax
call fcn.10149646
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x10012d7d
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov ecx, ebp
mov dword [esp + 0x19c], 2
mov dword [esp + 0x1c], ebx
call fcn.100010a0
test eax, eax
jbe 0x10012c2b
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x10012bfa
mov ecx, dword [ebp + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x10012bff
call fcn.10149775
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x20]
push eax
lea ecx, [esp + 0x60]
call fcn.10010d00
add dword [esp + 0x1c], 1
add dword [esp + 0x18], 0x30
mov ecx, ebp
call fcn.100010a0
cmp dword [esp + 0x1c], eax
jb 0x10012bd7
mov ecx, dword [esp + 0x1bc]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x60]
push edx
push edi
lea eax, [esp + 0x44]
push eax
call fcn.100d10f0
mov ecx, dword [esi + 0x28]
push eax
mov byte [esp + 0x1a0], 3
call fcn.1012da4d
lea ecx, [esp + 0x38]
mov byte [esp + 0x19c], 2
call fcn.10130958
cmp dword [esi + 4], ebx
jne 0x10012db4
cmp dword [esp + 0x1bc], 0x400000
ja 0x10012db4
lea ecx, [esp + 0x6c]
call fcn.10010830
mov ecx, dword [esi + 0x48]
lea edx, [esp + 0x38]
mov dword [esp + 0x6c], ecx
push edx
mov ecx, edi
mov byte [esp + 0x1a0], 4
call fcn.1000b730
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a8], 5
call fcn.10001ec0
cmp dword [esp + 0x50], 0x10
mov byte [esp + 0x19c], 4
jb 0x10012cd8
mov eax, dword [esp + 0x3c]
push eax
call fcn.10149646
add esp, 4
mov eax, dword [ebp + 4]
cmp eax, ebx
jne 0x10012ce3
xor eax, eax
jmp 0x10012cf9
mov ebp, dword [ebp + 8]
sub ebp, eax
mov eax, 0x2aaaaaab
imul ebp
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
push 0x1c50
mov dword [esi + 0x70], eax
call fcn.1014979e
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x19c], 6
je 0x10012d46
mov ecx, dword [esp + 0x58]
push 1
push ebx
push ebx
push ecx
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x7c]
push edx
push edi
push ecx
mov ecx, dword [esi + 0x28]
lea edx, [esi + 0x18]
push edx
mov edx, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x24]
push edx
push ecx
mov ecx, eax
call fcn.1006d950
jmp 0x10012d48
xor eax, eax
mov edx, dword [esp + 0x24]
push edx
mov ecx, eax
mov byte [esp + 0x1a0], 4
mov dword [esi + 4], eax
call fcn.10065200
test al, al
jne 0x10012d81
lea ecx, [esp + 0x6c]
call fcn.1000d9c0
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x10012d7d
push eax
call fcn.10149646
add esp, 4
xor al, al
jmp 0x10012dc7
mov ecx, dword [esi + 0x28]
push 1
lea eax, [esp + 0x3c]
push eax
push edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
call fcn.1012d5cc
mov ecx, dword [esi + 4]
push edx
push eax
call fcn.10066420
lea ecx, [esp + 0x6c]
call fcn.1000d9c0
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x10012dc5
push eax
call fcn.10149646
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x194]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.10149c5e
add esp, 0x18c
ret 0x24