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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
xor esi, esi
mov cl, byte [edi]
lea edi, [edi + 3]
cmp cl, 0x39
movzx edx, cl
push 0x30
lea eax, [ecx - 0x37]
mov cl, byte [edi - 2]
movzx eax, al
cmovg edx, eax
pop eax
shl dl, 4
cmp cl, 0x39
push 0x37
pop ebx
cmovg eax, ebx
sub cl, al
add cl, dl
mov byte [ebp + esi - 0x88], cl
inc esi
cmp esi, 0x10
jb 0x10001898
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
call sym.R2RIKM2.dll_GenerateSerial
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
mov edx, str.SerialNumber
mov ecx, ebx
call fcn.1000107c
mov esi, str..C:
mov dword [esp], 0x104
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x1b4]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov al, byte [ebp - 0x1b4]
xor edi, edi
push edi
push edi
push 3
push edi
push 1
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
mov esi, eax
lea eax, [ebp + 0x18]
push eax
push 0x18
lea eax, [ebp - 0x4c]
push eax
push edi
push edi
push 0x70000
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], eax
call fcn.100012a7
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
lea edx, [ebp - 0x30]
call fcn.10001381
lea eax, [ebp - 0x78]
mov edx, str.AuthCode
push eax
mov ecx, ebx
call fcn.1000107c
mov esi, dword [ebp + 0x14]
add esp, 0xc
cmp esi, 0x10
jbe 0x10001a97
push str.CLA10
lea eax, [ebp - 0x30]
push eax
call sym.R2RIKM2.dll_GenerateSerial
lea eax, [ebp - 0x30]
mov edx, str.UserSerial
push eax
mov ecx, ebx
call fcn.1000107c
add esi, 0xffffffef
add edi, 0x10
shr esi, 4
pop ecx
inc esi
mov edx, edi
lea ecx, [ebp - 0xb0]
call fcn.10001000
lea eax, [ebp - 0x78]
mov ecx, edi
push eax
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x30]
call fcn.10001381
cmp dword [ebp + 0x1c], 0
pop ecx
pop ecx
je 0x10001a0b
lea eax, [ebp - 0x78]
mov ecx, ebx
push eax
lea edx, [ebp - 0xb0]
call fcn.1000107c
pop ecx
jmp 0x10001a8b
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x78]
call fcn.100011f3
lea ecx, [ebp - 0x10]
call fcn.100011c2
lea edx, [ebp - 0x88]
call fcn.100010f5
push ebx
lea eax, [ebp - 0x1b4]
push str.SoftwareIK_Multimedia_s
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x18]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push 0x100020de
push eax
lea eax, [ebp - 0x1b4]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x10
lea eax, [ebp - 0x10]
push eax
push 3
push 0
lea eax, [ebp - 0xb0]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0x10
sub esi, 1
jne 0x100019cd
pop edi
pop esi
pop ebx
leave
ret 0x18