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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004b9d9
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x100661b0]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x100661b0]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor edi, edi
cmp byte [ebp + 8], 0
mov esi, edx
mov dword [esp + 0x20], edi
mov eax, dword [0x100bfb1c]
mov ebx, ecx
mov dword [esp + 0x18], esi
jne 0x1000188d
cmp ax, word [esi]
jne 0x1000188d
mov cx, word [0x100bfb1e]
cmp cx, word [esi + 2]
jne 0x1000188d
mov dx, word [0x100bfb22]
cmp dx, word [esi + 6]
mov byte [esp + 0x13], 0
je 0x10001892
mov byte [esp + 0x13], 1
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
mov dword [esp + 0x288], edi
mov dword [esp + 0x2c], vtable.BAB::BaseString_wchar_t__class_std::allocator_wchar_t__.0
mov dword [esp + 0x288], 1
cmp byte [esp + 0x13], 0
jne 0x100018c9
cmp ax, di
jne 0x1000191b
cmp dword [ebx + 0x4b8], 8
jb 0x100018da
mov eax, dword [ebx + 0x4a4]
jmp 0x100018e0
lea eax, [ebx + 0x4a4]
lea ecx, [ebx + 0x278]
push ecx
lea edx, [ebx + 0x47a]
push edx
push eax
movzx eax, word [esi]
cdq
mov ecx, 0x64
idiv ecx
movzx eax, word [esi + 6]
push edx
movzx edx, word [esi + 2]
push edx
push eax
push str._d__02d__02d_v_ls__ls_ls
lea edx, [esp + 0x48]
call fcn.10002ce0
mov eax, dword [0x100bfb1c]
add esp, 0x1c
mov cl, byte [ebx + 0x56]
neg cl
sbb ecx, ecx
add ecx, reloc.OLEAUT32.dll_SysReAllocString
cmp ax, di
mov dword [esp + 0x24], ecx
jne 0x10001a77
mov dword [esp + 0x1c], edi
mov byte [esp + 0x288], 2
cmp dword [ebx + 0x4d4], edi
je 0x10001a3a
cmp dword [ebx + 0x4d8], 8
jb 0x1000195e
mov eax, dword [ebx + 0x4c4]
jmp 0x10001964
lea eax, [ebx + 0x4c4]
lea edx, [esp + 0x14]
push edx
push 0x20019
push edi
push eax
push ecx
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x10001a3a
mov eax, dword [esp + 0x14]
push str.LastHeaderInfo
lea ecx, [esp + 0x20]
push ecx
lea edi, [esp + 0x30]
lea esi, [esp + 0x74]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 0x104
call fcn.100042f0
test eax, eax
jne 0x10001a1d
cmp byte [ebp + 8], al
jne 0x100019f8
mov edx, esi
lea eax, [esp + 0x4c]
call fcn.10002e10
mov byte [esp + 0x288], 3
cmp dword [esp + 0x64], 8
mov eax, dword [esp + 0x50]
mov dword [esp + 0x20], 1
jae 0x100019dd
lea eax, [esp + 0x50]
mov edi, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x34]
call fcn.10002f40
test eax, eax
mov byte [esp + 0x13], 0
je 0x100019fd
mov byte [esp + 0x13], 1
mov dword [esp + 0x288], 2
test byte [esp + 0x20], 1
je 0x10001a1d
and dword [esp + 0x20], 0xfffffffe
lea esi, [esp + 0x4c]
call fcn.100042c0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10001a34
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x18]
xor edi, edi
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [0x100bfb1c], edx
mov edx, dword [esi + 0xc]
mov dword [0x100bfb20], eax
mov dword [0x100bfb24], ecx
mov dword [0x100bfb28], edx
mov byte [esp + 0x288], 1
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x10001a77
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], edi
cmp byte [esp + 0x13], 0
je 0x10001c0d
lea eax, [esp + 0x4c]
push eax
call fcn.100043a0
mov byte [esp + 0x288], 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x288], 5
push 0x206
lea ecx, [esp + 0x72]
push 0
push ecx
mov word [esp + 0x78], 0
call fcn.10037fe0
add esp, 0xc
push 0x104
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [ebx + 0x4b8], 8
jb 0x10001adc
mov eax, dword [ebx + 0x4a4]
jmp 0x10001ae2
lea eax, [ebx + 0x4a4]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [ebx + 0x278]
push edx
lea ecx, [ebx + 0x47a]
push ecx
push eax
movzx eax, word [esi]
cdq
mov ecx, 0x64
idiv ecx
movzx eax, word [esi + 6]
push edx
movzx edx, word [esi + 2]
push edx
push eax
push str._r_n______________d__02d__02d___running_v_s_on__s__user:_s_______________r_n__Windows_Path:__s_r_n
lea edx, [esp + 0x6c]
call fcn.10002ce0
add esp, 0x20
push 1
push 0
lea edx, [esp + 0x54]
mov ecx, ebx
call fcn.100029a0
cmp dword [ebx + 0x4d4], 0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [0x100bfb1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [0x100bfb20], edx
mov dword [0x100bfb24], eax
mov dword [0x100bfb28], ecx
je 0x10001be1
mov esi, 8
cmp dword [ebx + 0x4d8], esi
jb 0x10001b70
mov ebx, dword [ebx + 0x4c4]
jmp 0x10001b76
add ebx, 0x4c4
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
push 2
push 0
push ebx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001be1
mov ebx, dword [esp + 0x18]
mov edi, ebx
mov dword [esp + 0x14], edi
cmp dword [esp + 0x48], esi
mov esi, dword [esp + 0x34]
jae 0x10001baf
lea esi, [esp + 0x34]
xor eax, eax
test esi, esi
setne al
test eax, eax
jne 0x10001bc4
push 0x80004005
call fcn.10003a00
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.LastHeaderInfo
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [esp + 0x288], 4
test edi, edi
je 0x10001bfc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
mov byte [esp + 0x288], 1
lea ecx, [esp + 0x4c]
call fcn.10004620
mov dword [esp + 0x288], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.10004620
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.100346f8
mov esp, ebp
pop ebp
ret 4