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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x101d32d0]
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 - 0x48], 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 - 0x28], esi
cmp eax, 0x20500000
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x44], eax
jne 0x10158ee4
test al, 4
je 0x10158ee4
mov ecx, edi
mov eax, ebx
mov dword [ebp - 0x24], eax
and ecx, 0xfffff
jbe 0x10158ed2
mov esi, dword [ebp - 0x30]
sub esi, edx
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
mov ebx, dword [edx]
cmp ebx, dword [edi + edx]
jne 0x10158eca
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ebx*4]
test byte [eax], 1
mov eax, dword [ebp - 0x24]
je 0x10158eca
add edx, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, ecx
jb 0x10158ea7
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov edx, dword [ebp - 0x20]
cmp eax, ecx
mov eax, dword [ebp - 0x44]
jne 0x10158ee1
mov edi, ecx
or edi, 0x10000000
mov ecx, dword [ebp - 0x30]
cmp edi, 0x50000001
jne 0x10158f10
push eax
push ecx
push edx
push dword [ebp - 0x48]
push 0x20500001
push dword [ebp - 0x40]
mov ecx, esi
call fcn.10158e34
test eax, eax
js 0x10159749
xor eax, eax
jmp 0x10159749
cmp edi, 0x50000002
jne 0x10158f91
mov eax, dword [esi + 8]
test byte [eax + 0x6c], 0x20
jne 0x10158f91
mov ebx, dword [ebp - 0x44]
lea eax, [ebp - 0x50]
or dword [ebp - 0x50], 0xffffffff
mov edi, ebx
or dword [ebp - 0x4c], 0xffffffff
and edi, 0x40
push edi
push ecx
push edx
push eax
push 0x20500001
push dword [ebp - 0x40]
mov ecx, esi
call fcn.10158e34
test eax, eax
js 0x10159749
mov eax, dword [ebp - 0x30]
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 - 0x4c]
push eax
push 0x20500001
push edi
call fcn.10158e34
test eax, eax
js 0x10159749
push ebx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x48]
push 0x20400001
push edi
jmp 0x10158efa
mov ecx, dword [esi + 8]
test byte [ecx + 0x6c], 0x80
je 0x10159154
mov eax, edi
and eax, 0xfff00000
mov dword [ebp - 0x3c], eax
cmp eax, 0x20000000
je 0x10158fc8
cmp eax, 0x20100000
je 0x10158fc8
cmp eax, 0x20200000
je 0x10158fc8
cmp eax, 0x20300000
jne 0x10159154
and edi, 0xfffff
xor ecx, ecx
mov eax, edi
mov dword [ebp + 0xc], edi
shl eax, 2
mov dword [ebp - 0x1c], eax
mul dword [ebp - 0x2c]
seto cl
neg ecx
or ecx, eax
call fcn.101055aa
mov edx, eax
mov dword [ebp - 0x24], edx
test edx, edx
je 0x10159744
mov eax, ebx
mov ecx, edx
mov dword [ebp + eax*4 - 0x18], ecx
inc eax
add ecx, dword [ebp - 0x1c]
cmp eax, 4
jb 0x10158ffb
test edi, edi
je 0x1015909b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
sub eax, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
sub eax, ecx
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
mov ebx, eax
mov eax, dword [ebp - 0x28]
cmp edx, 0x20000000
je 0x10159077
cmp edx, 0x20100000
je 0x1015906a
cmp edx, 0x20200000
je 0x10159060
cmp edx, 0x20300000
jne 0x10159088
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
jmp 0x10159082
mov eax, dword [esi + 0x24]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
jmp 0x10159082
mov eax, dword [ebp - 0x2c]
mov eax, dword [ecx + eax]
mov dword [ecx], eax
mov eax, dword [ecx + edi]
jmp 0x10159082
mov eax, dword [ecx + edi]
mov dword [ecx], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [ecx + eax]
mov dword [ecx + ebx], eax
mov eax, dword [ebp - 0x28]
add ecx, 4
sub eax, 1
mov dword [ebp - 0x28], eax
jne 0x10159036
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov edx, dword [ebp - 0x24]
push edi
push dword [ebp - 0x18]
call fcn.10158c21
mov dword [ebp - 0x2c], eax
test eax, eax
js 0x10159144
push edi
push dword [ebp - 0x14]
call fcn.10158c21
mov dword [ebp - 0x2c], eax
test eax, eax
js 0x10159144
mov eax, dword [ebp - 0x44]
mov ecx, esi
and eax, 0x40
push eax
push ebx
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, edi
push dword [ebp - 0x18]
or eax, 0x10100000
push eax
push dword [ebp - 0x40]
call fcn.10158e34
test eax, eax
js 0x10159131
push dword [ebp - 0x2c]
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.10158e34
test eax, eax
js 0x10159131
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x24]
mov ecx, esi
lea eax, [eax + edi*8]
or edi, 0x30000000
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x48]
push edi
push dword [ebp - 0x40]
call fcn.10158e34
test eax, eax
jns 0x10159133
mov ebx, eax
push dword [ebp - 0x24]
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
pop ecx
mov eax, ebx
jmp 0x10159749
push edx
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
mov eax, dword [ebp - 0x2c]
pop ecx
jmp 0x10159749
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call fcn.101a567c
mov ecx, dword [esi + 8]
mov dword [ebp - 0x4c], eax
cmp eax, dword [ecx + 0xc]
jae 0x10159744
lfence
mov ecx, dword [ecx + 0x18]
mov esi, dword [ecx + eax*4]
mov dword [ebp - 0x34], esi
test esi, esi
je 0x10159744
cmp dword [esi + 0xc], ebx
jne 0x10159192
cmp dword [esi + 4], ebx
jne 0x10159192
mov dword [esi], ebx
jmp 0x10158f09
push ecx
push ecx
mov ecx, esi
call fcn.1018f7c6
push ebx
push ebx
mov dword [ebp - 0x3c], eax
call fcn.1018f783
mov ecx, dword [ebp - 0x34]
mov edi, eax
mov esi, dword [esi + 4]
shl edi, 2
sub esi, eax
push edi
push dword [ebp - 0x20]
push dword [ecx + 8]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
shl esi, 2
push esi
mov esi, dword [ebp - 0x34]
push dword [ebp - 0x30]
mov eax, dword [esi + 8]
add eax, edi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edi, dword [ebp - 0x28]
add esp, 0xc
mov edx, ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x1c], edx
cmp dword [esi + 4], ebx
jbe 0x1015928a
mov dword [ebp - 0x30], esi
mov eax, dword [esi + 8]
mov ecx, dword [edi + 8]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x24], eax
cmp eax, dword [ecx + 8]
jae 0x1015927d
lfence
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x1015927d
mov esi, dword [edi + 8]
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 0x88]
mov esi, dword [ebp - 0x34]
jne 0x1015927a
test byte [ecx], 0x80
je 0x1015927a
inc dword [ecx + 0x5c]
mov ecx, dword [edi + 8]
mov eax, dword [esi + 8]
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.101a5632
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + edx*4]
cmp ecx, 0xffffffff
je 0x10159744
mov eax, dword [edi + 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 0x1015927d
inc dword [ecx + 0x5c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [esi + 4]
jb 0x101591f0
mov esi, dword [ebp - 0x3c]
mov eax, ebx
mov dword [ebp - 0x38], eax
test esi, esi
je 0x10159418
fldz
fst qword [ebp - 0x10]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x24], ebx
test ecx, ecx
je 0x101592d1
mov ecx, dword [ecx + eax*4]
cmp ecx, 0xffffffff
je 0x101592d1
mov eax, dword [edi + 8]
cmp ecx, dword [eax + 8]
jae 0x101593d4
lfence
mov eax, dword [eax + 0x14]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x101593d4
mov ecx, dword [edi + 8]
push ecx
push ecx
fstp qword [esp]
push ebx
push ebx
push dword [ecx + 0x88]
call fcn.101a5632
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x10159744
mov ecx, dword [edi + 8]
cmp eax, dword [ecx + 8]
jae 0x10159744
lfence
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + eax*4]
test edx, edx
je 0x10159744
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [edx], ecx
mov dword [edx + 0x10], eax
test ecx, 0xe000000
jne 0x1015932f
mov eax, dword [edi + 0x64]
or eax, ecx
mov dword [edx], eax
mov eax, dword [edi + 0x30]
mov ecx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x38]
add ecx, 0x10
cmp dword [ebp - 0x48], 0
mov dword [edx + 0x14], eax
mov eax, dword [edi + 0x34]
mov edi, dword [ebp - 0x1c]
mov dword [edx + 0x18], eax
mov eax, dword [ecx]
mov dword [ebp - 0x20], ecx
mov dword [eax + esi*4], edi
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x3c]
je 0x1015936d
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x1c]
mov dword [edi + eax*4], ecx
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x1015938c
mov eax, dword [eax + 0x30]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x60]
mov dword [edx + 0x60], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x64]
mov dword [edx + 0x64], eax
cmp dword [edx + 0x30], 0xffffffff
je 0x101593c1
mov eax, dword [ecx]
mov esi, dword [ebp - 0x38]
mov ecx, dword [edi + 0x18]
mov eax, dword [eax + esi*4]
mov esi, dword [edx + 0x30]
mov dword [ecx + esi*4], eax
mov esi, dword [ebp - 0x3c]
cmp dword [edx + 0x60], ebx
jne 0x101593be
push dword [ebp - 0x1c]
push 0x1002f3a8
push ebx
push ebx
push edi
call fcn.1015c202
add esp, 0x14
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, esi
jae 0x101593f0
fld qword [ebp - 0x10]
jmp 0x1015929f
push 0x1002f15c
push ebx
push ebx
push edi
fstp st(0)
call fcn.1015c202
add esp, 0x10
mov eax, 0x80004005
jmp 0x10159749
mov eax, dword [ebp - 0x30]
mov edx, ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], eax
mov eax, dword [ecx]
mov ecx, edi
push ebx
push dword [eax + edx*4]
call fcn.1015a71a
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, esi
jb 0x101593fb
jmp 0x10159421
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp - 0x20], eax
test byte [edi + 0x14], 4
jne 0x101594e9
mov edx, dword [ebp - 0x30]
mov ecx, edx
call fcn.1018fa48
test eax, eax
jne 0x101594e9
mov ecx, ebx
mov dword [ebp - 0x1c], ecx
test esi, esi
je 0x1015947c
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov edx, dword [eax + ecx*4]
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edx*4]
test byte [eax], 0x40
jne 0x10159477
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push edx
call fcn.1015a3c4
mov ecx, dword [ebp - 0x1c]
test eax, eax
js 0x10159477
inc ecx
mov dword [ebp - 0x1c], ecx
cmp ecx, esi
jb 0x10159449
mov edx, dword [ebp - 0x30]
xor ebx, ebx
cmp ecx, esi
mov ecx, dword [ebp - 0x34]
jne 0x101594ec
mov eax, esi
and eax, 0xfffff
or eax, 0x10000000
mov dword [edx], eax
mov edx, ebx
mov eax, dword [ecx + 0xc]
mov dword [ecx + 4], eax
mov dword [ebp - 0x1c], edx
test esi, esi
je 0x101594ec
mov eax, dword [ebp - 0x20]
mov ecx, dword [edi + 8]
push ecx
push ecx
mov eax, dword [eax]
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.101a5632
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 8]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 8]
cmp dword [eax + edx*4], 0xffffffff
je 0x10159744
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, esi
jb 0x101594a0
jmp 0x101594ec
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov edx, 0x20500000
mov eax, dword [eax]
and eax, 0xfff00000
cmp eax, edx
ja 0x101595fb
je 0x101596df
cmp eax, 0x10000000
je 0x101595b9
cmp eax, 0x10100000
je 0x10159583
cmp eax, 0x20000000
je 0x101596df
cmp eax, 0x20100000
je 0x101596df
cmp eax, 0x20400000
jne 0x10159730
test esi, esi
je 0x10159730
mov eax, dword [edi + 8]
mov edx, dword [ecx + 8]
mov esi, dword [eax + 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov edi, dword [esi + eax*4]
mov eax, dword [ecx + 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]
and ecx, 2
or dword [edi], ecx
inc ebx
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
cmp ebx, dword [ebp - 0x3c]
jb 0x10159544
jmp 0x10159730
test esi, esi
je 0x10159730
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 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, esi
jb 0x1015958b
jmp 0x10159730
test esi, esi
je 0x10159730
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 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, esi
jb 0x101595c1
jmp 0x10159730
cmp eax, 0x20700000
je 0x101596df
cmp eax, 0x20800000
je 0x101596df
cmp eax, 0x30000000
je 0x10159681
cmp eax, 0x50000000
jne 0x10159730
mov eax, dword [edi + 8]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], edx
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x10159671
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], edx
lea edx, [edx + eax*4]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
mov ecx, dword [edi + eax*4]
mov eax, dword [edx]
mov ecx, dword [ecx]
mov eax, dword [edi + eax*4]
and ecx, dword [eax]
test cl, 2
je 0x1015966b
add edx, dword [ebp - 0x2c]
inc ebx
cmp ebx, esi
jb 0x1015964c
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp ebx, esi
jne 0x10159730
or dword [eax], 2
jmp 0x10159730
test esi, esi
je 0x10159730
mov eax, dword [edi + 8]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
mov edi, dword [eax + 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov eax, dword [edi + eax*4]
mov dword [ebp - 0x2c], 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 0x101596c6
mov eax, dword [ebp - 0x2c]
or dword [eax], 0x17
jmp 0x101596d1
test cl, 2
je 0x101596d1
mov eax, dword [ebp - 0x2c]
or dword [eax], 2
mov edi, dword [ebp - 0x28]
inc ebx
mov ecx, dword [ebp - 0x34]
cmp ebx, dword [ebp - 0x3c]
jb 0x10159689
jmp 0x10159730
test esi, esi
je 0x10159730
mov eax, dword [edi + 8]
mov edx, dword [ecx + 8]
mov esi, dword [eax + 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4]
mov eax, dword [esi + eax*4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 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 0x1015971c
mov eax, dword [ebp - 0x2c]
or dword [eax], 0x17
jmp 0x10159727
test cl, 2
je 0x10159727
mov eax, dword [ebp - 0x2c]
or dword [eax], 2
mov ecx, dword [ebp - 0x34]
inc ebx
cmp ebx, dword [ebp - 0x3c]
jb 0x101596e3
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x40]
mov dword [ecx + 0x3c], eax
mov eax, dword [edi + 0x38]
mov dword [ecx + 0x38], eax
jmp 0x10158f09
mov eax, 0x8007000e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101b9e50
leave
ret 0x18