Function at 0x100a15b
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov edx, dword [0x10017dc]
push ebx
push esi
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x218]
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x428], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x424]
mov dword [ebp - 0x634], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x630]
and dword [ebp - 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x21c]
test eax, eax
je 0x100a22a
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x21c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_CharPrevW]
cmp word [eax], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x100a20a
lea eax, [ebp - 0x21c]
push 0x10017cc
push eax
call esi
lea eax, [ebp - 0x21c]
push 0x10026bc
push eax
call esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100a231
xor eax, eax
jmp 0x100a36e
lea eax, [ebp - 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
lea eax, [ebp - 0x428]
push 0x20a
mov ebx, 0x1001804
push eax
push ebx
mov edi, 0x10026b0
push 0x1002698
push edi
call esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x634]
push 0x20a
push eax
push ebx
push 0x1002678
push edi
call esi
mov eax, dword [0x100e018]
push 1
pop esi
mov eax, dword [eax + 0x78]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x100e018]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0x21c]
mov eax, dword [eax + 0x78]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
xor ebx, ebx
cmp dword [ebp - 8], ebx
je 0x100a2b5
call fcn.010075fc
jmp 0x100a36b
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100a2dd
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x10025fc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 4], ebx
je 0x100a36b
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push eax
push 4
push ebx
push 0x10025dc
push dword [ebp - 4]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x428]
push eax
call edi
shl eax, 1
push eax
lea eax, [ebp - 0x428]
push eax
push 1
push ebx
push 0x10025c8
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x634]
push eax
call edi
shl eax, 1
push eax
lea eax, [ebp - 0x634]
push eax
push 1
push ebx
push 0x10025a8
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret