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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x1012288]
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor esi, esi
mov edx, 0x81
mov dword [ebp - 0x210], esi
mov ecx, edx
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x628], esi
mov ecx, edx
lea edi, [ebp - 0x624]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x41c], esi
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x418]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x630], esi
stosw word es:[edi], ax
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x210]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_CharPrevW]
cmp word [eax], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x100bcb3
push 0x1001b64
lea eax, [ebp - 0x210]
push eax
call edi
push 0x10029a8
lea eax, [ebp - 0x210]
push eax
call edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100bcda
xor eax, eax
jmp 0x100be3b
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x628]
push eax
push 0x1001774
push 0x1002990
mov ebx, 0x1002984
push ebx
call edi
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x41c]
push eax
push 0x1001774
push 0x1002964
push ebx
call edi
mov eax, dword [0x1011030]
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
xor esi, esi
inc esi
push esi
push eax
call dword [ecx + 0x2c]
mov eax, dword [0x1011030]
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x630]
push edx
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0x1c]
xor ebx, ebx
cmp dword [ebp - 0x630], ebx
je 0x100bd60
call fcn.01009487
jmp 0x100be37
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x634], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100bd91
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x62c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x10028e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x62c], ebx
je 0x100be37
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x634]
push eax
push 4
push ebx
push 0x10028c8
push dword [ebp - 0x62c]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x628]
push eax
call edi
shl eax, 1
push eax
lea eax, [ebp - 0x628]
push eax
push 1
push ebx
push 0x10028b4
push dword [ebp - 0x62c]
call esi
lea eax, [ebp - 0x41c]
push eax
call edi
shl eax, 1
push eax
lea eax, [ebp - 0x41c]
push eax
push 1
push ebx
push 0x1002894
push dword [ebp - 0x62c]
call esi
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100ecf8
leave
ret