Function at 0x1004a750
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b7dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
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, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x28]
lea eax, [ebp - 0x30]
mov byte [ebp - 0x40], 0
push dword [ebx + 0x14]
mov ecx, edi
mov dword [ebp - 0x3c], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x38], 0
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.1004cac0
mov ecx, dword [ebx]
push eax
push edi
call fcn.10048930
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x24]
mov edx, dword [ebx + 0x14]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x38], eax
call fcn.1004a410
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [edi + 0xc]
cdq
sub eax, ecx
mov ecx, eax
mov dword [ebp - 0x2c], eax
sbb edx, esi
add ecx, 0x80000000
mov eax, edx
adc eax, 0
test eax, eax
ja 0x1004a943
jb 0x1004a829
cmp ecx, 0xffffffff
ja 0x1004a943
mov eax, dword [edi]
cdq
mov ecx, eax
mov esi, edx
mov eax, dword [edi + 8]
cdq
mov edi, eax
sub edi, ecx
mov eax, edi
sbb edx, esi
add eax, 0x80000000
adc edx, 0
test edx, edx
ja 0x1004a943
jb 0x1004a857
cmp eax, 0xffffffff
ja 0x1004a943
mov ecx, dword [ebx + 0x20]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebx + 0x18]
push eax
push dword [ebx + 0x28]
mov eax, ecx
mov esi, dword [esi]
imul eax, edx
mov esi, dword [esi + 0x50]
push eax
push ecx
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
mov eax, dword [ebx + 0x18]
push edx
push edi
push eax
call dword [0x101d13b0]
call esi
test eax, eax
jns 0x1004a892
push eax
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov ecx, dword [ebx + 0x1c]
lea edi, [ebx + 0x1c]
test ecx, ecx
je 0x1004a8b2
mov dword [edi], 0
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101d13b0]
call esi
mov eax, dword [ebx + 0x18]
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x101d13b0]
call esi
test eax, eax
jns 0x1004a8d1
push eax
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov ecx, dword [edi]
lea eax, [ebx + 4]
fldz
push 0
sub esp, 8
mov esi, dword [ecx]
fstp qword [esp]
mov esi, dword [esi + 0x20]
push 0
push 0
push eax
push dword [ebp - 0x28]
push ecx
mov ecx, esi
call dword [0x101d13b0]
call esi
test eax, eax
jns 0x1004a903
push eax
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
mov edi, dword [edi]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1004a923
mov edx, dword [ecx]
push ecx
mov esi, dword [edx + 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 - 0x14]
xor ecx, ebp
call fcn.101b6170
mov esp, ebp
pop ebp
ret 4
call fcn.10042180
int3