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

Disassembly:
sub esp, 0x24
lea eax, [esp]
push esi
mov esi, dword [esp + 0x30]
push edi
push eax
push 0xffdc
call fcn.00402100
add esp, 8
test eax, eax
jne 0x40bdda
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40bdc6
mov ecx, dword [esp + 0x38]
push ecx
push esi
push eax
call fcn.004190f0
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 + 0x10]
push 0x23
push esi
call fcn.00418b60
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40c1bb
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.00418b60
add esp, 8
test eax, eax
je 0x40c1d7
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 + 0x44], eax
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40be6d
push 0x104
push ebp
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
jmp 0x40c181
push str.System
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40be90
push 0x104
push ebp
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
jmp 0x40c181
push str.Program_Files
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40bef8
lea ecx, [esp + 0x14]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c181
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push edx
lea eax, [esp + 0x24]
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 + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c181
push str.CommonFiles
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40bf5f
lea eax, [esp + 0x18]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c181
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
push ebp
push edx
mov dword [esp + 0x28], eax
push eax
mov eax, dword [esp + 0x28]
push str.CommonFilesDir
push eax
mov dword [esp + 0x38], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40c181
push str.MyDocuments
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40bf81
push 5
push ebp
call fcn.0040b7f0
add esp, 8
jmp 0x40c181
push str.AppData
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40bfa3
push 0x1a
push ebp
call fcn.0040b7f0
add esp, 8
jmp 0x40c181
push str.InstallDir
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40bfdb
mov edi, dword [0x427648]
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 0x40c181
push str.SourceDir
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40c029
mov edi, dword [0x427590]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, ebp
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00418b20
add esp, 8
test eax, eax
je 0x40c181
mov byte [eax], 0
jmp 0x40c181
push str.UserName
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40c050
mov ecx, dword [0x427220]
push ecx
push ebp
call fcn.0040c250
add esp, 8
jmp 0x40c181
push str.UserCompany
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40c077
mov edx, dword [0x42721c]
push edx
push ebp
call fcn.0040c250
add esp, 8
jmp 0x40c181
push str.UserSerialNumber
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40c09d
mov eax, dword [0x427214]
push eax
push ebp
call fcn.0040c250
add esp, 8
jmp 0x40c181
push str.UserEmail
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40c0c4
mov ecx, dword [0x427218]
push ecx
push ebp
call fcn.0040c250
add esp, 8
jmp 0x40c181
push str.UserInfo
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40c0eb
mov edx, dword [0x427210]
push edx
push ebp
call fcn.0040c250
add esp, 8
jmp 0x40c181
push str.UserRegCode
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40c120
mov edi, dword [0x427228]
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 0x40c181
push str.Date
push ebp
call fcn.004192a0
add esp, 8
test eax, eax
jne 0x40c17d
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
mov eax, dword [esp + 0x24]
and eax, 0xffff
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x26]
and eax, 0xffff
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x2a]
and edx, 0xffff
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
push eax
push 0x422418
push ebp
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40c181
mov byte [ebp], 0
cmp byte [ebp], 0
je 0x40c19e
push ebp
call fcn.00402090
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 ecx, dword [esp + 0x3c]
push 0x23
push ecx
call fcn.00418b60
mov esi, dword [esp + 0x44]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40bdf5
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 0x40c1f1
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 + 0x10]
mov edi, dword [esp + 0x38]
not ecx
dec ecx
add ebp, ecx
sub ebp, esi
test edi, edi
je 0x40c237
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x40c237
test ebp, ebp
mov byte [edi], al
je 0x40c237
lea eax, [ebp + 1]
cmp eax, ecx
jae 0x40c229
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 + 0x10]
push eax
call fcn.00402140
add esp, 4
mov eax, ebp
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x24
ret