Function at 0x4541a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b4e0
mov eax, dword fs:[0]
push eax
sub esp, 0xe88
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe94], ecx
mov dword [ebp - 0xe90], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.005b4de0
add esp, 0xc
push 0
push 0x19
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45434e
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x648]
call fcn.0040e4b0
mov dword [ebp - 4], 0
push 0x646bcc
lea ecx, [ebp - 0x648]
call fcn.0040e5b0
xor ecx, ecx
mov word [ebp - 0x854], cx
push 0x206
push 0
lea edx, [ebp - 0x852]
push edx
call fcn.005b4de0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x62c], ax
push 0x206
push 0
lea ecx, [ebp - 0x62a]
push ecx
call fcn.005b4de0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x648]
call fcn.0040e5d0
push eax
push 0x646bd0
lea eax, [ebp - 0x854]
push eax
call fcn.005b50ec
add esp, 0x10
lea ecx, [ebp - 0x62c]
push ecx
lea edx, [ebp - 0x854]
push edx
mov ecx, dword [ebp - 0xe94]
call fcn.00453fd0
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.005b4de0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [ebp - 0x62c]
push ecx
call fcn.005b50b1
add esp, 4
test eax, eax
je 0x45433c
lea edx, [ebp - 0x424]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov eax, dword [ebp - 0xe90]
or eax, 1
mov dword [ebp - 0xe90], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x648]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x4544be
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x648]
call fcn.0040e530
push 0
push 0x10
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45449f
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0xc80]
call fcn.0040e4b0
mov dword [ebp - 4], 1
push 0x646be4
lea ecx, [ebp - 0xc80]
call fcn.0040e5b0
xor eax, eax
mov word [ebp - 0xe8c], ax
push 0x206
push 0
lea ecx, [ebp - 0xe8a]
push ecx
call fcn.005b4de0
add esp, 0xc
xor edx, edx
mov word [ebp - 0xc64], dx
push 0x206
push 0
lea eax, [ebp - 0xc62]
push eax
call fcn.005b4de0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xc80]
call fcn.0040e5d0
push eax
push 0x646be8
lea edx, [ebp - 0xe8c]
push edx
call fcn.005b50ec
add esp, 0x10
lea eax, [ebp - 0xc64]
push eax
lea ecx, [ebp - 0xe8c]
push ecx
mov ecx, dword [ebp - 0xe94]
call fcn.00453fd0
xor edx, edx
mov word [ebp - 0xa5c], dx
push 0x206
push 0
lea eax, [ebp - 0xa5a]
push eax
call fcn.005b4de0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0xa5c]
push ecx
lea edx, [ebp - 0xc64]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0xc64]
push eax
call fcn.005b50b1
add esp, 4
test eax, eax
je 0x45448d
lea ecx, [ebp - 0xa5c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov edx, dword [ebp - 0xe90]
or edx, 1
mov dword [ebp - 0xe90], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc80]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x4544be
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc80]
call fcn.0040e530
push 0x646bfc
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov eax, dword [ebp - 0xe90]
or eax, 1
mov dword [ebp - 0xe90], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret 8