Function at 0x100094e0
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003d97d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x26c
movzx eax, byte [0x1003fb00]
test eax, eax
jne 0x1000950e
jmp 0x100099b2
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x54]
push eax
call fcn.100035c0
add esp, 0xc
push 0x100668ac
lea ecx, [ebp - 0x70]
call fcn.1000ca00
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0x100668e0
lea ecx, [ebp - 0x278]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100095ad
mov dword [ebp - 0x48], 0x16
lea ecx, [ebp - 0x40]
push ecx
push 0x20006
push 0
push 0x100668f0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100095ad
push 4
lea edx, [ebp - 0x48]
push edx
push 4
push 0
push 0x10066934
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.10003610
add esp, 0x10
mov dword [ebp - 0x24], 0x2123
mov dword [ebp - 0x20], 0x2178
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0x1bf3
mov dword [ebp - 0x2c], 0x2237
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x28]
sub edx, 0x1086
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x10]
add eax, 0x1032
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x14], 0x74a
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], 0x18c8
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x14]
cdq
mov ecx, 3
idiv ecx
test edx, edx
je 0x10009663
mov edx, dword [ebp - 0x14]
add edx, 0x128b
mov dword [ebp - 0x14], edx
jmp 0x1000966e
mov eax, dword [ebp - 0x14]
sub eax, 0x128b
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x20]
sub ecx, 0x8ef
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
add eax, 0x1702
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x58], 0x146289c
mov ecx, dword [ebp - 0x10]
and ecx, 0x80000003
jns 0x100096a5
dec ecx
or ecx, 0xfffffffc
inc ecx
test ecx, ecx
je 0x100096b5
mov edx, dword [ebp - 0x10]
sub edx, 0x54f
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0x10dd
mov edx, dword [ebp - 0x28]
sub edx, 0x1557
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x20]
sub eax, 0x1d96
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x18]
add edx, 0x573
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
sub eax, 0x13f
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
push 0x400
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x1005c2c4], eax
mov ecx, dword [ebp - 0x38]
sub ecx, 0x60
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
add edx, 0x2340
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x17fa
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x58]
mov dword [0x1003fb04], eax
mov dword [ebp - 0x3c], 0
jmp 0x100097a1
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0x47
jge 0x100097b2
mov edx, dword [ebp - 0x28]
add edx, 2
mov dword [ebp - 0x28], edx
jmp 0x10009798
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
sub ecx, 0xedc
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
sub edx, 0x514
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 0x2688
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x2c]
sub edx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x10]
add eax, 0x17e6
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x30]
sub ecx, 0xcac
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x97d
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x7f6
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
push 0x800
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x1005c2a8], eax
mov ecx, dword [ebp - 0x2c]
sub ecx, 0xb86
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x17ca
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
sub edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x34]
and eax, 0x80000003
jns 0x100098b1
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x100098c3
mov ecx, dword [ebp - 0x34]
sub ecx, 0xcbd
mov dword [ebp - 0x34], ecx
jmp 0x100098cf
mov edx, dword [ebp - 0x34]
add edx, 0xcbd
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 0xb7c
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
sub edx, 0x332
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
sub eax, 0x21be
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x30]
sub edx, 0x1194
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x30]
add ecx, 0xe82
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
add eax, 0x2608
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
sub edx, 0xcf0
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
cdq
mov ecx, 3
idiv ecx
test edx, edx
je 0x10009971
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
jmp 0x10009957
mov eax, dword [ebp - 0x14]
sub eax, 0xd3e
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x125c
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x18]
sub eax, 0xd90
mov dword [ebp - 0x18], eax
mov byte [0x1003fb00], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.1000c990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret