Function at 0x10050170
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015475a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x101a154c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
lea ecx, [esi + 8]
xor edi, edi
push dword [eax + 0x58]
push dword [esi + 0x10]
push str._s_bg__d.png
push ecx
call fcn.1001ad60
mov eax, dword [esi]
lea ecx, [esi + 0xc]
mov dword [ebp - 0x14], ecx
push dword [eax + 0x58]
push dword [esi + 0x10]
push str._s_btn__d.png
push ecx
call fcn.1001ad60
add esp, 0x20
push dword [esi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
mov eax, dword [ebp - 0x14]
push dword [eax]
call esi
mov eax, dword [ebp + 8]
sub eax, 1
je 0x10050493
sub eax, 1
je 0x10050350
sub eax, 1
jne 0x10050637
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
cmp dword [esi + 0x48], edi
je 0x10050637
cmp dword [esi + 0x54], edi
je 0x10050637
mov edi, eax
xorps xmm0, xmm0
push 0x20
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [edi + 0x14]
mov dword [ebp + 8], eax
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x10050252
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.10018e20
jmp 0x10050254
xor eax, eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10018770
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + 8]
push 0x7530
push eax
push dword [esi + 0x48]
mov dword [ebp - 4], 9
call fcn.10019cf0
test eax, eax
je 0x1005060d
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x100502ca
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100502ca
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100502ca
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
xorps xmm0, xmm0
mov edi, dword [edi + 0x14]
push 0x20
mov dword [ebp + 8], eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x10050305
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.10018e20
jmp 0x10050307
xor eax, eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10018770
mov eax, dword [ebp + 8]
push edi
push 0x7530
push dword [ebp - 0x14]
mov dword [ebp - 4], 0xb
push dword [eax + 0x54]
jmp 0x100505d1
test edi, edi
je 0x10050635
jmp 0x10050617
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
cmp dword [esi + 0x44], edi
je 0x10050637
cmp dword [esi + 0x50], edi
je 0x10050637
mov edi, eax
xorps xmm0, xmm0
push 0x20
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [edi + 0x14]
mov dword [ebp + 8], eax
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x100503a2
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.10018e20
jmp 0x100503a4
xor eax, eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10018770
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + 8]
push 0x7530
push eax
push dword [esi + 0x44]
mov dword [ebp - 4], 5
call fcn.10019cf0
test eax, eax
je 0x1005060d
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1005041a
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1005041a
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1005041a
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
xorps xmm0, xmm0
mov edi, dword [edi + 0x14]
push 0x20
mov dword [ebp + 8], eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x10050455
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.10018e20
jmp 0x10050457
xor eax, eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10018770
mov eax, dword [ebp + 8]
push edi
push 0x7530
push dword [ebp - 0x14]
mov dword [ebp - 4], 7
push dword [eax + 0x50]
jmp 0x100505d1
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
cmp dword [esi + 0x40], edi
je 0x10050637
cmp dword [esi + 0x4c], edi
je 0x10050637
mov edi, eax
xorps xmm0, xmm0
push 0x20
movlpd qword [ebp - 0x1c], xmm0
mov eax, dword [edi + 0x14]
mov dword [ebp + 8], eax
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x100504e5
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.10018e20
jmp 0x100504e7
xor eax, eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10018770
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + 8]
push 0x7530
push eax
push dword [esi + 0x40]
mov dword [ebp - 4], 1
call fcn.10019cf0
test eax, eax
je 0x1005060d
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1005055d
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1005055d
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1005055d
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
xorps xmm0, xmm0
mov edi, dword [edi + 0x14]
push 0x20
mov dword [ebp + 8], eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.100f8c40
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x10050598
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.10018e20
jmp 0x1005059a
xor eax, eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10018770
mov eax, dword [ebp + 8]
push edi
push 0x7530
push dword [ebp - 0x14]
mov dword [ebp - 4], 3
push dword [eax + 0x4c]
mov ecx, dword [ebp - 0x1c]
call fcn.10019cf0
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x10050343
test edi, edi
je 0x10050606
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10050606
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10050606
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, 1
jmp 0x10050637
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x10050635
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10050635
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10050635
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4