Function at 0x407770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bc21
mov eax, dword fs:[0]
push eax
sub esp, 0x5c0
mov eax, dword [0x45604c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5cc], edx
mov edi, ecx
lea ecx, [ebp - 0x134]
call fcn.00405f90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0x105
mov dword [ebp - 0x14], 0x105
call fcn.004065a0
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 0x4078b8
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.004065a0
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.004065a0
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 0x4078b8
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.004065a0
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0x44eb50
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, edi
call fcn.00401e00
xor al, al
mov byte [ebp - 0x5c5], al
jmp 0x407b9b
lea ecx, [ebp - 0x134]
call fcn.004062c0
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
push 0
cmove eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x37c]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.004020e0
mov byte [ebp - 4], 1
cmp byte [0x45faaa], 0
jne 0x407942
push 0x114
lea eax, [ebp - 0x248]
mov byte [0x45faaa], 1
push 0
push eax
call fcn.00423c20
add esp, 0xc
lea ecx, [ebp - 0x248]
xor edx, edx
call fcn.00407500
cmp dword [ebp - 0x244], 6
jb 0x407936
mov byte [0x45faab], 1
jmp 0x40794f
mov byte [0x45faab], 0
jmp 0x407aec
cmp byte [0x45faab], 0
je 0x407aec
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
push 0x5c
cmove eax, dword [ebp - 0x374]
add eax, 4
push eax
call fcn.004239a0
add esp, 8
test eax, eax
jne 0x40798e
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
cmove eax, dword [ebp - 0x374]
add eax, 4
jmp 0x407991
add eax, 2
push eax
lea ecx, [ebp - 0x258]
call fcn.00406110
push ecx
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
call fcn.004061d0
test al, al
je 0x407ac0
push 0x10
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x254], 0xf
call fcn.004065a0
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
movups xmm0, xmmword [str.AppDataRoaming]
cmove eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x4a0]
movups xmmword [eax + 4], xmm0
movups xmm0, xmmword [0x44eb98]
movups xmmword [eax + 0x14], xmm0
call fcn.00402080
lea eax, [ebp - 0x4a0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x37c]
call fcn.00402b70
cmp byte [ebp - 0x13c], 0
lea eax, [ebp - 0x24c]
push 0
cmove eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x5c4]
push 0
push 0
push 0
push 0
add eax, 4
push eax
call fcn.004020e0
lea eax, [ebp - 0x5c4]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.004024a0
cmp byte [ebp - 0x4a8], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x407a82
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5b8]
cmp eax, ecx
je 0x407a82
push eax
call fcn.00429847
add esp, 4
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x37c]
call fcn.00402500
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x407ac0
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x407ac0
push eax
call fcn.00429847
add esp, 4
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x407aec
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x407aec
push eax
call fcn.00429847
add esp, 4
cmp byte [ebp - 0x260], 0
lea eax, [ebp - 0x370]
mov edi, 0x44a75c
cmove eax, dword [ebp - 0x374]
add eax, 4
cmovne edi, eax
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407b10
mov esi, dword [ebp - 0x5cc]
sub ecx, edx
sar ecx, 1
mov dword [esi + 4], ecx
lea eax, [ecx + 1]
push eax
lea ecx, [esi + 8]
mov dword [ebp - 0x5cc], eax
call fcn.004065a0
cmp byte [esi + 0x11c], 0
je 0x407b48
add esi, 0xc
jmp 0x407b4b
mov esi, dword [esi + 8]
mov eax, dword [ebp - 0x5cc]
add eax, eax
push eax
lea eax, [esi + 4]
push edi
push eax
call fcn.00423330
add esp, 0xc
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
cmp byte [ebp - 0x260], 0
mov al, 1
mov byte [ebp - 0x5c5], al
jne 0x407b9b
mov ecx, dword [ebp - 0x374]
lea edx, [ebp - 0x370]
cmp ecx, edx
je 0x407b9b
push ecx
call fcn.00429847
mov al, byte [ebp - 0x5c5]
add esp, 4
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x407bca
mov ecx, dword [ebp - 0x12c]
lea edx, [ebp - 0x128]
cmp ecx, edx
je 0x407bca
push ecx
call fcn.00429847
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.00421dd5
mov esp, ebp
pop ebp
ret