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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x101bf2c4]
xor eax, esp
mov dword [esp + 0x78], eax
or dword [esp + 0x44], 0xffffffff
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x40], esi
call fcn.10195520
mov edx, dword [esi + 8]
xor ecx, ecx
mov dword [esp + 0x38], ecx
test edx, edx
je 0x1018ce28
mov ebx, dword [esi + 0x88]
mov eax, dword [esi + 0x14]
mov edi, dword [eax]
cmp ebx, dword [edi + 4]
jne 0x1018ce20
mov edi, dword [edi + 0xc]
cmp ecx, edi
ja 0x1018ce20
lea ecx, [edi + 1]
mov dword [esp + 0x38], ecx
add eax, 4
sub edx, 1
jne 0x1018ce0b
mov eax, dword [esi + 0xc]
push 4
pop edx
lea edi, [ecx + eax*8]
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.100fa56f
mov ebx, eax
mov dword [esp + 0x58], ebx
test ebx, ebx
je 0x1018d4c1
mov eax, edi
shl eax, 2
push eax
push 0
push ebx
call sub.msvcrt.dll_memset
xor ecx, ecx
add esp, 0xc
cmp dword [esi + 8], ecx
jbe 0x1018ce8f
mov eax, dword [esi + 0x14]
mov edx, dword [eax + ecx*4]
mov eax, dword [esi + 0x88]
cmp eax, dword [edx + 4]
jne 0x1018ce89
mov edi, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
cmp dword [ebx + edi*4], eax
ja 0x1018ce89
inc eax
mov dword [ebx + edi*4], eax
inc ecx
cmp ecx, dword [esi + 8]
jb 0x1018ce69
mov ebx, dword [esi + 0xc]
xor ecx, ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x44], ecx
test ebx, ebx
je 0x1018d46f
mov eax, dword [esi + 0x18]
mov ebx, dword [eax + ecx*4]
mov dword [esp + 0x4c], ebx
test dword [ebx], 0xfff00000
je 0x1018d450
and dword [esp + 0x18], 0
lea eax, [esp + 0x48]
push eax
xor edi, edi
mov ecx, ebx
push 0
inc edi
call fcn.10180b55
test eax, eax
je 0x1018d3e0
push 0xffffffffffffffff
push dword [esp + 0x58]
lea ecx, [esp + 0x40]
push ebx
push ecx
push dword [esp + 0x68]
mov ecx, esi
push eax
push dword [esp + 0x60]
call fcn.1019249e
neg eax
lea ecx, [esp + 0x48]
push ecx
sbb eax, eax
mov ecx, ebx
and edi, eax
mov eax, dword [esp + 0x1c]
inc eax
push eax
mov dword [esp + 0x20], eax
call fcn.10180b55
test eax, eax
jne 0x1018ced8
test edi, edi
jne 0x1018d3e0
mov ecx, ebx
call fcn.10180be5
test eax, eax
jne 0x1018d3e0
push edi
push edi
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.10180b55
mov ecx, eax
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x1018cf4f
mov eax, dword [ebx + 4]
xor edx, edx
div ecx
mov dword [esp + 0x10], eax
jmp 0x1018cf53
mov dword [esp + 0x10], edi
xor eax, eax
lea edi, [esp + 0x64]
stosd dword es:[edi], eax
xor edx, edx
mov dword [esp + 0x14], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [esp + 0x34]
test edi, edi
je 0x1018d450
cmp dword [esp + edx*4 + 0x64], 0
jne 0x1018d201
mov dword [esp + 0x30], 1
lea ecx, [edx + 1]
jmp 0x1018d026
cmp dword [esp + ecx*4 + 0x64], 0
jne 0x1018d025
mov eax, dword [esp + 0x10]
xor edx, edx
test eax, eax
je 0x1018d01d
mov eax, dword [ebx + 8]
mov ebx, dword [esi + 0x14]
mov esi, edi
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x14]
shl esi, 2
mov dword [esp + 0x1c], esi
lea esi, [eax + ebx*4]
lea ebx, [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
mov eax, dword [ebx]
mov eax, dword [edi + eax*4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov eax, dword [edi + eax*4]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [eax + 4]
cmp eax, dword [edi + 4]
jne 0x1018d009
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
cmp eax, dword [edi + 8]
jne 0x1018d009
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
cmp eax, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
jne 0x1018d00d
inc edx
add ebx, ecx
add esi, ecx
cmp edx, eax
jb 0x1018cfc0
jmp 0x1018d00d
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
cmp edx, eax
jne 0x1018d025
inc dword [esp + 0x30]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, edi
jb 0x1018cf8a
mov eax, dword [ebx]
mov ecx, esi
xor eax, dword [esp + 0x30]
push 0xffffffffffffffff
and eax, 0xfffff
xor eax, dword [ebx]
push 0xffffffffffffffff
push eax
call fcn.10196366
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp ecx, 0xffffffff
je 0x1018d468
mov eax, dword [esi + 0x18]
push ebx
mov edx, dword [eax + ecx*4]
mov ecx, edx
mov dword [esp + 0x28], edx
call fcn.10180b36
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], edi
cmp edi, eax
jbe 0x1018d1c9
mov ecx, dword [esp + 0x30]
lea ecx, [ecx*4 - 4]
mov dword [esp + 0x2c], ecx
mov ecx, edi
dec ecx
mov dword [esp + 0x28], ecx
cmp dword [esp + ecx*4 + 0x64], 0
jne 0x1018d1bd
xor ecx, ecx
cmp dword [esp + 0x10], ecx
jbe 0x1018d177
mov edx, dword [esi + 0x14]
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x5c], edx
mov edx, edi
mov edi, dword [esp + 0x14]
shl edx, 2
mov dword [esp + 0x3c], edx
shl ebx, 2
lea edx, [eax + edi*4]
add ebx, eax
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x5c]
mov eax, dword [ebx]
mov eax, dword [esi + eax*4]
mov dword [esp + 0x60], eax
mov eax, dword [edx]
mov eax, dword [esi + eax*4]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [eax + 4]
cmp eax, dword [esi + 4]
jne 0x1018d11a
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
cmp eax, dword [esi + 8]
jne 0x1018d11a
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x1018d11a
mov eax, edi
inc ecx
shl eax, 2
add ebx, eax
add edx, eax
cmp ecx, dword [esp + 0x10]
jb 0x1018d0d0
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x10]
jb 0x1018d1b9
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
shl esi, 2
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 8]
mov eax, dword [esi + eax]
add esi, dword [esp + 0x3c]
mov dword [edi + ecx], eax
mov eax, dword [esp + 0x30]
shl eax, 2
add edi, eax
sub dword [esp + 0x1c], 1
jne 0x1018d143
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x34]
mov dword [esp + eax*4 + 0x64], 1
mov eax, dword [ebx]
and eax, 0xfff00000
cmp eax, 0x50000000
je 0x1018d1b2
mov eax, dword [ebx + 0x10]
mov edi, dword [esp + 0x28]
mov ecx, dword [edx + 0x10]
mov eax, dword [eax + edi*4]
mov edi, dword [esp + 0x2c]
mov dword [edi + ecx], eax
mov ecx, edi
mov eax, dword [edx + 0x10]
mov edi, dword [esp + 0x34]
mov ecx, dword [ecx + eax]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x48], ecx
push 4
pop eax
sub dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
ja 0x1018d08d
mov eax, dword [ebx]
and eax, 0xfff00000
cmp eax, 0x50000000
jne 0x1018d1fd
cmp dword [esp + 0x30], edi
jne 0x1018d282
mov eax, dword [ebx + 0x10]
mov ecx, dword [edx + 0x10]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x48], ecx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
inc edx
mov dword [esp + 0x14], edx
cmp edx, edi
jb 0x1018cf6f
test eax, eax
je 0x1018d450
mov ecx, esi
push 0xffffffffffffffff
push 0xffffffffffffffff
cmp eax, 2
jne 0x1018d32d
push 0x20400001
call fcn.10196366
mov edi, eax
xor edx, edx
mov ecx, dword [esp + edx*4 + 0x74]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x48]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ecx]
and eax, 0xfff00000
cmp eax, 0x10000000
jne 0x1018d277
and dword [ecx], 0
mov ecx, dword [esp + edx*4 + 0x74]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x48]
mov eax, dword [esi + 0x18]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + edx*4 + 0x74], eax
inc edx
cmp edx, 2
jb 0x1018d237
jmp 0x1018d33f
fldz
push ecx
push ecx
fstp qword [esp]
push dword [esp + 0x28]
mov ecx, esi
push dword [esp + 0x44]
push dword [esi + 0x88]
call fcn.1019630c
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x74], ecx
mov eax, dword [edx + 0x10]
mov dword [eax], ecx
mov eax, dword [edx + 0x10]
mov edx, dword [eax]
cmp edx, 0xffffffff
je 0x1018d468
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + 0x14]
push 0
push dword [esp + 0x28]
mov eax, dword [eax]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ecx + edx*4]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [esi + 0x14]
mov eax, dword [eax]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov ecx, dword [ecx + eax*4]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x18], eax
mov ecx, esi
call fcn.1018adc8
test eax, eax
js 0x1018d4c6
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x48], ecx
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
jmp 0x1018d205
and eax, 0xfffff
or eax, 0x50000000
push eax
call fcn.10196366
mov edi, eax
cmp edi, 0xffffffff
je 0x1018d4c1
mov eax, dword [esi + 0x18]
push ebx
mov edx, dword [eax + edi*4]
mov ecx, edx
mov dword [esp + 0x40], edx
call fcn.10180b36
mov eax, dword [ebx + 0x10]
mov ecx, dword [edx + 0x10]
mov ebx, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [edx + 0x10]
mov ecx, dword [eax]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x48], edi
mov edi, ebx
shl edi, 2
lea eax, [esp + 0x74]
push edi
push eax
push dword [edx + 8]
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp ebx, 2
je 0x1018d3da
mov edx, dword [esp + 0x50]
cmp edx, 0xffffffff
jne 0x1018d3be
fld1
push ecx
push ecx
fstp qword [esp]
push 0
push 0
push dword [esi + 0x78]
mov ecx, esi
call fcn.1019630c
mov edx, eax
mov dword [esp + 0x50], edx
cmp edx, 0xffffffff
je 0x1018d468
test ebx, ebx
je 0x1018d3da
mov ecx, dword [esp + 0x3c]
push 4
pop esi
mov eax, dword [ecx + 8]
mov dword [edi + eax], edx
add edi, esi
sub ebx, 1
jne 0x1018d3c9
mov esi, dword [esp + 0x40]
inc dword [esp + 0x38]
jmp 0x1018d450
push dword [ebx + 0xc]
mov ecx, esi
push dword [ebx + 4]
push dword [ebx]
call fcn.10196366
mov dword [esp + 0x3c], eax
cmp eax, 0xffffffff
je 0x1018d468
mov ecx, dword [esi + 0x18]
push ebx
mov edi, dword [ecx + eax*4]
mov ecx, edi
call fcn.10180b36
mov ecx, dword [ebx + 4]
shl ecx, 2
push ecx
push dword [ebx + 8]
push dword [edi + 8]
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx + 0xc]
add esp, 0xc
shl eax, 2
push eax
push dword [ebx + 0x10]
push dword [edi + 0x10]
call sub.msvcrt.dll_memcpy
xor edx, edx
add esp, 0xc
cmp dword [ebx + 0xc], edx
jbe 0x1018d450
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + edx*4]
inc edx
mov eax, dword [esi + 0x14]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x48], ecx
cmp edx, dword [ebx + 0xc]
jb 0x1018d437
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x54]
inc eax
mov dword [esp + 0x44], eax
cmp eax, ebx
jae 0x1018d46f
mov ecx, eax
jmp 0x1018cea4
mov edi, 0x8007000e
jmp 0x1018d4b2
xor ecx, ecx
test ebx, ebx
je 0x1018d483
mov eax, dword [esi + 0x18]
mov eax, dword [eax + ecx*4]
and dword [eax], 0
inc ecx
cmp ecx, ebx
jb 0x1018d475
mov ecx, esi
call fcn.10183ec5
mov edi, eax
test edi, edi
je 0x1018d492
js 0x1018d4b2
mov ecx, esi
call fcn.10188493
mov edi, eax
test edi, edi
je 0x1018d4a1
js 0x1018d4b2
mov ecx, esi
call fcn.101843ff
mov edi, eax
test edi, edi
je 0x1018d4b0
js 0x1018d4b2
xor edi, edi
push dword [esp + 0x58]
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
pop ecx
mov eax, edi
jmp 0x1018d4c6
mov eax, 0x8007000e
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101aa740
mov esp, ebp
pop ebp
ret