Function at 0x40c350
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
push str.Windows
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c37d
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40c5a3
push str.System
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c3a0
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40c5a3
push str.TempDir
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c3c3
push ebp
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40c5a3
push str.CommonFiles
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c489
lea eax, [esp + 0x28]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c5a3
lea ecx, [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea edx, [esp + 0x14]
push ebp
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x38]
push str.CommonFilesDir
push eax
mov dword [esp + 0x24], 0x104
call esi
test eax, eax
je 0x40c479
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push ebp
push edx
push 0
push str.ProgramFilesDir
push eax
call esi
push ebp
call fcn.00402070
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
mov ecx, dword [str.Common_Files]
dec edi
mov dword [edi], ecx
mov edx, dword [0x42572c]
mov dword [edi + 4], edx
mov eax, dword [0x425730]
mov dword [edi + 8], eax
mov cl, byte [0x425734]
mov byte [edi + 0xc], cl
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c5a3
push str.Program_Files
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c4f7
lea eax, [esp + 0x28]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c5a3
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push ebp
push edx
mov dword [esp + 0x18], eax
push eax
mov eax, dword [esp + 0x38]
push str.ProgramFilesDir
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c5a3
push str.MyDocuments
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c519
push 5
push ebp
call fcn.00401030
add esp, 8
jmp 0x40c5a3
push str.AppData
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c5b9
push 0x1a
push ebp
call fcn.00401030
add esp, 8
test eax, eax
jne 0x40c5a3
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.00402070
mov eax, dword [0x42a894]
add esp, 4
or ecx, 0xffffffff
mov edi, ebp
test eax, eax
jne 0x40c592
xor eax, eax
mov edx, dword [str.Application_Data]
repne scasb al, byte es:[edi]
dec edi
mov dword [edi], edx
mov eax, dword [0x4254a4]
mov dword [edi + 4], eax
mov ecx, dword [0x4254a8]
mov dword [edi + 8], ecx
mov edx, dword [0x4254ac]
mov dword [edi + 0xc], edx
mov al, byte [0x4254b0]
mov byte [edi + 0x10], al
jmp 0x40c5a3
xor eax, eax
mov esi, str.ProfilesAdministratorApplication_Data
repne scasb al, byte es:[edi]
dec edi
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
cmp byte [ebp], 0
je 0x40c5b2
push ebp
call fcn.004020b0
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x18
ret
push str.LocalAppData
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c68b
push 0x1c
push ebp
call fcn.00401030
add esp, 8
test eax, eax
jne 0x40c5a3
mov eax, dword [0x42a894]
test eax, eax
je 0x40c61a
push 0x1a
push ebp
call fcn.00401030
add esp, 8
test eax, eax
je 0x40c61a
push 0x5c
push ebp
call fcn.00419c00
add esp, 8
test eax, eax
je 0x40c61a
mov ecx, str.Local_SettingsApplication_Data
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40c60e
jmp 0x40c5a3
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.00402070
mov eax, dword [0x42a894]
add esp, 4
or ecx, 0xffffffff
mov edi, ebp
test eax, eax
jne 0x40c672
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, dword [str.Application_Data]
dec edi
mov dword [edi], ecx
mov edx, dword [0x4254a4]
mov dword [edi + 4], edx
mov eax, dword [0x4254a8]
mov dword [edi + 8], eax
mov ecx, dword [0x4254ac]
mov dword [edi + 0xc], ecx
mov dl, byte [0x4254b0]
mov byte [edi + 0x10], dl
jmp 0x40c5a3
xor eax, eax
mov esi, str.ProfilesAdministratorLocal_SettingsApplication_Data
repne scasb al, byte es:[edi]
dec edi
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x40c5a3
push str.AllUsersAppData
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c766
push 0x23
push ebp
call fcn.00401030
add esp, 8
test eax, eax
jne 0x40c5a3
mov eax, dword [0x42a894]
test eax, eax
jne 0x40c6f0
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.00402070
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
dec edi
mov ecx, 6
mov esi, str.All_UsersApplication_Data
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x40c5a3
push 0x1a
push ebp
call fcn.00401030
add esp, 8
test eax, eax
je 0x40c738
push 0x5c
push ebp
call fcn.00419c00
add esp, 8
test eax, eax
je 0x40c738
push 0x5c
push ebp
mov byte [eax], 0
call fcn.00419c00
add esp, 8
test eax, eax
je 0x40c738
mov ecx, 0x425480
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40c729
jmp 0x40c5a3
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.00402070
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
dec edi
mov ecx, 9
mov esi, str.ProfilesAll_UsersApplication_Data
jmp 0x40c5a1
push str.AllUsersDocuments
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c83f
push 0x2e
push ebp
call fcn.00401030
add esp, 8
test eax, eax
jne 0x40c5a3
mov eax, dword [0x42a894]
test eax, eax
jne 0x40c7c6
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.00402070
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
dec edi
mov ecx, 5
mov esi, str.All_UsersDocuments
jmp 0x40c5a1
push 0x1a
push ebp
call fcn.00401030
add esp, 8
test eax, eax
je 0x40c80e
push 0x5c
push ebp
call fcn.00419c00
add esp, 8
test eax, eax
je 0x40c80e
push 0x5c
push ebp
mov byte [eax], 0
call fcn.00419c00
add esp, 8
test eax, eax
je 0x40c80e
mov ecx, 0x4255d4
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40c7ff
jmp 0x40c5a3
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.00402070
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
dec edi
mov ecx, 7
mov esi, str.ProfilesAll_UsersDocuments
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x40c5a3
push str.UserDir
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c8a4
push 0x28
push ebp
call fcn.00401030
add esp, 8
test eax, eax
jne 0x40c5a3
mov eax, dword [0x42a894]
test eax, eax
je 0x40c36c
push 0x1a
push ebp
call fcn.00401030
push 0x5c
push ebp
call fcn.00419c00
add esp, 0x10
test eax, eax
jne 0x40ca58
mov eax, 0x42549c
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40c895
jmp 0x40c5a3
push str.AllUsersDir
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40c9f8
push 0x2e
push ebp
call fcn.00401030
add esp, 8
test eax, eax
je 0x40c90b
push 0x5c
push ebp
call fcn.00419c00
add esp, 8
test eax, eax
jne 0x40c8f0
mov eax, 0x42549c
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40c8e1
jmp 0x40c5a3
cmp eax, ebp
jbe 0x40ca58
cmp byte [eax - 1], 0x3a
jne 0x40ca58
mov byte [eax + 1], 0
jmp 0x40c5a3
mov eax, dword [0x42a894]
test eax, eax
je 0x40c9b9
push 0x1a
push ebp
call fcn.00401030
add esp, 8
test eax, eax
je 0x40c960
push 0x5c
push ebp
call fcn.00419c00
add esp, 8
test eax, eax
je 0x40c960
push 0x5c
push ebp
mov byte [eax], 0
call fcn.00419c00
add esp, 8
test eax, eax
je 0x40c960
mov ecx, str.All_Users
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40c951
jmp 0x40c5a3
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.00402070
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
mov eax, dword [str.ProfilesAll_Users]
dec edi
mov dword [edi], eax
mov ecx, dword [0x42557c]
mov dword [edi + 4], ecx
mov edx, dword [0x425580]
mov dword [edi + 8], edx
mov eax, dword [0x425584]
mov dword [edi + 0xc], eax
mov cx, word [0x425588]
mov word [edi + 0x10], cx
mov dl, byte [0x42558a]
mov byte [edi + 0x12], dl
jmp 0x40c5a3
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.00402070
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
mov eax, dword [0x42556c]
dec edi
mov dword [edi], eax
mov ecx, dword [0x425570]
mov dword [edi + 4], ecx
mov dx, word [0x425574]
mov word [edi + 8], dx
jmp 0x40c5a3
push str.InstallDir
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40ca21
mov ecx, dword [0x42a8f8]
mov edx, ebp
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40ca12
jmp 0x40c5a3
push str.SourceDir
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40ca60
mov ecx, dword [0x42a914]
mov edx, ebp
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40ca3b
push 0x5c
push ebp
call fcn.00419c00
add esp, 8
test eax, eax
je 0x40c5a3
mov byte [eax], 0
jmp 0x40c5a3
push str.UserName
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40ca86
mov eax, dword [0x42a4b4]
push eax
push ebp
call fcn.0040cbc0
add esp, 8
jmp 0x40c5a3
push str.UserCompany
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40caad
mov ecx, dword [0x42a4b0]
push ecx
push ebp
call fcn.0040cbc0
add esp, 8
jmp 0x40c5a3
push str.UserSerialNumber
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40cad4
mov edx, dword [0x42a4a8]
push edx
push ebp
call fcn.0040cbc0
add esp, 8
jmp 0x40c5a3
push str.UserEmail
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40cafa
mov eax, dword [0x42a4ac]
push eax
push ebp
call fcn.0040cbc0
add esp, 8
jmp 0x40c5a3
push str.UserInfo
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40cb21
mov ecx, dword [0x42a4a4]
push ecx
push ebp
call fcn.0040cbc0
add esp, 8
jmp 0x40c5a3
push str.UserRegCode
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40cb4a
mov ecx, dword [0x42a4bc]
mov edx, ebp
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40cb3b
jmp 0x40c5a3
push str.Date
push ebp
call fcn.004199e0
add esp, 8
test eax, eax
jne 0x40cbaa
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x16]
and eax, 0xffff
and ecx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x1a]
and eax, 0xffff
lea ecx, [eax + edx*4]
push ecx
push 0x4254ec
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40c5a3
pop edi
mov byte [ebp], 0
pop esi
pop ebp
add esp, 0x18
ret