Function at 0x413a40
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xa444]
mov eax, 0xa444
call fcn.00434bf0
push 0xffffffffffffffff
push 0x447400
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x460cd0]
xor eax, ebp
mov dword [ebp + 0xa440], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xa44c]
mov dword [ebp - 0x28], eax
mov edi, ecx
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x1c], 0xa
push 0x4e20
push 0
lea ecx, [ebp + 0x4e20]
push ecx
call fcn.00430500
push 0x4e20
push 0
lea edx, [ebp]
push edx
call fcn.00430500
push 0x800
push 0
lea eax, [ebp + 0x9c40]
push eax
call fcn.00430500
add esp, 0x24
mov dword [ebp - 4], 0
lea esi, [ebp - 0x44]
call fcn.0041e1c0
mov byte [ebp - 4], 1
mov bl, byte [eax + 0x18]
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0041e2a0
push edi
lea edx, [ebp + 0x4e20]
push str.Version_3
push str.Drivers
test bl, bl
je 0x413b35
push str.Windows_x64
push str.SYSTEMCurrentControlSetControlPrintEnvironments
push str._s_s_s_s_s
call fcn.00415730
add esp, 0x18
lea ecx, [ebp]
lea edx, [ebp + 0x4e20]
call fcn.00415cd0
test eax, eax
je 0x413b78
push str.Cannot_get_dependent_files_on_X64
jmp 0x413b63
push str.Windows_NT_x86
push str.SYSTEMCurrentControlSetControlPrintEnvironments
push str._s_s_s_s_s
call fcn.00415730
add esp, 0x18
lea ecx, [ebp]
lea edx, [ebp + 0x4e20]
call fcn.00415cd0
test eax, eax
je 0x413b78
push str.Cannot_get_dependent_files_on_X86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x466338
call fcn.0041a540
add esp, 4
lea ecx, [ebp + 0x4e20]
push ecx
push str.szRegPath_:___s_
mov ecx, 0x466338
call fcn.0041a690
lea edx, [ebp]
push edx
push str.szBuffer_:___s_
mov ecx, 0x466338
call fcn.0041a690
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp]
push edx
call fcn.0042fe3d
add esp, 0x1c
mov edi, eax
mov bl, 2
test edi, edi
je 0x413cc8
lea ecx, [ebp - 0x18]
call fcn.00403710
mov byte [ebp - 4], bl
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00403000
add esp, 8
mov ecx, str..ver
lea esi, [ebp - 0x18]
call fcn.00402590
cmp eax, 0xffffffff
jle 0x413c9f
push 0x3ff
push edi
push 0x400
lea ecx, [ebp + 0x9c40]
push ecx
call fcn.0042f011
lea edx, [ebp + 0x9c40]
push edx
push str.szVerFileName_:___s_
mov ecx, 0x466338
call fcn.0041a690
add esp, 0x18
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.004036b0
push 0x4e20
push 0
lea edx, [ebp]
push edx
call fcn.00430500
add esp, 0xc
push 0
push 0x25
lea eax, [ebp]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x413df8
lea esi, [ebp - 0x60]
call fcn.0041e1c0
mov byte [ebp - 4], 3
mov bl, byte [eax + 0x18]
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0041e2a0
lea edx, [ebp]
test bl, bl
je 0x413ccf
lea ecx, [ebp + 0x9c40]
push ecx
push 0x453460
push 0x453464
push 0x45346c
push str.spool
push edx
jmp 0x413cee
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
call fcn.0042fe3d
add esp, 0xc
mov edi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004036b0
jmp 0x413bc0
xor al, al
jmp 0x413e14
lea eax, [ebp + 0x9c40]
push eax
push 0x453460
push str.w32x86
push 0x45346c
push str.spool
lea ecx, [ebp]
push ecx
push str._s_s_s_s_s_s
call fcn.00415730
add esp, 0x1c
lea edx, [ebp]
push edx
push str.szBuffer_:___s_
mov ecx, 0x466338
call fcn.0041a690
add esp, 8
push 0
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004295a3
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.00403710
mov bl, 5
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.004294cf
test eax, eax
je 0x413dcc
mov ecx, str.MainVersion
lea esi, [ebp - 0x18]
call fcn.00402590
cmp eax, 0xffffffff
jle 0x413d30
push 0x4534d4
mov edx, dword [ebp - 0x18]
push edx
call fcn.0042ff27
add esp, 8
test eax, eax
jne 0x413d70
or eax, 0xffffffff
jmp 0x413d75
sub eax, dword [ebp - 0x18]
sar eax, 1
add eax, 1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.004147d0
mov byte [ebp - 4], 6
mov eax, dword [eax]
mov esi, dword [ebp - 0x28]
add esi, 0x3000
push 0x3ff
push eax
push 0x400
push esi
call fcn.0042f011
add esp, 0x10
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
call fcn.004036b0
push esi
push 0x4534d8
mov ecx, 0x466338
call fcn.0041a690
add esp, 8
mov byte [ebp - 0x11], 1
jmp 0x413dde
push str.end_of_version_file.
mov ecx, 0x466338
call fcn.0041a690
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.004036b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0042939c
jmp 0x413e0a
push str.fail_to_SHGetSpecialFolderPath
mov ecx, 0x466338
call fcn.0041a690
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa440]
xor ecx, ebp
call fcn.0042f002
add ebp, 0xa444
mov esp, ebp
pop ebp
ret 4