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

Disassembly:
mov eax, 0x100ed588
call fcn.100c908c
sub esp, 0x6c
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
push dword [ebp + 0x1c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], ebx
call fcn.10098f72
mov byte [ebp - 0xe], al
lea eax, [ebp - 0x14]
push eax
push 0x100fa254
push 0x17
push ebx
push 0x100fab10
mov dword [edi + 0x4c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov eax, dword [ebp - 0x14]
jl 0x1009a275
cmp eax, ebx
je 0x1009a275
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x10099d18
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov byte [ebp - 0xd], 1
sar ecx, 2
test ecx, ecx
ja 0x10099d1b
mov byte [ebp - 0xd], bl
push 0x101519f8
lea ecx, [ebp - 0x18]
call fcn.1007170f
mov al, byte [ebp - 0xe]
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0xf], al
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x44], 7
call fcn.100023f7
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov esi, 0x1010d92c
cmp byte [ebp + 0x14], bl
je 0x10099f9f
lea ecx, [ebp - 0x28]
call fcn.10009e15
mov byte [ebp - 4], 3
cmp byte [ebp - 0xe], bl
je 0x10099f59
lea eax, [ebp - 0x30]
push eax
call fcn.10060f33
mov eax, dword [ebp - 0x30]
push dword [eax - 0xc]
mov byte [ebp - 4], 4
push eax
push dword [ebp + 0xc]
call fcn.100cc170
add esp, 0x10
test eax, eax
jne 0x10099f4a
push dword [ebp + 0x1c]
lea eax, [ebp - 0x2c]
push dword [ebp + 0x18]
mov ecx, edi
push eax
mov byte [ebp - 0x10], 1
call fcn.1009896b
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.1000688b
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.10003f60
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.10009e15
push str..transformed
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 6
call fcn.10006fb9
add esp, 0xc
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
mov byte [ebp - 4], 8
call fcn.10003f60
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push esi
call fcn.10009e15
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push dword [ebp + 0xc]
mov byte [ebp - 4], 9
call fcn.10009e15
mov byte [ebp - 4], 8
call fcn.10062265
add esp, 8
mov ecx, esp
mov dword [ebp - 0x2c], esp
push esi
mov edi, eax
call fcn.10009e15
push ebx
push ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xa
call fcn.1000548f
mov byte [ebp - 4], 8
call fcn.10062265
add esp, 0xc
cmp edi, ebx
mov dword [ebp - 0x1c], eax
jle 0x10099e61
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10099e61
xor edi, edi
cmp dword [ebp - 0x1c], ebx
jle 0x10099e76
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10099e76
mov dword [ebp - 0x1c], ebx
cmp edi, ebx
je 0x10099f3c
cmp edi, dword [ebp - 0x1c]
jg 0x10099f3c
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x1c]
mov dword [ebp - 0x2c], ebx
call fcn.100990eb
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x10099f3c
cmp eax, dword [ebp - 0x1c]
jg 0x10099f3c
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push esi
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push esi
mov byte [ebp - 4], 0xb
call fcn.10009e15
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push str..params
push eax
push ecx
mov byte [ebp - 4], 0xd
call fcn.10006fb9
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xe
call fcn.10061f03
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x10
call fcn.10003f60
push dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call fcn.10004959
test eax, eax
jne 0x10099f31
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000688b
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xd], bl
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10003f60
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.10003f60
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], esp
mov ecx, esp
push eax
call fcn.1000548f
lea eax, [ebp - 0x78]
push eax
call fcn.10097821
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x11
call fcn.10002208
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.100022b8
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.10003f60
jmp 0x10099fa7
lea ecx, [ebp - 0x5c]
call fcn.1000229b
cmp dword [ebp - 0x48], ebx
jne 0x10099fe1
mov esi, dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0x10], bl
push ebx
sete al
push 1
lea ecx, [ebp - 0x5c]
lea eax, [eax*8 - 0x6e]
mov dword [edi + 0x4c], eax
mov dword [esi], ebx
call fcn.100022b8
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10003f60
mov eax, dword [ebp - 0x14]
jmp 0x1009a281
cmp byte [ebp - 0xd], bl
je 0x10099ff4
push dword [ebp + 0x18]
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.100997b5
cmp dword [ebp - 0x44], 8
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x58]
jae 0x1009a003
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp + 0x18]
call fcn.10004905
mov eax, dword [eax]
mov byte [ebp - 4], 0x12
cmp eax, ebx
je 0x1009a01a
mov eax, dword [eax]
jmp 0x1009a01c
xor eax, eax
mov ecx, dword [edi]
lea edx, [ebp - 0x34]
push edx
push eax
push edi
call dword [ecx + 0x104]
mov ecx, dword [ebp + 0x18]
mov edi, eax
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x1009a03c
call fcn.100050b9
cmp dword [ebp - 0x14], ebx
je 0x1009a21a
cmp byte [ebp - 0xf], bl
je 0x1009a21a
push 0x101519f8
lea ecx, [ebp + 0x18]
call fcn.1007170f
mov byte [ebp - 4], 0x13
cmp byte [ebp + 0x14], bl
je 0x1009a0a3
push dword [ebp + 0xc]
lea ecx, [ebp + 0x18]
call fcn.10006a3d
push 0x5c
lea ecx, [ebp + 0x18]
call fcn.1007164b
inc eax
push eax
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp + 0x18]
call fcn.1000ec2c
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x14
call fcn.1000688b
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x13
call fcn.10003f60
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp + 0x18]
mov dword [ebp + 0x14], esp
mov ecx, esp
push eax
call fcn.1000548f
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
call fcn.10099aad
mov edi, eax
cmp byte [ebp - 0x10], bl
je 0x1009a20f
push dword [ebp + 0xc]
lea ecx, [ebp + 0x1c]
call fcn.10009e15
push str..transformed
push eax
lea eax, [ebp + 0x14]
push eax
mov byte [ebp - 4], 0x15
call fcn.10006fb9
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x17
call fcn.10003f60
cmp edi, ebx
jl 0x1009a1d1
push ecx
lea eax, [ebp + 0x14]
mov dword [ebp - 0x40], esp
mov ecx, esp
push eax
call fcn.1000548f
push ecx
mov dword [ebp - 0x40], esp
mov ecx, esp
push dword [ebp - 0x14]
call fcn.10003eee
call fcn.100980bc
pop ecx
pop ecx
cmp al, bl
je 0x1009a1c8
lea eax, [ebp - 0x38]
push eax
call fcn.100c921c
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
call fcn.10009e15
push dword [ebp - 0x38]
lea eax, [ebp + 0x14]
push ecx
mov dword [ebp - 0x3c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x18
call fcn.1000548f
mov byte [ebp - 4], 0x17
call fcn.10062441
pop ecx
pop ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push esi
call fcn.10009e15
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x3c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x19
call fcn.1000548f
push dword [ebp + 0xc]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1a
call fcn.10009e15
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str..params
push eax
push ecx
mov byte [ebp - 4], 0x1b
call fcn.10006fb9
add esp, 0xc
mov byte [ebp - 4], 0x1c
call fcn.1006210c
mov ecx, dword [ebp - 0x30]
add esp, 0xc
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x17
call fcn.10003f60
jmp 0x1009a1cd
mov edi, 0x80004005
cmp edi, ebx
jge 0x1009a204
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
call fcn.10009e15
push ecx
lea eax, [ebp + 0x14]
mov dword [ebp - 0x40], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0x1d
call fcn.1000548f
mov byte [ebp - 4], 0x17
call fcn.100616bb
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.10003f60
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.100022b8
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10003f60
cmp edi, ebx
jl 0x1009a25b
cmp word [ebp - 0x34], bx
je 0x1009a25b
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.10003eee
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x1009a256
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
jmp 0x1009a291
mov ecx, dword [ebp - 0x24]
xor eax, eax
cmp byte [ebp + 0x10], bl
sete al
lea eax, [eax*8 - 0x6e]
mov dword [ecx + 0x4c], eax
mov eax, dword [ebp - 0x14]
jmp 0x1009a27c
mov dword [edi + 0x4c], 0xffffff9b
mov esi, dword [ebp + 8]
mov dword [esi], ebx
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x1009a28f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18