Function at 0x100ea2c
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
or dword [ebp - 8], 0xffffffff
push ebx
push esi
xor ebx, ebx
cmp dword [0x10384e0], ebx
mov esi, 0x104
push edi
mov dword [ebp - 0xc], esi
je 0x100ea51
mov dword [ebp + 0xc], ebx
lea eax, [ebp - 0x27c]
push 0xc
push eax
push dword [ebp + 8]
call fcn.0100e587
lea eax, [ebp - 0x27c]
push 0x2e
push eax
call fcn.01007890
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test eax, eax
jne 0x100ea88
lea eax, [ebp - 0x27c]
push 0x1001e08
push eax
call edi
lea eax, [ebp - 0x178]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x178]
push eax
call fcn.0100e8ae
push esi
lea eax, [ebp - 0x178]
push dword [ebp + 8]
push eax
call fcn.0100dbba
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [ebp - 0x178]
push eax
call esi
cmp eax, 0xffffffff
lea eax, [ebp - 0x178]
push eax
jne 0x100eb89
push dword [ebp + 8]
call fcn.0100dd15
test eax, eax
jne 0x100eb82
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x10019c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100eb2b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x27c]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x100eb58
lea eax, [ebp - 0x178]
push 1
push eax
call fcn.0100e9b8
lea eax, [ebp - 0x178]
push eax
call fcn.0100e8ae
lea eax, [ebp - 0x178]
push 0x1001e10
push eax
call edi
lea eax, [ebp - 0x178]
push eax
call fcn.0100e8ae
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x178]
push eax
call edi
lea eax, [ebp - 0x178]
push eax
call esi
cmp eax, 0xffffffff
je 0x100eb93
lea eax, [ebp - 0x178]
push eax
call fcn.0100e505
jmp 0x100eca7
cmp dword [ebp + 0xc], ebx
je 0x100ebff
push 1
pop edi
push dword [ebp + 8]
mov dword [0x10384e0], edi
push 0xe
call fcn.01023cda
push eax
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x103a71c]
add esp, 0xc
cmp eax, ebx
jne 0x100ebd6
mov eax, dword [0x103a83c]
lea eax, [eax + eax*4]
shl eax, 4
mov eax, dword [eax + 0x103a3c0]
mov ecx, dword [0x103a78c]
or ecx, 0x24
push ecx
lea ecx, [ebp - 0x178]
push dword [0x103a728]
push ecx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
je 0x100ec06
mov dword [0x10384e0], ebx
xor eax, eax
jmp 0x100eca7
mov eax, dword [0x103a83c]
push ebx
push dword [ebp + 8]
lea eax, [eax + eax*4]
shl eax, 4
push dword [eax + 0x103a3c0]
call fcn.0100be3d
mov esi, eax
cmp esi, ebx
je 0x100ec9f
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x178]
push eax
push 0x104
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jbe 0x100ec9f
mov eax, dword [ebp + 8]
mov byte [eax - 1], bl
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push str.Folder
push ebx
push 0x10019c8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100ec9f
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x178]
push eax
push edi
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x10384e0], ebx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8