Function at 0x45f6e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53046c
mov eax, dword fs:[0]
push eax
sub esp, 0x5b8
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
lea ecx, [ebp - 0x134]
call fcn.0044fd40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0x105
mov dword [ebp - 0x14], 0x105
call fcn.00450b00
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x45f804
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00450b00
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0x105
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0x105
call fcn.00450b00
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push 1
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x45f804
lea ecx, [ebp - 0x134]
call fcn.0044ff00
mov ecx, edi
call fcn.00450c80
push 0x5a0a40
push 0x5971f4
push eax
call fcn.00450580
add esp, 0xc
xor bl, bl
jmp 0x45fa46
lea ecx, [ebp - 0x134]
call fcn.004502b0
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0
cmove eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x258]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.00451610
mov byte [ebp - 4], 1
call fcn.0045eb90
test al, al
je 0x45f9f9
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
push 0x5c
cmove eax, dword [ebp - 0x250]
add eax, 4
push eax
call fcn.004d9879
add esp, 8
test eax, eax
jne 0x45f889
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
cmove eax, dword [ebp - 0x250]
add eax, 4
jmp 0x45f88c
add eax, 2
push eax
lea ecx, [ebp - 0x37c]
call fcn.0044fe90
push str.Application_Data
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 2
call fcn.00450070
test al, al
je 0x45f9cd
push 0x10
lea ecx, [ebp - 0x374]
mov dword [ebp - 0x378], 0xf
call fcn.00450b00
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
push 0x20
cmove eax, dword [ebp - 0x374]
add eax, 4
push str.AppDataRoaming
push eax
call fcn.004d9a60
add esp, 0xc
lea ecx, [ebp - 0x4a0]
call fcn.004515b0
lea eax, [ebp - 0x4a0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x258]
call fcn.00453190
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
push 0
cmove eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x5c4]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.00451610
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00451c90
cmp byte [ebp - 0x4a8], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x45f97e
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5b8]
cmp eax, ecx
je 0x45f97e
push eax
call fcn.004e1b56
add esp, 4
cmp byte [ebp - 0x384], 0
lea eax, [ebp - 0x494]
lea ecx, [ebp - 0x258]
cmove eax, dword [ebp - 0x498]
add eax, 4
push eax
call fcn.0044ff70
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x45f9cd
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x45f9cd
push eax
call fcn.004e1b56
add esp, 4
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x45f9f9
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x45f9f9
push eax
call fcn.004e1b56
add esp, 4
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
mov ecx, ebx
cmove eax, dword [ebp - 0x250]
add eax, 4
push eax
call fcn.0044ff70
cmp byte [ebp - 0x13c], 0
mov bl, 1
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x45fa46
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x45fa46
push eax
call fcn.004e1b56
add esp, 4
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x45fa6f
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x45fa6f
push eax
call fcn.004e1b56
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret