Function at 0x49e310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e93c6
mov eax, dword fs:[0]
push eax
sub esp, 0x5c0
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x5cc], eax
call fcn.00499a50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0x105
mov dword [ebp - 0x14], 0x105
call fcn.0049a590
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
mov edi, 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 edi
test eax, eax
je 0x49e467
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.0049a590
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.0049a590
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 edi
test eax, eax
je 0x49e467
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.0049a590
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, dword [ebp - 0x5cc]
call fcn.0049c7f0
push 0x7923c4
push 0x791e68
push eax
call fcn.0049a160
add esp, 0xc
xor al, al
jmp 0x49e782
lea ecx, [ebp - 0x134]
call fcn.00499ea0
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0
cmove eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x5c4]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.0049a8e0
lea eax, [esi + 0x378]
lea ecx, [ebp - 0x5c4]
mov dword [ebp - 0x5cc], eax
push ecx
mov ecx, eax
call fcn.00499d10
cmp byte [ebp - 0x4a8], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49e4e2
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5b8]
cmp eax, ecx
je 0x49e4e2
push eax
call fcn.005cff1c
add esp, 4
cmp byte [esi + 5], 0
je 0x49e780
cmp byte [esi + 0x494], 0
lea eax, [esi + 0x384]
jne 0x49e501
mov eax, dword [esi + 0x380]
add eax, 4
lea edi, [esi + 0x384]
push 0x5c
push eax
call fcn.005c02be
add esp, 8
test eax, eax
jne 0x49e52c
cmp byte [esi + 0x494], al
jne 0x49e527
mov edi, dword [esi + 0x380]
add edi, 4
jmp 0x49e52f
lea edi, [eax + 2]
push edi
lea ecx, [ebp - 0x37c]
call fcn.00499bd0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x370]
cmp byte [ebp - 0x260], 0
mov ecx, str.Application_Data
mov esi, dword [ebp - 0x374]
cmove eax, esi
add eax, 4
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49e586
test dx, dx
je 0x49e582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49e586
add eax, 4
add ecx, 4
test dx, dx
jne 0x49e560
xor eax, eax
jmp 0x49e58b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49e75a
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
push 2
cmove eax, esi
add eax, 4
push 0x785c68
push eax
call fcn.005d221c
add esp, 0xc
test eax, eax
je 0x49e754
push 0x10
lea ecx, [ebp - 0x374]
mov dword [ebp - 0x378], 0xf
call fcn.0049a590
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
movups xmm0, xmmword [str.AppDataRoaming]
cmove eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x258]
movups xmmword [eax + 4], xmm0
movups xmm0, xmmword [0x79240c]
movups xmmword [eax + 0x14], xmm0
call fcn.00499a50
push 1
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x254], 0
call fcn.0049a590
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
cmove eax, dword [ebp - 0x250]
xor ecx, ecx
mov word [eax + 4], cx
mov esi, dword [ebp - 0x5cc]
lea eax, [ebp - 0x258]
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0049c340
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
push 0
cmove eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x4a0]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.0049a8e0
cmp byte [ebp - 0x384], 0
lea edi, [ebp - 0x494]
mov ecx, dword [ebp - 0x254]
cmove edi, dword [ebp - 0x498]
add edi, 4
test ecx, ecx
je 0x49e6c7
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
cmove eax, dword [ebp - 0x250]
cmp word [eax + ecx*2 + 2], 0x5c
je 0x49e6d7
push 0x785c68
lea ecx, [ebp - 0x258]
call fcn.00499e00
push edi
lea ecx, [ebp - 0x258]
call fcn.00499e00
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49e70f
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x49e70f
push eax
call fcn.005cff1c
add esp, 4
mov ecx, esi
call fcn.0049b090
test al, al
je 0x49e728
lea eax, [ebp - 0x258]
mov ecx, esi
push eax
call fcn.00499d10
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49e754
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x49e754
push eax
call fcn.005cff1c
add esp, 4
mov esi, dword [ebp - 0x374]
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49e780
lea eax, [ebp - 0x370]
cmp esi, eax
je 0x49e780
push esi
call fcn.005cff1c
add esp, 4
mov al, 1
cmp byte [ebp - 0x18], 0
mov byte [ebp - 0x5c5], al
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49e7b7
mov ecx, dword [ebp - 0x12c]
lea edx, [ebp - 0x128]
cmp ecx, edx
je 0x49e7b7
push ecx
call fcn.005cff1c
mov al, byte [ebp - 0x5c5]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret 4