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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003de3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x250
movzx eax, byte [0x1003fb00]
test eax, eax
jne 0x1000975e
jmp 0x10009e54
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.100035c0
add esp, 0xc
push 0x1006a618
lea ecx, [ebp - 0x54]
call fcn.1000cec0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0x1006a640
lea ecx, [ebp - 0x25c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100097fd
mov dword [ebp - 0x2c], 0x16
lea ecx, [ebp - 0x24]
push ecx
push 0x20006
push 0
push 0x1006a650
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100097fd
push 4
lea edx, [ebp - 0x2c]
push edx
push 4
push 0
push 0x1006a698
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x54]
push edx
call fcn.10003610
add esp, 0x10
mov dword [ebp - 0x10], 0x2d7
mov dword [ebp - 0x14], 0x1710
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x14]
sub ecx, 0x22e4
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x12ee
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x219
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1b23
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], 0
jmp 0x10009890
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0x17
jge 0x100098a1
mov eax, dword [ebp - 0x14]
add eax, 8
mov dword [ebp - 0x14], eax
jmp 0x10009887
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, 0xfc9
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
sub eax, 0xce7
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1eff
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
sub edx, 0x9cb
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, 0x7ff
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x2426
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, 0x338
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cdq
mov ecx, 3
idiv ecx
test edx, edx
je 0x10009942
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x10009928
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1f22
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x16bb
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], 0
jmp 0x10009987
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0x33
jge 0x10009998
mov eax, dword [ebp - 0x18]
sub eax, 8
mov dword [ebp - 0x18], eax
jmp 0x1000997e
mov ecx, dword [ebp - 0x10]
sub ecx, 0x6d9
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x1f3b
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
cdq
mov ecx, 3
idiv ecx
test edx, edx
je 0x100099cb
mov edx, dword [ebp - 0x18]
add edx, 0x21db
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0xecc
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x825
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 0x19dc
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x3c], 0x146289c
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x1a4
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x18]
cdq
mov ecx, 3
idiv ecx
test edx, edx
je 0x10009a49
cmp dword [ebp - 0x18], 0
jle 0x10009a49
mov edx, dword [ebp - 0x18]
add edx, 0x6c2
mov dword [ebp - 0x18], edx
jmp 0x10009a54
mov eax, dword [ebp - 0x18]
sub eax, 0x6c2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x853
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x45
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, 0x10fa
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
and edx, 0x80000001
jns 0x10009aa8
dec edx
or edx, 0xfffffffe
inc edx
test edx, edx
je 0x10009ab7
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x10009a98
mov ecx, dword [ebp - 0x14]
add ecx, 0xc49
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 0xf0a
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push 0x400
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x10060684], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
and edx, 0x80000001
jns 0x10009b0a
dec edx
or edx, 0xfffffffe
inc edx
test edx, edx
je 0x10009b21
cmp dword [ebp - 0x14], 0
jle 0x10009b21
mov eax, dword [ebp - 0x14]
sub eax, 0x1e46
mov dword [ebp - 0x14], eax
jmp 0x10009b2d
mov ecx, dword [ebp - 0x14]
add ecx, 0x1e46
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x23d6
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, 0x24a9
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x701
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
sub eax, 0x1bf0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
sub edx, 0x1aa
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x3c]
mov dword [0x1003fb04], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xe2f
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 0x19c5
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x1d98
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
add eax, 0x1945
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
sub eax, 0x1031
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cdq
mov ecx, 3
idiv ecx
test edx, edx
je 0x10009c2f
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x10009c15
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
sub edx, 0x1528
mov dword [ebp - 0x10], edx
push 0x800
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x10060668], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
sub eax, 0x141b
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
sub edx, 0xa0e
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0x80000001
jns 0x10009cba
dec ecx
or ecx, 0xfffffffe
inc ecx
test ecx, ecx
je 0x10009cd0
cmp dword [ebp - 0x10], 0
jle 0x10009cd0
mov edx, dword [ebp - 0x10]
add edx, 0x16d2
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0x84f
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
sub edx, 0x26c8
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
and edx, 0x80000003
jns 0x10009d13
dec edx
or edx, 0xfffffffc
inc edx
test edx, edx
je 0x10009d2a
cmp dword [ebp - 0x10], 0
jle 0x10009d2a
mov eax, dword [ebp - 0x10]
sub eax, 0x1ce6
mov dword [ebp - 0x10], eax
jmp 0x10009d36
mov ecx, dword [ebp - 0x10]
add ecx, 0x1ce6
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
sub eax, 0x123c
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
sub ecx, 0xfd8
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
and eax, 0x80000003
jns 0x10009d6e
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x10009d86
cmp dword [ebp - 0x18], 0
jle 0x10009d86
mov ecx, dword [ebp - 0x18]
sub ecx, 0x172f
mov dword [ebp - 0x18], ecx
jmp 0x10009d92
mov edx, dword [ebp - 0x18]
add edx, 0x172f
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
sub eax, 0x160f
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x352
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
sub edx, 0x11fe
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x3d2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
sub eax, 0x6c8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
sub edx, 0x2021
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov byte [0x1003fb00], 0
mov ecx, dword [ebp - 0x10]
sub ecx, 0x1868
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.1000ce50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret