Function at 0x418a10
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b3447
mov eax, dword fs:[0]
push eax
sub esp, 0x794
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x790], eax
push ebx
push esi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x7a0]
mov dword fs:[0], eax
mov al, byte [edi + 4]
mov esi, ecx
test al, al
jne 0x418a61
call fcn.0041a480
push str.Win7
jmp 0x418d11
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x396]
push ecx
mov word [esp + 0x398], ax
call fcn.00476c30
add esp, 0xc
push 0x104
lea edx, [esp + 0x390]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x418d05
inc eax
cmp eax, 0x104
jae 0x418d05
call fcn.00418d50
mov bl, al
mov byte [esp + 0x13], bl
test bl, bl
jne 0x418b0f
push str.SystemDirectory:
lea ecx, [esp + 0x18]
call fcn.0041ec10
lea eax, [esp + 0x38c]
push eax
push 0x4d4204
lea edx, [esp + 0x1c]
mov dword [esp + 0x7b0], 0
call fcn.0041f080
add esp, 8
lea eax, [esp + 0x20]
cmp byte [esp + 0x130], bl
jne 0x418afa
mov eax, dword [esp + 0x1c]
add eax, 4
push eax
call fcn.00418ec0
add esp, 4
lea ecx, [esp + 0x14]
call fcn.0041ec80
cmp byte [edi + 0x370], 0
lea eax, [edi + 0x260]
jne 0x418b24
mov eax, dword [edi + 0x25c]
add eax, 4
push eax
lea ecx, [esp + 0x140]
call fcn.0041ec10
lea eax, [esp + 0x38c]
mov dword [esp + 0x7a8], 1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418b50
sub eax, edx
sar eax, 1
cmp byte [esp + 0x258], cl
lea ecx, [esp + 0x148]
jne 0x418b76
mov ecx, dword [esp + 0x144]
push eax
lea edx, [esp + 0x390]
push edx
add ecx, 4
push ecx
call fcn.004712b8
add esp, 0xc
test eax, eax
jne 0x418ba1
mov byte [edi + 0x1d46], 1
test bl, bl
jne 0x418bb2
push str.Cur_Proc_Is_Special
jmp 0x418baa
test bl, bl
jne 0x418bb2
push str.Cur_Proc_Isnt_Special
call fcn.00418ec0
add esp, 4
cmp byte [edi + 0x1d46], 0
jne 0x418cd1
lea ecx, [esp + 0x264]
call fcn.0041ead0
lea eax, [esp + 0x38c]
lea edx, [esp + 0x264]
call fcn.0041ed00
lea ecx, [esp + 0x14]
call fcn.0041bda0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x268]
mov byte [esp + 0x7ac], 4
call fcn.0041d710
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x59e]
push edx
mov word [esp + 0x5a0], cx
call fcn.00476c30
add esp, 0xc
lea eax, [esp + 0x594]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test bl, bl
jne 0x418c47
lea ecx, [esp + 0x594]
push ecx
call fcn.00418ec0
add esp, 4
mov bl, byte [esp + 0x130]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
test bl, bl
jne 0x418c5c
mov eax, esi
add eax, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418c62
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x20]
test bl, bl
jne 0x418c7b
mov ecx, esi
push eax
add ecx, 4
push ecx
lea edx, [esp + 0x59c]
push edx
call fcn.004712b8
add esp, 0xc
test eax, eax
jne 0x418ca8
mov byte [edi + 0x1d46], 1
cmp byte [esp + 0x13], al
jne 0x418cbc
push str.Cur_Proc_Is_Special
jmp 0x418cb4
cmp byte [esp + 0x13], 0
jne 0x418cbc
push str.Cur_Proc_Isnt_Special
call fcn.00418ec0
add esp, 4
lea ecx, [esp + 0x14]
call fcn.0041ec80
lea ecx, [esp + 0x264]
call fcn.0041ec80
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], 0x4d4d70
jne 0x418d01
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x418d01
push eax
call fcn.00470027
add esp, 4
mov al, 1
jmp 0x418d22
mov ecx, esi
call fcn.0041a480
push 0x4d4154
push 0x4d4204
mov edx, eax
call fcn.0041f080
add esp, 8
xor al, al
mov ecx, dword [esp + 0x7a0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x790]
xor ecx, esp
call fcn.0046fdae
add esp, 0x7a0
ret