Function at 0x10050200
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101499ea
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x1019646c]
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.1001a680
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.1001a680
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 0x10050523
sub eax, 1
je 0x100503e0
sub eax, 1
jne 0x100506c7
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
cmp dword [esi + 0x48], edi
je 0x100506c7
cmp dword [esi + 0x54], edi
je 0x100506c7
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.100f5bec
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 8
test eax, eax
je 0x100502e2
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.100188e0
jmp 0x100502e4
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.10018230
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.10019720
test eax, eax
je 0x1005069d
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1005035a
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1005035a
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x1005035a
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.100f5bec
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x10050395
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.100188e0
jmp 0x10050397
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.10018230
mov eax, dword [ebp + 8]
push edi
push 0x7530
push dword [ebp - 0x14]
mov dword [ebp - 4], 0xb
push dword [eax + 0x54]
jmp 0x10050661
test edi, edi
je 0x100506c5
jmp 0x100506a7
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
cmp dword [esi + 0x44], edi
je 0x100506c7
cmp dword [esi + 0x50], edi
je 0x100506c7
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.100f5bec
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x10050432
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.100188e0
jmp 0x10050434
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.10018230
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.10019720
test eax, eax
je 0x1005069d
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x100504aa
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100504aa
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100504aa
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.100f5bec
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 6
test eax, eax
je 0x100504e5
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.100188e0
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.10018230
mov eax, dword [ebp + 8]
push edi
push 0x7530
push dword [ebp - 0x14]
mov dword [ebp - 4], 7
push dword [eax + 0x50]
jmp 0x10050661
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
cmp dword [esi + 0x40], edi
je 0x100506c7
cmp dword [esi + 0x4c], edi
je 0x100506c7
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.100f5bec
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10050575
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.100188e0
jmp 0x10050577
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.10018230
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.10019720
test eax, eax
je 0x1005069d
mov ecx, dword [ebp - 0x18]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x100505ed
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x100505ed
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, esi
lock xadd dword [ecx + 8], eax
jne 0x100505ed
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.100f5bec
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x10050628
xorps xmm0, xmm0
mov ecx, eax
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
call fcn.100188e0
jmp 0x1005062a
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.10018230
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.10019720
mov edi, dword [ebp - 0x18]
test eax, eax
je 0x100503d3
test edi, edi
je 0x10050696
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10050696
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10050696
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, 1
jmp 0x100506c7
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x100506c5
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100506c5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x100506c5
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