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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x101cc284]
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 0x1015624d
test al, 4
je 0x1015624d
mov ecx, edi
mov eax, ebx
mov dword [ebp - 0x1c], eax
and ecx, 0xfffff
jbe 0x1015623b
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 0x10156233
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 0x10156233
add edx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, ecx
jb 0x10156210
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov edx, dword [ebp - 0x20]
cmp eax, ecx
mov eax, dword [ebp - 0x3c]
jne 0x1015624a
mov edi, ecx
or edi, 0x10000000
mov ecx, dword [ebp - 0x34]
cmp edi, 0x50000001
jne 0x10156277
push eax
push ecx
push edx
push dword [ebp - 0x44]
push 0x20500001
push dword [ebp - 0x40]
mov ecx, esi
call fcn.1015619d
test eax, eax
js 0x10156a92
jmp 0x10156a90
cmp edi, 0x50000002
jne 0x101562f8
mov eax, dword [esi + 8]
test byte [eax + 0x6c], 0x20
jne 0x101562f8
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.1015619d
test eax, eax
js 0x10156a92
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.1015619d
test eax, eax
js 0x10156a92
push ebx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x44]
push 0x20400001
push edi
jmp 0x10156263
mov ecx, dword [esi + 8]
test byte [ecx + 0x6c], 0x80
je 0x101564c1
mov eax, edi
and eax, 0xfff00000
mov dword [ebp - 0x38], eax
cmp eax, 0x20000000
je 0x1015632f
cmp eax, 0x20100000
je 0x1015632f
cmp eax, 0x20200000
je 0x1015632f
cmp eax, 0x20300000
jne 0x101564c1
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.1010328d
mov edx, eax
mov dword [ebp - 0x2c], edx
test edx, edx
jne 0x10156364
mov eax, 0x8007000e
jmp 0x10156a92
mov eax, ebx
mov ecx, edx
mov dword [ebp + eax*4 - 0x18], ecx
inc eax
add ecx, dword [ebp - 0x24]
cmp eax, 4
jb 0x10156368
test edi, edi
je 0x10156408
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 0x101563e4
cmp edx, 0x20100000
je 0x101563d7
cmp edx, 0x20200000
je 0x101563cd
cmp edx, 0x20300000
jne 0x101563f5
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
jmp 0x101563ef
mov eax, dword [esi + 0x24]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
jmp 0x101563ef
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + ecx]
mov dword [ecx], eax
mov eax, dword [edi + ecx]
jmp 0x101563ef
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 0x101563a3
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov edx, dword [ebp - 0x2c]
push edi
push dword [ebp - 0x18]
call fcn.10155f97
mov dword [ebp - 0x28], eax
test eax, eax
js 0x101564b1
push edi
push dword [ebp - 0x14]
call fcn.10155f97
mov dword [ebp - 0x28], eax
test eax, eax
js 0x101564b1
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.1015619d
test eax, eax
js 0x1015649e
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.1015619d
test eax, eax
js 0x1015649e
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.1015619d
test eax, eax
jns 0x101564a0
mov ebx, eax
push dword [ebp - 0x2c]
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
pop ecx
mov eax, ebx
jmp 0x10156a92
push edx
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
mov eax, dword [ebp - 0x28]
pop ecx
jmp 0x10156a92
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.101a1913
mov ecx, dword [esi + 8]
mov dword [ebp - 0x48], eax
cmp eax, dword [ecx + 0xc]
jae 0x101564e4
lfence
mov ecx, dword [ecx + 0x18]
mov esi, dword [ecx + eax*4]
mov dword [ebp - 0x30], esi
jmp 0x101564e9
mov esi, ebx
mov dword [ebp - 0x30], ebx
test esi, esi
je 0x1015635a
cmp dword [esi + 0xc], ebx
jne 0x10156502
cmp dword [esi + 4], ebx
jne 0x10156502
mov dword [esi], ebx
jmp 0x10156a90
push ecx
push ecx
mov ecx, esi
call fcn.1018bef0
push ebx
push ebx
mov dword [ebp - 0x1c], eax
call fcn.1018beb3
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 0x101565fd
mov eax, dword [edi + 8]
mov edx, dword [eax + edx*4]
mov eax, dword [esi + 8]
cmp edx, dword [eax + 8]
jae 0x1015657b
lfence
mov eax, dword [eax + 0x14]
mov edx, dword [eax + edx*4]
mov dword [ebp - 0x24], edx
jmp 0x10156580
mov edx, ebx
mov dword [ebp - 0x24], ebx
test edx, edx
je 0x101565ed
mov ecx, dword [esi + 8]
mov eax, dword [edx + 4]
cmp eax, dword [ecx + 0x88]
jne 0x101565ea
test byte [edx], 0x80
je 0x101565ea
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.101a18b9
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 0x1015635a
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 0x101565f0
inc dword [edx + 0x5c]
mov edx, dword [ebp - 0x20]
inc edx
mov dword [ebp - 0x20], edx
cmp edx, dword [edi + 4]
jb 0x1015655f
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
mov dword [ebp - 0x20], ebx
test edx, edx
je 0x10156760
fldz
fst qword [ebp - 0x10]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], ebx
test eax, eax
je 0x10156647
mov ecx, dword [eax + ecx*4]
cmp ecx, 0xffffffff
je 0x10156647
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jae 0x1015663a
lfence
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x34], eax
jmp 0x1015663f
mov eax, ebx
mov dword [ebp - 0x34], ebx
test eax, eax
je 0x10156744
mov ecx, dword [esi + 8]
push ecx
push ecx
fstp qword [esp]
push ebx
push ebx
push dword [ecx + 0x88]
call fcn.101a18b9
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x1015635a
mov ecx, dword [esi + 8]
cmp eax, dword [ecx + 8]
jae 0x1015667b
lfence
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + eax*4]
jmp 0x1015667d
mov edx, ebx
test edx, edx
je 0x1015635a
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 0x101566a5
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 0x101566cf
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 0x101566f6
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 0x101566fc
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
je 0x10156731
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 0x1015672e
push dword [ebp - 0x24]
push 0x10033080
push ebx
push ebx
push esi
call fcn.10159548
add esp, 0x14
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, edx
jae 0x10156760
fld qword [ebp - 0x10]
jmp 0x10156612
push 0x10032e34
push ebx
push ebx
push esi
fstp st(0)
call fcn.10159548
add esp, 0x10
mov eax, 0x80004005
jmp 0x10156a92
mov ecx, ebx
mov dword [ebp - 0x24], ecx
test edx, edx
je 0x10156785
mov eax, dword [edi + 0x10]
push ebx
push dword [eax + ecx*4]
mov ecx, esi
call fcn.10157a32
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jb 0x10156769
test byte [esi + 0x14], 4
jne 0x10156847
mov ecx, edi
call fcn.1003b8a2
test eax, eax
jne 0x10156847
mov ecx, ebx
mov dword [ebp - 0x24], ecx
test edx, edx
je 0x101567e1
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 0x101567df
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push ebx
call fcn.101576df
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
test eax, eax
js 0x101567df
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, edx
jb 0x101567a7
xor ebx, ebx
cmp ecx, edx
jne 0x10156847
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 0x10156847
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.101a18b9
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 0x1015635a
mov edx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x20], ecx
cmp ecx, edx
jb 0x10156800
mov eax, dword [edi]
mov ecx, 0x20500000
and eax, 0xfff00000
cmp eax, ecx
ja 0x1015694f
je 0x10156a35
cmp eax, 0x10000000
je 0x10156911
cmp eax, 0x10100000
je 0x101568df
cmp eax, 0x20000000
je 0x10156a35
cmp eax, 0x20100000
je 0x10156a35
cmp eax, 0x20400000
jne 0x10156a84
test edx, edx
je 0x10156a84
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 0x1015689c
mov edi, dword [ebp - 0x30]
jmp 0x10156a84
test edx, edx
je 0x10156a84
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 0x101568e7
jmp 0x10156a84
test edx, edx
je 0x10156a84
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 0x10156919
jmp 0x10156a84
cmp eax, 0x20700000
je 0x10156a35
cmp eax, 0x20800000
je 0x10156a35
cmp eax, 0x30000000
je 0x101569d6
cmp eax, 0x50000000
jne 0x10156a84
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 0x101569c6
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 0x101569bd
add esi, dword [ebp - 0x28]
inc ebx
mov ecx, dword [ebp - 0x24]
cmp ebx, edx
jb 0x1015699e
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
cmp ebx, edx
jne 0x10156a84
or dword [eax], 2
jmp 0x10156a84
test edx, edx
je 0x10156a84
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 0x10156a1c
mov eax, dword [ebp - 0x28]
or dword [eax], 0x17
jmp 0x10156a27
test cl, 2
je 0x10156a27
mov eax, dword [ebp - 0x28]
or dword [eax], 2
mov esi, dword [ebp - 0x2c]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x101569de
jmp 0x101568d7
test edx, edx
je 0x10156a84
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 0x10156a70
mov eax, dword [ebp - 0x28]
or dword [eax], 0x17
jmp 0x10156a7b
test cl, 2
je 0x10156a7b
mov eax, dword [ebp - 0x28]
or dword [eax], 2
mov esi, dword [ebp - 0x2c]
inc ebx
cmp ebx, dword [ebp - 0x1c]
jb 0x10156a39
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101b6170
mov esp, ebp
pop ebp
ret 0x18