Function at 0x1001035d
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004603d
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x10055060]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push esi
push edi
mov eax, dword [0x10055060]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x14], eax
lea eax, [esi + 4]
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
lea edi, [esi + 0x94]
mov dword [esp + 0x4c0], ebx
call fcn.10012989
or dword [esp + 0x4c0], 0xffffffff
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, 0x103
push edi
lea eax, [esp + 0x3a9]
push ebx
push eax
mov byte [esp + 0x3b0], bl
call fcn.10030bf0
add esp, 0xc
push 0x104
lea eax, [esp + 0x3a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
lea eax, [esp + 0x99]
push ebx
push eax
mov byte [esp + 0xa0], bl
call fcn.10030bf0
add esp, 0xc
lea eax, [esp + 0x94]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], 0x10
jb 0x10010452
mov eax, dword [eax + 4]
jmp 0x10010455
add eax, 4
push eax
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x74]
push eax
call fcn.100123d2
xor edi, edi
inc edi
push str.username
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c4], edi
call fcn.10004ef5
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x4c8], 2
call fcn.10012408
push 0xffffffffffffffff
push ebx
push dword [esp + 0x24]
mov ecx, eax
call fcn.100057ba
push ebx
push edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c8], 1
call fcn.100058ba
push str.password
lea ecx, [esp + 0x28]
call fcn.10004ef5
push dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x4c8], 3
call fcn.10027ec9
pop ecx
pop ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x4c8], 4
call fcn.10012408
push 0xffffffffffffffff
push ebx
push dword [esp + 0x1c]
mov ecx, eax
call fcn.100057ba
push ebx
push edi
lea ecx, [esp + 0x48]
call fcn.100058ba
push ebx
push edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c8], 1
call fcn.100058ba
sub esp, 0x20
mov eax, esp
mov dword [esp + 0x40], esp
push eax
lea ecx, [esp + 0x98]
call fcn.100124d4
lea eax, [esp + 0xb4]
push eax
push edi
lea eax, [esp + 0x84]
push eax
mov ecx, esi
call fcn.1000f74d
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x4c4], 5
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100105ab
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100105ab
push 0x104
lea eax, [esp + 0x98]
push eax
push 0x100591a0
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push str.uuid:
lea ecx, [esp + 0x28]
call fcn.10004ef5
lea eax, [esp + 0x5c]
push eax
mov edx, str.data
mov byte [esp + 0x4c4], 6
call fcn.1001e245
push eax
lea ecx, [esp + 0x28]
call fcn.10009e68
pop ecx
push ebx
push edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1b], al
mov byte [esp + 0x4c8], 5
call fcn.100058ba
cmp byte [esp + 0x13], bl
je 0x1001074f
lea eax, [esp + 0x5c]
push eax
mov edx, str.data
call fcn.1001e245
push eax
mov edx, str.uuid
call fcn.1001e245
push eax
lea ecx, [esp + 0x44]
call fcn.1001d4f8
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x5c]
push eax
mov byte [esp + 0x4cc], 7
call fcn.100057ba
push ebx
push edi
lea ecx, [esp + 0x48]
mov byte [esp + 0x4c8], 5
call fcn.100058ba
cmp dword [esi + 0x70], ebx
je 0x1001074f
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
xor eax, eax
push 0x206
mov word [esp + 0x1a0], ax
lea eax, [esp + 0x1a2]
push ebx
push eax
call fcn.10030bf0
add esp, 0xc
lea edi, [esp + 0x19c]
call fcn.10015b15
cmp word [esp + 0x19c], bx
je 0x1001074c
mov eax, edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.projonepodrive
push eax
call edi
add esi, 0x1c
lea eax, [esp + 0x40]
push esi
push eax
call fcn.100012fa
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x100106bc
mov eax, dword [eax + 4]
jmp 0x100106bf
add eax, 4
push eax
lea eax, [esp + 0x1a0]
push eax
call edi
push ebx
push 1
lea esi, [esp + 0x48]
call fcn.10005a92
push str.cache
lea eax, [esp + 0x1a0]
push eax
call edi
mov eax, dword [esp + 0x18]
add eax, 0x5c
cmp dword [eax + 0x18], 0x10
jb 0x100106f7
mov eax, dword [eax + 4]
jmp 0x100106fa
add eax, 4
push eax
push str._hs.did
lea ecx, [esp + 0x48]
call fcn.1001573d
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x10010716
mov eax, dword [eax + 4]
jmp 0x10010719
add eax, 4
push eax
lea eax, [esp + 0x1a0]
push eax
call edi
push ebx
push 1
lea esi, [esp + 0x48]
call fcn.10005a92
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x19c]
push eax
lea eax, [esi + 0x78]
push eax
call fcn.100059f0
mov ecx, esi
call fcn.1000fc4a
xor edi, edi
inc edi
push str.code
lea ecx, [esp + 0x28]
call fcn.10004ef5
lea eax, [esp + 0x24]
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x64]
mov byte [esp + 0x4c8], 8
call fcn.100014ba
pop ecx
pop ecx
neg eax
sbb al, al
push ebx
inc al
push edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1b], al
call fcn.100058ba
cmp byte [esp + 0x13], bl
je 0x1001079b
mov byte [esi + 0xb4], 1
mov bl, 1
lea esi, [esp + 0x5c]
mov byte [esp + 0x4c0], 1
call fcn.1001d30a
or dword [esp + 0x4c0], 0xffffffff
lea eax, [esp + 0x74]
push eax
call fcn.1001257e
mov al, bl
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.1002c8b3
mov esp, ebp
pop ebp
ret 8