Function at 0x1014bb91
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x101bf2c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x40], eax
xor ebx, ebx
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x44], eax
mov esi, ecx
mov ecx, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
and eax, 0xfff00000
mov dword [ebp - 0x2c], esi
cmp eax, 0x20500000
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x3c], eax
jne 0x1014bc41
test al, 4
je 0x1014bc41
mov ecx, edi
mov eax, ebx
mov dword [ebp - 0x1c], eax
and ecx, 0xfffff
jbe 0x1014bc2f
mov esi, dword [ebp - 0x34]
sub esi, edx
mov dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x38]
mov ebx, dword [edx]
cmp ebx, dword [edi + edx]
jne 0x1014bc27
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ebx*4]
test byte [eax], 1
mov eax, dword [ebp - 0x1c]
je 0x1014bc27
add edx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, ecx
jb 0x1014bc04
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov edx, dword [ebp - 0x20]
cmp eax, ecx
mov eax, dword [ebp - 0x3c]
jne 0x1014bc3e
mov edi, ecx
or edi, 0x10000000
mov ecx, dword [ebp - 0x34]
cmp edi, 0x50000001
jne 0x1014bc6d
push eax
push ecx
push edx
push dword [ebp - 0x44]
push 0x20500001
push dword [ebp - 0x40]
mov ecx, esi
call fcn.1014bb91
test eax, eax
js 0x1014c488
xor eax, eax
jmp 0x1014c488
cmp edi, 0x50000002
jne 0x1014bcee
mov eax, dword [esi + 8]
test byte [eax + 0x6c], 0x20
jne 0x1014bcee
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x4c]
or dword [ebp - 0x4c], 0xffffffff
mov edi, ebx
or dword [ebp - 0x48], 0xffffffff
and edi, 0x40
push edi
push ecx
push edx
push eax
push 0x20500001
push dword [ebp - 0x40]
mov ecx, esi
call fcn.1014bb91
test eax, eax
js 0x1014c488
mov eax, dword [ebp - 0x34]
mov ecx, esi
push edi
mov edi, dword [ebp - 0x40]
add eax, 4
push eax
mov eax, dword [ebp - 0x20]
add eax, 4
push eax
lea eax, [ebp - 0x48]
push eax
push 0x20500001
push edi
call fcn.1014bb91
test eax, eax
js 0x1014c488
push ebx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x44]
push 0x20400001
push edi
jmp 0x1014bc57
mov ecx, dword [esi + 8]
test byte [ecx + 0x6c], 0x80
je 0x1014beaf
mov eax, edi
and eax, 0xfff00000
mov dword [ebp - 0x38], eax
cmp eax, 0x20000000
je 0x1014bd25
cmp eax, 0x20100000
je 0x1014bd25
cmp eax, 0x20200000
je 0x1014bd25
cmp eax, 0x20300000
jne 0x1014beaf
and edi, 0xfffff
xor ecx, ecx
mov eax, edi
mov dword [ebp + 0xc], edi
shl eax, 2
mov dword [ebp - 0x24], eax
mul dword [ebp - 0x28]
seto cl
neg ecx
or ecx, eax
call fcn.100fa56f
mov edx, eax
mov dword [ebp - 0x2c], edx
test edx, edx
je 0x1014c483
mov ecx, ebx
mov dword [ebp + ecx*4 - 0x18], eax
inc ecx
add eax, dword [ebp - 0x24]
cmp ecx, 4
jb 0x1014bd56
test edi, edi
je 0x1014bdf6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
sub eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
sub eax, ecx
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
mov ebx, eax
mov eax, dword [ebp - 0x1c]
cmp edx, 0x20000000
je 0x1014bdd2
cmp edx, 0x20100000
je 0x1014bdc5
cmp edx, 0x20200000
je 0x1014bdbb
cmp edx, 0x20300000
jne 0x1014bde3
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
jmp 0x1014bddd
mov eax, dword [esi + 0x24]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
jmp 0x1014bddd
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + ecx]
mov dword [ecx], eax
mov eax, dword [edi + ecx]
jmp 0x1014bddd
mov eax, dword [edi + ecx]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + ecx]
mov dword [ebx + ecx], eax
mov eax, dword [ebp - 0x1c]
add ecx, 4
sub eax, 1
mov dword [ebp - 0x1c], eax
jne 0x1014bd91
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov edx, dword [ebp - 0x2c]
push edi
push dword [ebp - 0x18]
call fcn.1014b98a
mov dword [ebp - 0x28], eax
test eax, eax
js 0x1014be9f
push edi
push dword [ebp - 0x14]
call fcn.1014b98a
mov dword [ebp - 0x28], eax
test eax, eax
js 0x1014be9f
mov eax, dword [ebp - 0x3c]
mov ecx, esi
and eax, 0x40
push eax
push ebx
push dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, edi
push dword [ebp - 0x18]
or eax, 0x10100000
push eax
push dword [ebp - 0x40]
call fcn.1014bb91
test eax, eax
js 0x1014be8c
push dword [ebp - 0x28]
mov eax, edi
mov ecx, esi
push dword [ebp - 0x18]
or eax, 0x20400000
push dword [ebp - 0x20]
push dword [ebp - 0x14]
push eax
push dword [ebp - 0x40]
call fcn.1014bb91
test eax, eax
js 0x1014be8c
push dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
mov ecx, esi
lea eax, [eax + edi*8]
or edi, 0x30000000
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x44]
push edi
push dword [ebp - 0x40]
call fcn.1014bb91
test eax, eax
jns 0x1014be8e
mov ebx, eax
push dword [ebp - 0x2c]
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
pop ecx
mov eax, ebx
jmp 0x1014c488
push edx
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
mov eax, dword [ebp - 0x28]
pop ecx
jmp 0x1014c488
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.10196366
mov ecx, dword [esi + 8]
mov dword [ebp - 0x48], eax
cmp eax, dword [ecx + 0xc]
jae 0x1014bed2
lfence
mov ecx, dword [ecx + 0x18]
mov esi, dword [ecx + eax*4]
mov dword [ebp - 0x30], esi
jmp 0x1014bed7
mov esi, ebx
mov dword [ebp - 0x30], ebx
test esi, esi
je 0x1014c483
cmp dword [esi + 0xc], ebx
jne 0x1014bef0
cmp dword [esi + 4], ebx
jne 0x1014bef0
mov dword [esi], ebx
jmp 0x1014bc66
push ecx
push ecx
mov ecx, esi
call fcn.10180b92
push ebx
push ebx
mov dword [ebp - 0x1c], eax
call fcn.10180b55
mov esi, dword [esi + 4]
mov edi, eax
sub esi, eax
shl edi, 2
mov eax, dword [ebp - 0x30]
push edi
push dword [ebp - 0x20]
push dword [eax + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, esi
shl eax, 2
push eax
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x34]
mov eax, dword [eax + 8]
add eax, edi
push eax
call sub.msvcrt.dll_memcpy
mov edi, dword [ebp - 0x30]
add esp, 0xc
mov esi, dword [ebp - 0x2c]
mov edx, ebx
mov dword [ebp - 0x20], edx
cmp dword [edi + 4], ebx
jbe 0x1014bfeb
mov eax, dword [edi + 8]
mov edx, dword [eax + edx*4]
mov eax, dword [esi + 8]
cmp edx, dword [eax + 8]
jae 0x1014bf69
lfence
mov eax, dword [eax + 0x14]
mov edx, dword [eax + edx*4]
mov dword [ebp - 0x24], edx
jmp 0x1014bf6e
mov edx, ebx
mov dword [ebp - 0x24], ebx
test edx, edx
je 0x1014bfdb
mov ecx, dword [esi + 8]
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 0x88]
jne 0x1014bfd8
test byte [edx], 0x80
je 0x1014bfd8
inc dword [edx + 0x5c]
mov ecx, dword [esi + 8]
mov eax, dword [edi + 8]
mov edx, dword [ebp - 0x20]
push ecx
push ecx
mov edx, dword [eax + edx*4]
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + edx*4]
fld qword [eax + 0x20]
fstp qword [esp]
push ebx
push ebx
push dword [ecx + 0x78]
call fcn.1019630c
mov ecx, dword [edi + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + edx*4], eax
mov eax, dword [edi + 8]
mov ecx, dword [eax + edx*4]
cmp ecx, 0xffffffff
je 0x1014c483
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x30]
mov dword [ecx + 0x30], eax
jmp 0x1014bfde
inc dword [edx + 0x5c]
mov edx, dword [ebp - 0x20]
inc edx
mov dword [ebp - 0x20], edx
cmp edx, dword [edi + 4]
jb 0x1014bf4d
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
mov dword [ebp - 0x20], ebx
test edx, edx
je 0x1014c14e
fldz
fst qword [ebp - 0x10]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], ebx
test eax, eax
je 0x1014c035
mov ecx, dword [eax + ecx*4]
cmp ecx, 0xffffffff
je 0x1014c035
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jae 0x1014c028
lfence
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x34], eax
jmp 0x1014c02d
mov eax, ebx
mov dword [ebp - 0x34], ebx
test eax, eax
je 0x1014c132
mov ecx, dword [esi + 8]
push ecx
push ecx
fstp qword [esp]
push ebx
push ebx
push dword [ecx + 0x88]
call fcn.1019630c
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x1014c483
mov ecx, dword [esi + 8]
cmp eax, dword [ecx + 8]
jae 0x1014c069
lfence
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + eax*4]
jmp 0x1014c06b
mov edx, ebx
test edx, edx
je 0x1014c483
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0x48], ecx
mov ecx, dword [ebp - 0x20]
mov dword [edx], eax
mov dword [edx + 0x10], ecx
test eax, 0xe000000
jne 0x1014c093
mov eax, dword [esi + 0x64]
or eax, dword [ebp - 0x3c]
mov dword [edx], eax
cmp dword [ebp - 0x44], 0
mov eax, dword [esi + 0x30]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 0x34]
mov esi, dword [ebp - 0x24]
mov dword [edx + 0x18], eax
mov eax, dword [edi + 0x10]
mov dword [eax + ecx*4], esi
mov esi, dword [ebp - 0x2c]
je 0x1014c0bd
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x24]
mov dword [esi + ecx*4], eax
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1014c0e4
mov edi, dword [eax + 0x30]
mov dword [edx + 0x30], edi
mov eax, dword [eax + 0x60]
mov dword [edx + 0x60], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x30]
mov eax, dword [eax + 0x64]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 0x38]
jmp 0x1014c0ea
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
je 0x1014c11f
mov eax, dword [edi + 0x10]
mov edi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x18]
mov eax, dword [eax + edi*4]
mov edi, dword [ebp - 0x38]
mov dword [ecx + edi*4], eax
mov edi, dword [ebp - 0x30]
cmp dword [edx + 0x60], ebx
jne 0x1014c11c
push dword [ebp - 0x24]
push 0x1002f180
push ebx
push ebx
push esi
call fcn.1014ef68
add esp, 0x14
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, edx
jae 0x1014c14e
fld qword [ebp - 0x10]
jmp 0x1014c000
push 0x1002ef34
push ebx
push ebx
push esi
fstp st(0)
call fcn.1014ef68
add esp, 0x10
mov eax, 0x80004005
jmp 0x1014c488
mov ecx, ebx
mov dword [ebp - 0x24], ecx
test edx, edx
je 0x1014c173
mov eax, dword [edi + 0x10]
push ebx
push dword [eax + ecx*4]
mov ecx, esi
call fcn.1014d466
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jb 0x1014c157
test byte [esi + 0x14], 4
jne 0x1014c235
mov ecx, edi
call fcn.10180da7
test eax, eax
jne 0x1014c235
mov ecx, ebx
mov dword [ebp - 0x24], ecx
test edx, edx
je 0x1014c1cf
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 8]
mov ebx, dword [ebp - 0x38]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ebx*4]
test byte [eax], 0x40
jne 0x1014c1cd
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push ebx
call fcn.1014d0c4
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
test eax, eax
js 0x1014c1cd
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jb 0x1014c195
xor ebx, ebx
cmp ecx, edx
jne 0x1014c235
mov eax, edx
mov dword [ebp - 0x20], ebx
and eax, 0xfffff
or eax, 0x10000000
mov dword [edi], eax
mov eax, dword [edi + 0xc]
mov dword [edi + 4], eax
test edx, edx
je 0x1014c235
mov ecx, dword [esi + 8]
mov eax, dword [edi + 0x10]
mov edx, dword [ebp - 0x20]
push ecx
push ecx
mov edx, dword [eax + edx*4]
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + edx*4]
fld qword [eax + 0x20]
fstp qword [esp]
push ebx
push ebx
push dword [ecx + 0x78]
call fcn.1019630c
mov ecx, dword [edi + 8]
mov edx, dword [ebp - 0x20]
mov dword [ecx + edx*4], eax
mov ecx, edx
mov eax, dword [edi + 8]
cmp dword [eax + ecx*4], 0xffffffff
je 0x1014c483
mov edx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, edx
jb 0x1014c1ee
mov eax, dword [edi]
mov ecx, 0x20500000
and eax, 0xfff00000
cmp eax, ecx
ja 0x1014c33d
je 0x1014c423
cmp eax, 0x10000000
je 0x1014c2ff
cmp eax, 0x10100000
je 0x1014c2cd
cmp eax, 0x20000000
je 0x1014c423
cmp eax, 0x20100000
je 0x1014c423
cmp eax, 0x20400000
jne 0x1014c472
test edx, edx
je 0x1014c472
mov eax, dword [esi + 8]
mov esi, dword [eax + 0x14]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ebx*4]
mov edi, dword [esi + eax*4]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
add eax, ebx
mov eax, dword [edx + eax*4]
mov ecx, dword [esi + eax*4]
mov eax, dword [edx + ebx*4]
mov ecx, dword [ecx]
mov eax, dword [esi + eax*4]
mov esi, dword [ebp - 0x2c]
and ecx, dword [eax]
and ecx, 2
or dword [edi], ecx
inc ebx
mov edi, dword [ebp - 0x30]
cmp ebx, dword [ebp - 0x1c]
jb 0x1014c28a
mov edi, dword [ebp - 0x30]
jmp 0x1014c472
test edx, edx
je 0x1014c472
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ebx*4]
mov edx, dword [ecx + eax*4]
mov eax, dword [edi + 8]
mov eax, dword [eax + ebx*4]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax]
and eax, 2
or dword [edx], eax
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x1014c2d5
jmp 0x1014c472
test edx, edx
je 0x1014c472
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ebx*4]
mov edx, dword [ecx + eax*4]
mov eax, dword [edi + 8]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ecx + eax*4]
mov dword [edx + 0x34], eax
mov eax, dword [ecx]
or dword [edx], eax
inc ebx
fld qword [ecx + 0x20]
fstp qword [edx + 0x20]
fld qword [ecx + 0x28]
fstp qword [edx + 0x28]
cmp ebx, dword [ebp - 0x1c]
jb 0x1014c307
jmp 0x1014c472
cmp eax, 0x20700000
je 0x1014c423
cmp eax, 0x20800000
je 0x1014c423
cmp eax, 0x30000000
je 0x1014c3c4
cmp eax, 0x50000000
jne 0x1014c472
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x48], ecx
mov eax, dword [eax]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x38], eax
test edx, edx
je 0x1014c3b4
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
mov edi, dword [ebp - 0x48]
mov dword [ebp - 0x24], ecx
lea esi, [ecx + eax*4]
mov eax, dword [ecx + ebx*4]
mov ecx, dword [edi + eax*4]
mov eax, dword [esi]
mov ecx, dword [ecx]
mov eax, dword [edi + eax*4]
and ecx, dword [eax]
test cl, 2
je 0x1014c3ab
add esi, dword [ebp - 0x28]
inc ebx
mov ecx, dword [ebp - 0x24]
cmp ebx, edx
jb 0x1014c38c
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
cmp ebx, edx
jne 0x1014c472
or dword [eax], 2
jmp 0x1014c472
test edx, edx
je 0x1014c472
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x30]
mov edi, dword [eax + 0x14]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
mov eax, dword [eax + ebx*4]
mov eax, dword [edi + eax*4]
mov dword [ebp - 0x28], eax
lea eax, [ebx + edx*2]
mov eax, dword [esi + eax*4]
mov ecx, dword [edi + eax*4]
lea eax, [edx + ebx]
mov eax, dword [esi + eax*4]
mov ecx, dword [ecx]
mov eax, dword [edi + eax*4]
and ecx, dword [eax]
test cl, 1
je 0x1014c40a
mov eax, dword [ebp - 0x28]
or dword [eax], 0x17
jmp 0x1014c415
test cl, 2
je 0x1014c415
mov eax, dword [ebp - 0x28]
or dword [eax], 2
mov esi, dword [ebp - 0x2c]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x1014c3cc
jmp 0x1014c2c5
test edx, edx
je 0x1014c472
mov eax, dword [esi + 8]
mov edx, dword [edi + 8]
mov esi, dword [eax + 0x14]
mov eax, dword [edi + 0x10]
mov eax, dword [eax + ebx*4]
mov eax, dword [esi + eax*4]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0xc]
add eax, ebx
mov eax, dword [edx + eax*4]
mov ecx, dword [esi + eax*4]
mov eax, dword [edx + ebx*4]
mov ecx, dword [ecx]
mov eax, dword [esi + eax*4]
and ecx, dword [eax]
test cl, 1
je 0x1014c45e
mov eax, dword [ebp - 0x28]
or dword [eax], 0x17
jmp 0x1014c469
test cl, 2
je 0x1014c469
mov eax, dword [ebp - 0x28]
or dword [eax], 2
mov esi, dword [ebp - 0x2c]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x1014c427
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
jmp 0x1014bc66
mov eax, 0x8007000e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101aa740
leave
ret 0x18