Function at 0x40c7b0
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.0041a510
add esp, 8
test eax, eax
jne 0x40c7dd
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40ca25
push str.System
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40c800
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40ca25
push str.TempDir
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40c823
push ebp
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40ca25
push str.CommonFiles
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40c8e9
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 0x40ca25
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 0x40c8d9
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.004020b0
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 [0x42691c]
mov dword [edi + 4], edx
mov eax, dword [0x426920]
mov dword [edi + 8], eax
mov cl, byte [0x426924]
mov byte [edi + 0xc], cl
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ca25
push str.Program_Files
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40c957
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 0x40ca25
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 0x40ca25
push str.MyDocuments
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40c979
push 5
push ebp
call fcn.00401030
add esp, 8
jmp 0x40ca25
push str.Desktop
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40c99b
push 0x10
push ebp
call fcn.00401030
add esp, 8
jmp 0x40ca25
push str.AppData
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40ca3b
push 0x1a
push ebp
call fcn.00401030
add esp, 8
test eax, eax
jne 0x40ca25
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.004020b0
mov eax, dword [0x42ba34]
add esp, 4
or ecx, 0xffffffff
mov edi, ebp
test eax, eax
jne 0x40ca14
xor eax, eax
mov edx, dword [str.Application_Data]
repne scasb al, byte es:[edi]
dec edi
mov dword [edi], edx
mov eax, dword [0x426624]
mov dword [edi + 4], eax
mov ecx, dword [0x426628]
mov dword [edi + 8], ecx
mov edx, dword [0x42662c]
mov dword [edi + 0xc], edx
mov al, byte [0x426630]
mov byte [edi + 0x10], al
jmp 0x40ca25
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 0x40ca34
push ebp
call fcn.004020f0
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x18
ret
push str.LocalAppData
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40cb0d
push 0x1c
push ebp
call fcn.00401030
add esp, 8
test eax, eax
jne 0x40ca25
mov eax, dword [0x42ba34]
test eax, eax
je 0x40ca9c
push 0x1a
push ebp
call fcn.00401030
add esp, 8
test eax, eax
je 0x40ca9c
push 0x5c
push ebp
call fcn.0041a730
add esp, 8
test eax, eax
je 0x40ca9c
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 0x40ca90
jmp 0x40ca25
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.004020b0
mov eax, dword [0x42ba34]
add esp, 4
or ecx, 0xffffffff
mov edi, ebp
test eax, eax
jne 0x40caf4
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, dword [str.Application_Data]
dec edi
mov dword [edi], ecx
mov edx, dword [0x426624]
mov dword [edi + 4], edx
mov eax, dword [0x426628]
mov dword [edi + 8], eax
mov ecx, dword [0x42662c]
mov dword [edi + 0xc], ecx
mov dl, byte [0x426630]
mov byte [edi + 0x10], dl
jmp 0x40ca25
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 0x40ca25
push str.AllUsersAppData
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40cbe8
push 0x23
push ebp
call fcn.00401030
add esp, 8
test eax, eax
jne 0x40ca25
mov eax, dword [0x42ba34]
test eax, eax
jne 0x40cb72
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.004020b0
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 0x40ca25
push 0x1a
push ebp
call fcn.00401030
add esp, 8
test eax, eax
je 0x40cbba
push 0x5c
push ebp
call fcn.0041a730
add esp, 8
test eax, eax
je 0x40cbba
push 0x5c
push ebp
mov byte [eax], 0
call fcn.0041a730
add esp, 8
test eax, eax
je 0x40cbba
mov ecx, 0x426600
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40cbab
jmp 0x40ca25
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.004020b0
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 0x40ca23
push str.AllUsersDocuments
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40ccc1
push 0x2e
push ebp
call fcn.00401030
add esp, 8
test eax, eax
jne 0x40ca25
mov eax, dword [0x42ba34]
test eax, eax
jne 0x40cc48
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.004020b0
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 0x40ca23
push 0x1a
push ebp
call fcn.00401030
add esp, 8
test eax, eax
je 0x40cc90
push 0x5c
push ebp
call fcn.0041a730
add esp, 8
test eax, eax
je 0x40cc90
push 0x5c
push ebp
mov byte [eax], 0
call fcn.0041a730
add esp, 8
test eax, eax
je 0x40cc90
mov ecx, 0x4267c4
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [ecx + edx], al
inc ecx
test al, al
jne 0x40cc81
jmp 0x40ca25
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.004020b0
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 0x40ca25
push str.AllUsersDesktop
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40cdbe
push 0x19
push ebp
call fcn.00401030
add esp, 8
test eax, eax
jne 0x40ca25
mov eax, dword [0x42ba34]
test eax, eax
jne 0x40cd43
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.004020b0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
mov eax, dword [str.All_UsersDesktop]
dec edi
mov dword [edi], eax
mov ecx, dword [0x426780]
mov dword [edi + 4], ecx
mov edx, dword [0x426784]
mov dword [edi + 8], edx
mov eax, dword [0x426788]
mov dword [edi + 0xc], eax
mov cx, word [0x42678c]
mov word [edi + 0x10], cx
jmp 0x40ca25
push 0x1a
push ebp
call fcn.00401030
add esp, 8
test eax, eax
je 0x40cd8b
push 0x5c
push ebp
call fcn.0041a730
add esp, 8
test eax, eax
je 0x40cd8b
push 0x5c
push ebp
mov byte [eax], 0
call fcn.0041a730
add esp, 8
test eax, eax
je 0x40cd8b
mov ecx, 0x426768
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [ecx + edx], al
inc ecx
test al, al
jne 0x40cd7c
jmp 0x40ca25
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.004020b0
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.ProfilesAll_UsersDesktop
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x40ca25
push str.UserDir
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40ce23
push 0x28
push ebp
call fcn.00401030
add esp, 8
test eax, eax
jne 0x40ca25
mov eax, dword [0x42ba34]
test eax, eax
je 0x40c7cc
push 0x1a
push ebp
call fcn.00401030
push 0x5c
push ebp
call fcn.0041a730
add esp, 0x10
test eax, eax
jne 0x40cfd7
mov eax, 0x42661c
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x40ce14
jmp 0x40ca25
push str.AllUsersDir
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40cf77
push 0x2e
push ebp
call fcn.00401030
add esp, 8
test eax, eax
je 0x40ce8a
push 0x5c
push ebp
call fcn.0041a730
add esp, 8
test eax, eax
jne 0x40ce6f
mov eax, 0x42661c
mov edx, ebp
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x40ce60
jmp 0x40ca25
cmp eax, ebp
jbe 0x40cfd7
cmp byte [eax - 1], 0x3a
jne 0x40cfd7
mov byte [eax + 1], 0
jmp 0x40ca25
mov eax, dword [0x42ba34]
test eax, eax
je 0x40cf38
push 0x1a
push ebp
call fcn.00401030
add esp, 8
test eax, eax
je 0x40cedf
push 0x5c
push ebp
call fcn.0041a730
add esp, 8
test eax, eax
je 0x40cedf
push 0x5c
push ebp
mov byte [eax], 0
call fcn.0041a730
add esp, 8
test eax, eax
je 0x40cedf
mov ecx, str.All_Users
mov edx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [ecx + edx], al
inc ecx
test al, al
jne 0x40ced0
jmp 0x40ca25
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.004020b0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
mov edx, dword [str.ProfilesAll_Users]
dec edi
mov dword [edi], edx
mov eax, dword [0x426714]
mov dword [edi + 4], eax
mov ecx, dword [0x426718]
mov dword [edi + 8], ecx
mov edx, dword [0x42671c]
mov dword [edi + 0xc], edx
mov ax, word [0x426720]
mov word [edi + 0x10], ax
mov cl, byte [0x426722]
mov byte [edi + 0x12], cl
jmp 0x40ca25
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebp
call fcn.004020b0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
mov edx, dword [0x426704]
dec edi
mov dword [edi], edx
mov eax, dword [0x426708]
mov dword [edi + 4], eax
mov cx, word [0x42670c]
mov word [edi + 8], cx
jmp 0x40ca25
push str.InstallDir
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40cfa0
mov ecx, dword [0x42ba98]
mov edx, ebp
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40cf91
jmp 0x40ca25
push str.SourceDir
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40cfdf
mov ecx, dword [0x42bab4]
mov edx, ebp
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40cfba
push 0x5c
push ebp
call fcn.0041a730
add esp, 8
test eax, eax
je 0x40ca25
mov byte [eax], 0
jmp 0x40ca25
push str.UserName
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40d006
mov edx, dword [0x42b658]
push edx
push ebp
call fcn.0040d1e0
add esp, 8
jmp 0x40ca25
push str.UserCompany
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40d02c
mov eax, dword [0x42b654]
push eax
push ebp
call fcn.0040d1e0
add esp, 8
jmp 0x40ca25
push str.UserSerialNumber
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40d053
mov ecx, dword [0x42b64c]
push ecx
push ebp
call fcn.0040d1e0
add esp, 8
jmp 0x40ca25
push str.UserEmail
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40d07a
mov edx, dword [0x42b650]
push edx
push ebp
call fcn.0040d1e0
add esp, 8
jmp 0x40ca25
push str.UserInfo
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40d0a0
mov eax, dword [0x42b648]
push eax
push ebp
call fcn.0040d1e0
add esp, 8
jmp 0x40ca25
push str.UserRegCode
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40d0c9
mov ecx, dword [0x42b660]
mov edx, ebp
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40d0ba
jmp 0x40ca25
push str.Date
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40d129
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x14]
and eax, 0xffff
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x16]
and eax, 0xffff
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x1a]
and edx, 0xffff
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 0x426684
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40ca25
push str.Year
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40d165
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x14]
and edx, 0xffff
push edx
push 0x426684
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40ca25
push str.Month
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40d1a1
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x16]
and ecx, 0xffff
push ecx
push 0x426684
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40ca25
push str.Day
push ebp
call fcn.0041a510
add esp, 8
test eax, eax
jne 0x40d1cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x1a]
and eax, 0xffff
jmp 0x40d114
pop edi
mov byte [ebp], 0
pop esi
pop ebp
add esp, 0x18
ret