Function at 0x4088f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4ea1
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x519220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x134]
call fcn.00403e10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0x105
mov dword [ebp - 0x14], 0x105
call fcn.00406110
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
push 0
push 0
push 0x1a
push 0
call esi
test eax, eax
je 0x408a06
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.00406110
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.00406110
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 esi
test eax, eax
je 0x408a06
lea ecx, [ebp - 0x134]
call fcn.00404080
push 0x502904
mov ecx, ebx
call fcn.004062d0
xor bl, bl
jmp 0x408c75
lea ecx, [ebp - 0x134]
call fcn.004048d0
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x37c]
cmove eax, dword [ebp - 0x12c]
sub esp, 0x10
add eax, 4
push 0
push eax
call fcn.0040f6f0
lea eax, [ebp - 0x37c]
lea esi, [edi + 0x254]
push eax
mov ecx, esi
call fcn.0040fd90
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x408a76
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x408a76
push eax
call fcn.0049c7b1
add esp, 4
mov al, byte [edi + 5]
test al, al
je 0x408c73
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x408a90
mov eax, dword [esi + 8]
add eax, 4
push 0x5c
push eax
call fcn.00491cad
add esp, 8
test eax, eax
jne 0x408ab5
cmp byte [esi + 0x11c], al
lea eax, [esi + 0xc]
jne 0x408ab0
mov eax, dword [esi + 8]
add eax, 4
jmp 0x408ab8
add eax, 2
push eax
lea ecx, [ebp - 0x258]
call fcn.00403f90
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24c]
mov ebx, dword [ebp - 0x13c]
mov ecx, str.Application_Data
mov edi, dword [ebp - 0x250]
test bl, bl
cmove eax, edi
add eax, 4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408b0d
test dx, dx
je 0x408b09
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408b0d
add eax, 4
add ecx, 4
test dx, dx
jne 0x408ae7
xor eax, eax
jmp 0x408b12
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408c52
test bl, bl
lea eax, [ebp - 0x24c]
push 2
cmove eax, edi
add eax, 4
push 0x4fb6d8
push eax
call fcn.0049c595
add esp, 0xc
test eax, eax
je 0x408c46
push 0x10
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x254], 0xf
call fcn.00406110
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
push 0x20
cmove eax, dword [ebp - 0x250]
add eax, 4
push str.AppDataRoaming
push eax
call fcn.00490e80
add esp, 0xc
lea ecx, [ebp - 0x37c]
call fcn.0040f690
lea eax, [ebp - 0x37c]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00411bd0
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
lea ecx, [ebp - 0x4a0]
cmove eax, dword [ebp - 0x250]
sub esp, 0x10
add eax, 4
push 0
push eax
call fcn.0040f6f0
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x37c]
call fcn.0040fd30
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x408c01
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x408c01
push eax
call fcn.0049c7b1
add esp, 4
mov ecx, esi
call fcn.00410050
test al, al
je 0x408c1a
lea eax, [ebp - 0x37c]
mov ecx, esi
push eax
call fcn.0040fd90
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x408c46
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x408c46
push eax
call fcn.0049c7b1
add esp, 4
mov edi, dword [ebp - 0x250]
mov ebx, dword [ebp - 0x13c]
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
test bl, bl
jne 0x408c73
lea eax, [ebp - 0x24c]
cmp edi, eax
je 0x408c73
push edi
call fcn.0049c7b1
add esp, 4
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x408c9e
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x408c9e
push ecx
call fcn.0049c7b1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f1b0
mov esp, ebp
pop ebp
ret 4