Function at 0x100ed350
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b1943
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x101bf2c4]
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 0x100ed3d2
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0x34], 0x100015a8
mov dword [edi + 0x38], 0
mov dword [edi], 0x10006188
mov dword [edi + 0x34], 0x10006184
mov dword [edi + 0x3c], 0
jmp 0x100ed3d4
xor edi, edi
mov dword [ebp - 0x34], edi
test edi, edi
je 0x100ed3ee
mov eax, dword [edi]
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101c43b0]
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.100ed1b0
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 0x100ed469
mov esi, dword [esi + 4]
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x100ed455
cmp dword [esi + 0x1c], eax
jne 0x100ed435
push 0x86150001
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov ecx, esi
call fcn.100eddb0
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.100eea70
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.100e5c40
jmp 0x100ed46b
xor eax, eax
mov byte [ebp - 4], 0
mov esi, dword [edi + 8]
mov dword [ebp - 0x28], eax
cmp esi, eax
je 0x100ed48d
test esi, esi
je 0x100ed488
push ecx
mov ecx, esi
call fcn.100edb50
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 0x100ed4c2
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 0x100ed4dd
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 [0x101c43b0]
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101c43b0]
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.101aa740
mov esp, ebp
pop ebp
ret 4