Function at 0x100020f0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10007175
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa8
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa0], edi
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
call fcn.10001720
test al, al
je 0x10002614
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10002192
cmp dword [ebp - 0x20], 0xf
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 0x65
mov byte [ebp - 0x9c], 0x54
mov byte [ebp - 0x89], al
mov cl, 0x60
xor al, byte [ebp - 0x9c]
mov dl, 0x6c
mov byte [ebp - 0x9b], al
mov ah, 0x66
mov al, byte [ebp - 0x9c]
mov ch, 0x67
xor cl, al
mov byte [ebp - 0x94], 0
xor dl, al
mov byte [ebp - 0x9a], cl
xor ah, al
mov byte [ebp - 0x99], dl
xor ch, al
mov byte [ebp - 0x98], ah
mov dh, 0x64
mov byte [ebp - 0x8d], 0
xor dh, al
mov byte [ebp - 0x97], ch
mov al, byte [ebp - 0x89]
mov dl, 0x70
xor al, byte [ebp - 0x9c]
mov cl, 0x19
mov byte [ebp - 0x95], al
xor cl, dl
mov al, 0x55
mov byte [ebp - 0x96], dh
xor al, dl
mov byte [ebp - 0x94], 0
mov byte [ebp - 0x8f], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x90], dl
push eax
lea eax, [ebp - 0x9b]
mov byte [ebp - 0x8e], cl
push eax
mov byte [ebp - 0x8d], 0
call fcn.10001050
mov esi, dword [ebp - 0x1c]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, esi
cmp dword [0x1000c424], eax
jne 0x10002614
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x20], 0xf
lea edx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0xa8], 0
cmova edx, dword [ebp - 0x34]
mov ecx, edx
mov dword [ebp - 0xa4], 0
movups xmmword [ebp - 0xb8], xmm0
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100022a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb8]
call fcn.10005af0
cmp dword [ebp - 0xa4], 0xf
lea ecx, [ebp - 0x88]
lea eax, [ebp - 0xb8]
cmova eax, dword [ebp - 0xb8]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
mov ecx, dword [ebp - 0xa4]
add esp, 8
cmp ecx, 0xf
jbe 0x10002317
mov edx, dword [ebp - 0xb8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000230d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000230d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100063e7
add esp, 8
cmp dword [ebp - 0x20], 0xf
lea ecx, [ebp - 0x34]
mov edx, dword [ebp - 0x24]
jbe 0x1000232a
mov esi, dword [ebp - 0x34]
add edx, esi
jmp 0x1000232f
add edx, ecx
lea esi, [ebp - 0x34]
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x4c], xmm0
cmp esi, edx
jne 0x10002353
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
jmp 0x10002465
sub edx, esi
mov eax, 7
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x38], eax
cmp edx, 0x7ffffffe
ja 0x10002675
cmp edx, eax
jbe 0x1000241c
mov eax, edx
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x10002393
mov ecx, 0x7fffffff
mov dword [ebp - 0x90], 0x7ffffffe
add ecx, ecx
jmp 0x100023bc
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x90], eax
lea ecx, [eax + 1]
cmp ecx, 0x7fffffff
ja 0x1000267a
add ecx, ecx
cmp ecx, 0x1000
jb 0x100023f2
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x1000267a
push eax
call fcn.100063b7
add esp, 4
test eax, eax
je 0x10002641
mov edx, dword [ebp - 0x1c]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], eax
jmp 0x1000241f
test ecx, ecx
je 0x10002412
push ecx
call fcn.100063b7
mov edx, dword [ebp - 0x1c]
mov ecx, eax
mov eax, dword [ebp - 0x90]
add esp, 4
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], eax
jmp 0x1000241f
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], ecx
jmp 0x1000241f
mov ecx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0xa0]
cmp eax, 7
lea eax, [ebp - 0x4c]
cmova eax, ecx
mov dword [ebp - 0x1c], eax
mov ecx, eax
test edx, edx
je 0x10002459
mov edi, edx
nop dword [eax]
movsx ax, byte [esi]
lea ecx, [ecx + 2]
lea esi, [esi + 1]
mov word [ecx - 2], ax
sub edi, 1
jne 0x10002440
mov edi, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x3c], edx
mov word [eax + edx*2], cx
mov dh, 0x63
mov byte [ebp - 4], 1
mov al, 0x27
mov byte [ebp - 0x16], 0
mov cl, 0x35
mov byte [ebp - 0x1c], dh
mov dl, 0x11
mov byte [ebp - 0x16], 0
mov ah, 0x25
mov ch, 0x57
xor al, dh
xor cl, dh
xor dl, dh
mov byte [ebp - 0x1b], al
xor ah, dh
mov byte [ebp - 0x1a], cl
xor ch, dh
mov byte [ebp - 0x19], dl
push 0x2000
mov byte [ebp - 0x18], ah
mov byte [ebp - 0x17], ch
call fcn.100063f5
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1b]
push 0x1000
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x38], 7
lea edx, [ebp - 0x4c]
push esi
cmova edx, dword [ebp - 0x4c]
call fcn.10001f60
mov esi, eax
mov dword [ebp - 0xa0], esi
test esi, esi
je 0x100024ef
push 0
lea eax, [ebp - 0x50]
push eax
push 0
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x1000250a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 4
add edi, ecx
mov dword [edi], eax
mov byte [ebp - 0x89], 0
jmp 0x100025c8
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [edi]
push esi
push 1
push 0x50
call fcn.10001e20
mov edx, dword [edi]
push esi
push 0
push 0x51
call fcn.10001e20
push dword [edi]
mov esi, dword [sym.imp.USER32.dll_GetParent]
call esi
test eax, eax
je 0x1000254d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi]
call esi
push eax
mov dword [edi], eax
call esi
test eax, eax
jne 0x10002538
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [ebp - 0xa0]
mov edx, dword [edi]
push esi
push 1
push 0x50
call fcn.10001e20
mov edx, dword [edi]
push esi
push 0
push 0x51
call fcn.10001e20
push 0
lea eax, [ebp - 0x54]
push eax
push 0
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x100025ad
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x50]
je 0x100025a3
push 2
lea eax, [ebp - 0x50]
push eax
push 0
push 0x5a
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x100025ad
push esi
call fcn.10001c30
test al, al
jne 0x100025c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 4
mov dword [edi], eax
mov byte [ebp - 0x89], 0
jmp 0x100025c8
mov byte [ebp - 0x89], 1
mov ecx, dword [ebp - 0x38]
cmp ecx, 7
jbe 0x100025fe
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100025f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002641
push ecx
push edx
call fcn.100063e7
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
jmp 0x1000261b
mov byte [ebp - 0x89], 0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x10002651
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10002647
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10002647
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100063e7
add esp, 8
mov al, byte [ebp - 0x89]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100061d2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100011d0
call fcn.10001130
int3