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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41538e
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
mov ebp, 1
mov dword [esi], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x40], 0xf
mov dword [esi + 0x44], 0xffffffff
lea eax, [esi + 0x4c]
mov dword [esi + 0x48], 6
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0xfa4], ebx
push edi
mov byte [esi + 0x23c], bl
lea ecx, [esi + 0x548]
mov byte [esi + 0x340], bl
push 0x104
mov byte [esi + 0x444], bl
push ecx
mov byte [esi + 0x854], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esi + 0x64c]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x14]
lea edi, [esi + 0x750]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esi + 0x958], ebx
push 0x80000002
mov dword [esi + 0x95c], 0x3f
mov dword [esi + 0x960], ebx
mov dword [esi + 0x964], ebx
mov dword [esi + 0x968], ebx
mov dword [esi + 0x96c], ebp
mov dword [esi + 0x970], ebx
mov byte [esi + 0x974], bl
mov byte [esi + 0xa78], bl
mov byte [esi + 0xb7c], bl
mov byte [edi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4096d8
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edi
push edx
push ebx
push str.ProgramFilesDir
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4096cd
cmp dword [esp + 0x10], ebp
je 0x4096cd
mov byte [edi], bl
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x34]
mov dword [esp + 0x34], 0x94
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
xor eax, eax
cmp ecx, 2
mov ecx, dword [esp + 0x38]
mov dword [esi + 0xc88], ebp
sete al
and ecx, 0xffff
and edx, 0xffff
shl ecx, 0x10
or ecx, edx
cmp eax, ebx
mov dword [esi + 0xc84], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0xc7c], eax
mov dword [esi + 0xc80], ecx
je 0x409750
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
je 0x40974a
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x409750
mov dword [esi + 0xc88], ebx
lea eax, [esi + 0xc94]
xor edx, edx
mov dword [esi + 0xc8c], ebx
mov dword [esi + 0xc90], ebx
mov dword [eax], edx
push 0xc4c
mov dword [eax + 4], edx
mov dword [esi + 0x238], ebx
mov dword [esi + 0xfa8], ebx
mov dword [esi + 0xfac], ebx
call fcn.0040db8c
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x224], ebx
je 0x4097a0
mov ecx, eax
call fcn.00403bb0
jmp 0x4097a2
xor eax, eax
mov dword [0x41b374], eax
mov dword [esi + 0xfb8], ebx
mov dword [esi + 0xfb0], ebx
mov dword [esi + 0xfb4], ebx
mov dword [esi + 0x19c], ebx
mov ecx, dword [0x41b384]
push 0x64
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea edx, [esp + 0x1c]
mov dword [esi + 0x84], eax
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push 0x1000
push ebx
push 0xffffff
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ecx
mov edx, dword [0x41b384]
push ebx
push 0xb
push 0x65
push edx
call dword [sym.imp.COMCTL32.dll_ImageList_LoadImageA]
mov dword [esi + 0x1a0], eax
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0xc8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc8]
push ebx
push eax
push 0x154
push 0x29
mov dword [esi + 0x1a4], 0xb
mov dword [esp + 0xd8], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edi, dword [sym.imp.GDI32.dll_CreateFontIndirectA]
lea ecx, [esp + 0x1e0]
push ecx
mov dword [esp + 0x1f4], 0x2bc
call edi
lea edx, [esp + 0x1e0]
mov dword [esi + 0x90], eax
push edx
mov dword [esp + 0x1f4], 0x190
call edi
mov ecx, dword [esp + 0x21c]
mov dword [esi + 0x94], eax
lea eax, [esi + 0x98]
pop edi
mov dword [esi + 0x198], eax
mov byte [eax], bl
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret