Function at 0x100f5a20
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bdd43
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x101cc284]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 8]
push 1
push 0x40
mov dword [ebp - 0x30], eax
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov edi, eax
add esp, 8
mov dword [ebp - 0x28], edi
test edi, edi
je 0x100f5aa2
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x34], 0x10001584
mov dword [edi + 0x38], 0
mov dword [edi], 0x10006188
mov dword [edi + 0x34], 0x10006184
mov dword [edi + 0x3c], 0
jmp 0x100f5aa4
xor edi, edi
mov dword [ebp - 0x34], edi
test edi, edi
je 0x100f5abe
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101d13b0]
call esi
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push ebx
push esi
lea ecx, [edi + 4]
call fcn.100f5860
push 1
push 0x18
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
add esp, 8
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x100f5b39
mov esi, dword [esi + 4]
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x100f5b25
cmp dword [esi + 0x1c], eax
jne 0x100f5b05
push 0x86150001
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov ecx, esi
call fcn.100f65f0
mov eax, dword [esi + 0x1c]
push 0
push 0
mov ecx, dword [eax + 8]
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [eax + 8]
call fcn.100f7430
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x28]
push dword [eax + 0x10]
call fcn.100edec0
jmp 0x100f5b3b
xor eax, eax
mov byte [ebp - 4], 0
mov esi, dword [edi + 8]
mov dword [ebp - 0x28], eax
cmp esi, eax
je 0x100f5b5d
test esi, esi
je 0x100f5b58
push ecx
mov ecx, esi
call fcn.100f62c0
mov eax, dword [ebp - 0x28]
mov dword [edi + 8], eax
mov esi, eax
mov eax, dword [esi + 4]
mov dword [edi + 0x10], eax
mov eax, dword [esi]
cdq
idiv dword [esi + 8]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x18], eax
test ebx, ebx
je 0x100f5b92
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xc]
jmp 0x100f5bad
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x24]
mov eax, dword [ecx]
mov dword [edi + 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x20], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x24], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x14]
push edi
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x14]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [eax], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101d13b0]
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101d13b0]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101b6170
mov esp, ebp
pop ebp
ret 4