Function at 0x100caee0
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b0500
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101bf2c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
push 0
mov dword [ebp - 4], 0
call fcn.100e8b70
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0
mov byte [ebp - 4], 1
call fcn.100e8c20
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebx + 4]
sub ecx, dword [eax + 4]
mov edx, dword [edi + 0xc]
imul ecx, edx
sub ecx, dword [eax]
add ecx, dword [ebx]
imul ecx, dword [edi + 0x30]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
add ecx, dword [edi + 0x10]
mov dword [ebp - 0x1c], ecx
mov cl, byte [eax + 0x147c]
mov byte [ebp - 0xd], cl
lea ecx, [eax + 0x180]
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x20], ecx
lea ecx, [eax + 0x2f0]
je 0x100caf94
mov dword [ebp - 0x2c], ecx
jmp 0x100caf9a
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x20], 0
mov eax, dword [ebp - 0x14]
jne 0x100cafed
cmp byte [ebp - 0xd], 0
je 0x100cafb1
mov dword [ebp - 0x2c], ecx
jmp 0x100cafba
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x28], 0
mov eax, dword [ebp - 0x14]
jne 0x100cafed
cmp byte [ebp - 0xd], 0
je 0x100cafd1
mov dword [ebp - 0x2c], ecx
jmp 0x100cafda
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + 0xc]
mov esi, dword [ebp - 0x2c]
cmp dword [esi + 0x30], 0
mov esi, dword [ebp - 0x24]
jne 0x100cafed
xor ecx, ecx
jmp 0x100cb0b3
cmp byte [ebp - 0xd], 0
je 0x100caffb
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x2c], ecx
jmp 0x100cb004
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x2c]
cmp dword [esi + 0x20], 1
mov esi, dword [ebp - 0x24]
jne 0x100cb057
cmp byte [ebp - 0xd], 0
je 0x100cb01b
mov dword [ebp - 0x2c], ecx
jmp 0x100cb024
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + 0xc]
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x28], 1
mov ebx, dword [ebp + 0x14]
jne 0x100cb057
cmp byte [ebp - 0xd], 0
je 0x100cb03b
mov dword [ebp - 0x2c], ecx
jmp 0x100cb044
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x30], 1
mov eax, dword [ebp - 0x14]
jne 0x100cb057
mov ecx, 1
jmp 0x100cb0b3
cmp byte [ebp - 0xd], 0
je 0x100cb065
mov edx, dword [edi + 0xc]
mov dword [ebp - 0x2c], ecx
jmp 0x100cb06e
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x2c]
cmp dword [esi + 0x20], 1
mov esi, dword [ebp - 0x24]
jbe 0x100cb0ae
cmp byte [ebp - 0xd], 0
je 0x100cb085
mov dword [ebp - 0x2c], ecx
jmp 0x100cb08b
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x2c]
cmp dword [edi + 0x28], 1
mov edi, dword [ebp - 0x28]
jbe 0x100cb0ae
cmp byte [ebp - 0xd], 0
jne 0x100cb0a3
lea ecx, [eax + 0x180]
cmp dword [ecx + 0x30], 1
mov ecx, 2
ja 0x100cb0b3
mov ecx, 3
cmp dword [eax + 0x48], 0
jne 0x100cb0c9
cmp dword [eax + 0x50], 0
jne 0x100cb0f5
cmp dword [eax + 0x58], 0
jne 0x100cb0f5
xor eax, eax
jmp 0x100cb0fa
cmp dword [eax + 0x48], 1
jne 0x100cb0e2
cmp dword [eax + 0x50], 1
jne 0x100cb0f5
cmp dword [eax + 0x58], 1
jne 0x100cb0f5
mov eax, 1
jmp 0x100cb0fa
jbe 0x100cb0f5
cmp dword [eax + 0x50], 1
jbe 0x100cb0f5
cmp dword [eax + 0x58], 1
mov eax, 2
ja 0x100cb0fa
mov eax, 3
jmp dword [ecx*4 + 0x100cb3c0]