Function at 0x100d3640
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2405
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x101d32d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
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.100f2b00
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.100f2bb0
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
sub edx, dword [eax + 4]
mov esi, dword [edi + 0xc]
imul edx, esi
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x24]
sub edx, dword [eax]
add edx, dword [ecx]
imul edx, dword [edi + 0x30]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov al, byte [ebx + 0x147c]
mov byte [ebp - 0xd], al
lea eax, [ebx + 0x2f0]
add edx, dword [edi + 0x10]
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x20], edx
lea edx, [ebx + 0x180]
mov dword [ebp - 0x2c], eax
jne 0x100d36f4
mov dword [ebp - 0x2c], edx
mov edi, dword [ebp - 0x2c]
cmp dword [edi + 0x20], 0
mov edi, dword [ebp - 0x28]
jne 0x100d3741
cmp byte [ebp - 0xd], 0
je 0x100d370b
mov dword [ebp - 0x2c], eax
jmp 0x100d3711
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x28], 0
mov ebx, dword [ebp - 0x14]
jne 0x100d3741
cmp byte [ebp - 0xd], 0
je 0x100d372b
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
jmp 0x100d372e
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x30], 0
mov ecx, dword [ebp + 0x14]
jne 0x100d3741
xor edx, edx
jmp 0x100d37f2
cmp byte [ebp - 0xd], 0
je 0x100d374f
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
jmp 0x100d3755
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x20], 1
jne 0x100d37a2
cmp byte [ebp - 0xd], 0
je 0x100d376c
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x100d3772
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x28], 1
mov ebx, dword [ebp - 0x14]
jne 0x100d37a2
cmp byte [ebp - 0xd], 0
je 0x100d378c
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
jmp 0x100d378f
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x30], 1
mov ecx, dword [ebp + 0x14]
jne 0x100d37a2
mov edx, 1
jmp 0x100d37f2
cmp byte [ebp - 0xd], 0
je 0x100d37b0
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x100d37b6
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x20], 1
mov ebx, dword [ebp - 0x14]
jbe 0x100d37ed
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x2c], eax
jne 0x100d37ce
mov dword [ebp - 0x2c], edx
mov edi, dword [ebp - 0x2c]
cmp dword [edi + 0x28], 1
mov edi, dword [ebp - 0x28]
jbe 0x100d37ed
cmp byte [ebp - 0xd], 0
jne 0x100d37e2
mov eax, edx
cmp dword [eax + 0x30], 1
mov edx, 2
ja 0x100d37f2
mov edx, 3
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x100d3805
cmp dword [ebx + 0x50], eax
jne 0x100d3829
cmp dword [ebx + 0x58], eax
jne 0x100d3829
jmp 0x100d382e
cmp eax, 1
jne 0x100d3816
cmp dword [ebx + 0x50], eax
jne 0x100d3829
cmp dword [ebx + 0x58], eax
jne 0x100d3829
jmp 0x100d382e
jbe 0x100d3829
cmp dword [ebx + 0x50], 1
jbe 0x100d3829
cmp dword [ebx + 0x58], 1
mov eax, 2
ja 0x100d382e
mov eax, 3
jmp dword [edx*4 + 0x100d3b7c]