Function at 0x10015250
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005eb4b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x100816f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x30]
inc dword [esi + 0x3c]
call fcn.1000a0a0
push eax
push dword [esi + 0x3c]
push str.start_run_next_running_taskid_d__picture_info_count_d
call fcn.100133d0
mov ecx, dword [esi + 0x2c]
add esp, 0xc
test ecx, ecx
je 0x100152ae
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [esi + 0x2c], 0
mov ecx, dword [esi + 0x30]
mov edi, dword [esi + 0x3c]
call fcn.1000a0a0
cmp edi, eax
jge 0x1001566a
mov ecx, dword [esi + 0x30]
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.1000a000
mov eax, dword [ebp - 0x220]
mov dword [ebp - 4], 0
test eax, eax
jne 0x100152f4
push str.CPictureSerialRunner::StartNext_spPictureInfo__NULL
call fcn.100133d0
add esp, 4
jmp 0x10015622
mov eax, dword [eax + 0x28]
cmp dword [esi + 0x34], eax
jle 0x1001530e
push str.CPictureSerialRunner::StartNext_m_nLocalPercent_too_big
call fcn.100133d0
add esp, 4
jmp 0x10015622
sub esp, 8
mov ecx, esp
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x1001532e
lock inc dword [eax + 4]
mov eax, dword [ebp - 0x220]
mov dword [ecx], eax
mov eax, dword [ebp - 0x21c]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x30]
call fcn.1000d9e0
test eax, eax
je 0x1001535d
push str.CPictureSerialRunner::StartNext_FindReferNoTipsKey
call fcn.100133d0
add esp, 4
jmp 0x10015622
mov eax, dword [ebp - 0x220]
mov ecx, dword [esi + 0x30]
add eax, 0x40
push eax
call fcn.1000a960
mov ecx, eax
call fcn.1001a670
test eax, eax
mov eax, dword [ebp - 0x220]
je 0x10015395
push dword [eax + 0x40]
push str.CPictureSerialRunner::StartNext_HasSpreadIdPictureInfo_spreadid_s
call fcn.100133d0
add esp, 8
jmp 0x10015622
mov edx, dword [eax + 0x24]
mov ecx, dword [esi + 0x50]
mov eax, dword [esi + 0x4c]
cmp eax, ecx
je 0x100153c4
cmp dword [eax], edx
je 0x100153ad
add eax, 4
cmp eax, ecx
jne 0x100153a2
cmp eax, ecx
je 0x100153c4
push edx
push str.CPictureSerialRunner::StartNext_HasRunPictureId_taskid_d
call fcn.100133d0
add esp, 8
jmp 0x10015622
push dword [esi + 0x38]
call fcn.100059f0
mov eax, dword [esi + 0x38]
add esp, 4
cmp dword [eax - 0xc], 0
lea edx, [eax - 0x10]
mov ecx, dword [edx]
mov dword [ebp - 0x224], ecx
je 0x1001542e
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x10015407
cmp dword [eax - 8], 0
jl 0x100156c7
mov dword [eax - 0xc], 0
xor ecx, ecx
mov eax, dword [esi + 0x38]
mov word [eax], cx
jmp 0x1001542e
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1001541b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x224]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x38], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10037240
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [esi + 0x38]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x1001547d
push 0x104
lea ecx, [esi + 0x38]
call fcn.100035f0
mov edx, dword [esi + 0x38]
cmp dword [edx - 8], 0x104
jl 0x100156c7
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [esi + 0x38]
push edx
push ecx
push str.popimg
mov word [eax + 0x208], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x100154bc
xor ecx, ecx
jmp 0x100154d2
push dword [eax - 8]
push eax
call fcn.1003c692
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x100156c7
mov eax, dword [esi + 0x38]
cmp ecx, dword [eax - 8]
jg 0x100156c7
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi + 0x38]
mov word [eax + ecx*2], dx
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x10083504]
test ecx, ecx
jne 0x10015575
push 0x100800a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10083504], 0
jne 0x10015564
push 0x1c
call fcn.1002bae2
mov ecx, eax
add esp, 4
mov dword [ebp - 0x224], ecx
test ecx, ecx
je 0x10015556
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
jmp 0x10015558
xor ecx, ecx
xchg dword [ebp - 0x228], eax
mov dword [0x10083504], ecx
push 0x100800a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x10083504]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x100155a6
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov edi, eax
test edi, edi
je 0x100155a8
mov eax, dword [edi]
mov ecx, edi
push 0
push str.ungzip
call dword [eax + 0x30]
mov eax, dword [edi]
mov ecx, edi
push 0
push str.gzip
call dword [eax + 0x30]
jmp 0x100155a8
xor edi, edi
mov dword [esi + 0x2c], edi
test edi, edi
je 0x10015622
mov eax, dword [edi]
mov ecx, edi
push dword [esi + 0x38]
call dword [eax + 0x28]
mov ecx, dword [esi + 0x2c]
push esi
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x100155d5
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
mov dword [esi + 0x44], eax
mov edi, dword [esi + 0x48]
mov dword [esi + 0x48], ecx
test edi, edi
je 0x10015609
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x10015609
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x10015609
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [esi + 0x2c]
mov eax, dword [ebp - 0x220]
mov edx, dword [ecx]
push dword [eax + 0x14]
push 0
mov eax, dword [edx + 4]
call eax
test eax, eax
jne 0x1001569a
inc dword [esi + 0x3c]
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10015657
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x10015657
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x10015657
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [esi + 0x30]
mov edi, dword [esi + 0x3c]
call fcn.1000a0a0
cmp edi, eax
jl 0x100152c1
push str.No_picture_task_to_run__clear_picture_info.
call fcn.100133d0
mov ecx, dword [esi + 0x30]
add esp, 4
call fcn.10009270
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002be91
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x21c]
test esi, esi
je 0x1001567f
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1001567f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1001567f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
jmp 0x1001567f
push 0x80070057
call fcn.100031a0
int3