Function at 0x1004a4e0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b7d94
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x101cc284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov eax, dword [ebx + 4]
mov dword [edi + 8], eax
mov eax, dword [ebx + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x10], eax
lea eax, [edi + 0x18]
mov dword [eax], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
push eax
push 0x100168a4
push 1
push 0
mov byte [ebp - 4], 3
push 0x10016b34
mov dword [edi + 0x30], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, ebx
call fcn.1004a3b0
mov dword [edi + 0x14], eax
cmp ax, 5
jb 0x1004a591
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov eax, dword [eax*4 + 0x10016850]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [ebx + 8]
cdq
mov ebx, eax
sub ebx, ecx
mov eax, ebx
sbb edx, esi
add eax, 0x80000000
adc edx, 0
test edx, edx
ja 0x1004a73b
jb 0x1004a5cc
cmp eax, 0xffffffff
ja 0x1004a73b
imul ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], ebx
mov eax, dword [eax + 4]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
cdq
sub eax, ecx
mov ecx, eax
sbb edx, esi
add ecx, 0x80000000
adc edx, 0
test edx, edx
ja 0x1004a73b
jb 0x1004a607
cmp ecx, 0xffffffff
ja 0x1004a73b
imul ebx, eax
push 1
push ebx
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov ecx, dword [edi + 0x28]
mov esi, eax
add esp, 8
cmp ecx, esi
je 0x1004a630
test ecx, ecx
je 0x1004a62d
push ecx
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
add esp, 4
mov dword [edi + 0x28], esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.1004a240
mov byte [ebp - 4], 4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x34]
mov ecx, esi
call dword [0x101d13b0]
call esi
test eax, eax
jns 0x1004a661
push eax
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x10]
add eax, 7
shr eax, 3
mov dword [ebp - 0x14], eax
mov eax, dword [ebx]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [ebx + 8]
cdq
mov ebx, eax
sub ebx, ecx
mov eax, ebx
sbb edx, esi
add eax, 0x80000000
adc edx, 0
test edx, edx
ja 0x1004a73b
jb 0x1004a69e
cmp eax, 0xffffffff
ja 0x1004a73b
imul ebx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
add ebx, 3
and ebx, 0xfffffffc
mov dword [edi + 0x24], ebx
mov eax, dword [eax + 4]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
cdq
sub eax, ecx
mov ecx, eax
sbb edx, esi
add ecx, 0x80000000
adc edx, 0
test edx, edx
ja 0x1004a73b
jb 0x1004a6d7
cmp ecx, 0xffffffff
ja 0x1004a73b
imul ebx, eax
push 1
push ebx
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
mov ecx, dword [edi + 0x2c]
mov esi, eax
add esp, 8
cmp ecx, esi
je 0x1004a700
test ecx, ecx
je 0x1004a6fd
push ecx
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
add esp, 4
mov dword [edi + 0x2c], esi
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004a71b
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101d13b0]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101b6170
mov esp, ebp
pop ebp
ret 0xc
call fcn.10042180
int3