Function at 0x46a350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb81c
mov eax, dword fs:[0]
push eax
sub esp, 0x5b8
mov eax, dword [0x57b070]
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.00461c60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0x105
mov dword [ebp - 0x14], 0x105
call fcn.00462700
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 0x46a474
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00462700
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.00462700
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 0x46a474
lea ecx, [ebp - 0x134]
call fcn.00461e50
mov ecx, edi
call fcn.00464450
push 0x55f354
push 0x558df8
push eax
call fcn.004623d0
add esp, 0xc
xor bl, bl
jmp 0x46a6b6
lea ecx, [ebp - 0x134]
call fcn.00462190
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.00462ac0
mov byte [ebp - 4], 1
call fcn.00469f50
test al, al
je 0x46a669
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
push 0x5c
cmove eax, dword [ebp - 0x250]
add eax, 4
push eax
call fcn.004a550b
add esp, 8
test eax, eax
jne 0x46a4f9
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
cmove eax, dword [ebp - 0x250]
add eax, 4
jmp 0x46a4fc
add eax, 2
push eax
lea ecx, [ebp - 0x37c]
call fcn.00461db0
push str.Application_Data
lea ecx, [ebp - 0x37c]
mov byte [ebp - 4], 2
call fcn.00461fd0
test al, al
je 0x46a63d
push 0x10
lea ecx, [ebp - 0x374]
mov dword [ebp - 0x378], 0xf
call fcn.00462700
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.004a5f60
add esp, 0xc
lea ecx, [ebp - 0x4a0]
call fcn.00462a60
lea eax, [ebp - 0x4a0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x258]
call fcn.00464230
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.00462ac0
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00463090
cmp byte [ebp - 0x4a8], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x46a5ee
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5b8]
cmp eax, ecx
je 0x46a5ee
push eax
call fcn.004ac7ec
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.00461ed0
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x46a63d
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x46a63d
push eax
call fcn.004ac7ec
add esp, 4
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x46a669
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x46a669
push eax
call fcn.004ac7ec
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.00461ed0
cmp byte [ebp - 0x13c], 0
mov bl, 1
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x46a6b6
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x46a6b6
push eax
call fcn.004ac7ec
add esp, 4
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x46a6df
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x46a6df
push eax
call fcn.004ac7ec
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.004a35cb
mov esp, ebp
pop ebp
ret