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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 0xc]
push eax
push reloc.KERNEL32.dll_lstrlenA
mov dword [ebp + 0xc], edi
call fcn.004082e6
pop ecx
test eax, eax
pop ecx
jne 0x4036b0
cmp dword [ebp + 8], eax
je 0x4036a4
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.0040a6e0
add esp, 0xc
push edi
call fcn.0040a060
pop ecx
jmp 0x40393e
push ebx
push esi
mov esi, dword [ebp - 4]
push 0x23
push edi
call fcn.0040a620
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x4038ea
mov ebx, edi
sub ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00409d20
and byte [esi + ebx], 0
add esi, ebx
lea eax, [edi + 1]
push 0x23
push eax
call fcn.0040a620
add esp, 0x14
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4038ef
mov ebx, eax
sub ebx, edi
lea eax, [ebx + 1]
push eax
push edi
push esi
call fcn.00409d20
mov eax, dword [ebp + 0xc]
and byte [ebx + esi + 1], 0
push str.Windows
push esi
lea ebx, [eax + 1]
mov dword [ebp + 0xc], ebx
call fcn.0040a580
add esp, 0x14
test eax, eax
jne 0x403737
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x4038cd
push str.System
push esi
call fcn.0040a580
pop ecx
test eax, eax
pop ecx
jne 0x403759
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4038cd
push str.Program_Files
push esi
call fcn.0040a580
pop ecx
test eax, eax
pop ecx
jne 0x4037b0
lea eax, [ebp - 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0xc]
and dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push esi
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4038cd
push str.InstallDir
push esi
call fcn.0040a580
pop ecx
test eax, eax
pop ecx
jne 0x4037d4
push dword [0x411ad0]
push esi
call fcn.0040a0e0
pop ecx
pop ecx
jmp 0x4038cd
push str.SourceDir
push esi
call fcn.0040a580
pop ecx
test eax, eax
pop ecx
jne 0x40380c
push dword [0x411c24]
push esi
call fcn.0040a0e0
push 0x5c
push esi
call fcn.0040a2f0
add esp, 0x10
test eax, eax
je 0x4038cd
and byte [eax], 0
jmp 0x4038cd
push str.UserName
push esi
call fcn.0040a580
pop ecx
test eax, eax
pop ecx
jne 0x403843
mov eax, dword [0x411b24]
movzx ecx, byte [eax]
movzx edi, byte [ecx + eax + 2]
lea eax, [ecx + eax + 2]
push edi
inc eax
push eax
push esi
call fcn.00409d20
add esp, 0xc
and byte [edi + esi], 0
jmp 0x4038cd
push str.UserCompany
push esi
call fcn.0040a580
pop ecx
test eax, eax
pop ecx
jne 0x40385e
mov eax, dword [0x411b24]
movzx ecx, byte [eax]
jmp 0x40387e
push str.UserSerialNumber
push esi
call fcn.0040a580
pop ecx
test eax, eax
pop ecx
jne 0x403887
mov eax, dword [0x411b24]
movzx ecx, byte [eax]
lea eax, [ecx + eax + 2]
movsx ecx, byte [eax]
lea eax, [ecx + eax + 2]
movsx ecx, byte [eax]
jmp 0x403825
push str.Date
push esi
call fcn.0040a580
pop ecx
test eax, eax
pop ecx
jne 0x4038ca
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x20]
movzx ecx, word [ebp - 0x1e]
imul eax, eax, 0x64
add eax, ecx
movzx ecx, word [ebp - 0x1a]
imul eax, eax, 0x64
add eax, ecx
push eax
push 0x4111d4
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4038cd
and byte [esi], 0
cmp byte [esi], 0
je 0x4038e2
push esi
call fcn.00408298
push esi
call fcn.0040a060
pop ecx
add esi, eax
pop ecx
push 0x23
push ebx
jmp 0x4036b8
push dword [ebp + 0xc]
jmp 0x4038f0
push edi
push esi
call fcn.0040a0e0
push esi
call fcn.0040a060
mov ecx, dword [ebp + 8]
add esi, eax
sub esi, dword [ebp - 4]
add esp, 0xc
test ecx, ecx
je 0x403930
cmp dword [ebp + 0x10], 0
je 0x403930
and byte [ecx], 0
test esi, esi
je 0x403930
lea eax, [esi + 1]
cmp eax, dword [ebp + 0x10]
jb 0x403923
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp - 4]
push ecx
call fcn.00409d20
add esp, 0xc
lea eax, [ebp - 4]
push eax
call fcn.00408319
pop ecx
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret