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

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0x30]
push edi
push eax
push 0xffdc
call fcn.00402120
add esp, 8
test eax, eax
jne 0x40c10a
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40c0f6
mov ecx, dword [esp + 0x38]
push ecx
push esi
push eax
call fcn.004194f0
add esp, 0xc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
pop esi
add esp, 0x24
ret
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push 0x23
push esi
call fcn.00418f60
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40c565
mov eax, ebx
mov edi, ebp
sub eax, esi
push 0x23
mov ecx, eax
add ebp, eax
mov edx, ecx
lea eax, [ebx + 1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [ebp], 0
call fcn.00418f60
add esp, 8
test eax, eax
je 0x40c581
mov edx, eax
mov esi, ebx
sub edx, ebx
mov edi, ebp
push str.Windows
push ebp
lea ecx, [edx + 1]
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov byte [edx + ebp + 1], 0
mov dword [esp + 0x18], eax
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c19d
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x40c52b
push str.System
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c1c0
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x40c52b
push str.TempDir
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c1e3
push ebp
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40c52b
push str.CommonFiles
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c2a1
lea ecx, [esp + 0x3c]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c52b
mov ecx, dword [esp + 0x3c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x20]
push ebp
push eax
push 0
push str.CommonFilesDir
push ecx
mov dword [esp + 0x30], 0x104
call esi
test eax, eax
je 0x40c291
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push ebp
push eax
push 0
push str.ProgramFilesDir
push ecx
call esi
push ebp
call fcn.00402060
mov edi, str.Common_Files
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c52b
push str.Program_Files
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c309
lea ecx, [esp + 0x20]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c52b
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], eax
push edx
lea eax, [esp + 0x1c]
push ebp
push eax
push 0
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c52b
push str.MyDocuments
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c32b
push 5
push ebp
call fcn.0040ba30
add esp, 8
jmp 0x40c52b
push str.AppData
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c34d
push 0x1a
push ebp
call fcn.0040ba30
add esp, 8
jmp 0x40c52b
push str.InstallDir
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c385
mov edi, dword [0x427690]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40c52b
push str.SourceDir
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c3d3
mov edi, dword [0x4275d0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov edx, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00418f20
add esp, 8
test eax, eax
je 0x40c52b
mov byte [eax], 0
jmp 0x40c52b
push str.UserName
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c3f9
mov eax, dword [0x427260]
push eax
push ebp
call fcn.0040c600
add esp, 8
jmp 0x40c52b
push str.UserCompany
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c420
mov ecx, dword [0x42725c]
push ecx
push ebp
call fcn.0040c600
add esp, 8
jmp 0x40c52b
push str.UserSerialNumber
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c447
mov edx, dword [0x427254]
push edx
push ebp
call fcn.0040c600
add esp, 8
jmp 0x40c52b
push str.UserEmail
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c46d
mov eax, dword [0x427258]
push eax
push ebp
call fcn.0040c600
add esp, 8
jmp 0x40c52b
push str.UserInfo
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c494
mov ecx, dword [0x427250]
push ecx
push ebp
call fcn.0040c600
add esp, 8
jmp 0x40c52b
push str.UserRegCode
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c4c9
mov edi, dword [0x427268]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40c52b
push str.Date
push ebp
call fcn.004196a0
add esp, 8
test eax, eax
jne 0x40c527
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x26]
and eax, 0xffff
and edx, 0xffff
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x2a]
and ecx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
push edx
push 0x422424
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40c52b
mov byte [ebp], 0
cmp byte [ebp], 0
je 0x40c548
push ebp
call fcn.004020b0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ebp, ecx
mov eax, dword [esp + 0x10]
push 0x23
push eax
call fcn.00418f60
mov esi, dword [esp + 0x18]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40c125
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x40c59b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
not ecx
dec ecx
add ebp, ecx
sub ebp, esi
test edi, edi
je 0x40c5e1
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x40c5e1
test ebp, ebp
mov byte [edi], al
je 0x40c5e1
lea eax, [ebp + 1]
cmp eax, ecx
jae 0x40c5d3
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
push eax
call fcn.00402160
add esp, 4
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x24
ret