Function at 0x407f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df3c1
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x513200]
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.00403480
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
push 0x105
mov dword [ebp - 0x14], 0x105
call fcn.004056f0
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 0x408056
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.004056f0
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.004056f0
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 0x408056
lea ecx, [ebp - 0x134]
call fcn.004036f0
push 0x4fc7f4
mov ecx, ebx
call fcn.004058b0
xor bl, bl
jmp 0x4082c5
lea ecx, [ebp - 0x134]
call fcn.00403f40
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.0040e650
lea eax, [ebp - 0x37c]
lea esi, [edi + 0x254]
push eax
mov ecx, esi
call fcn.0040ecf0
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4080c6
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x4080c6
push eax
call fcn.00496f41
add esp, 4
mov al, byte [edi + 5]
test al, al
je 0x4082c3
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x4080e0
mov eax, dword [esi + 8]
add eax, 4
push 0x5c
push eax
call fcn.0048c43d
add esp, 8
test eax, eax
jne 0x408105
cmp byte [esi + 0x11c], al
lea eax, [esi + 0xc]
jne 0x408100
mov eax, dword [esi + 8]
add eax, 4
jmp 0x408108
add eax, 2
push eax
lea ecx, [ebp - 0x258]
call fcn.00403600
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 0x40815d
test dx, dx
je 0x408159
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40815d
add eax, 4
add ecx, 4
test dx, dx
jne 0x408137
xor eax, eax
jmp 0x408162
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4082a2
test bl, bl
lea eax, [ebp - 0x24c]
push 2
cmove eax, edi
add eax, 4
push 0x4f5628
push eax
call fcn.00496d25
add esp, 0xc
test eax, eax
je 0x408296
push 0x10
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x254], 0xf
call fcn.004056f0
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.0048b610
add esp, 0xc
lea ecx, [ebp - 0x37c]
call fcn.0040e5f0
lea eax, [ebp - 0x37c]
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00410b30
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.0040e650
lea eax, [ebp - 0x4a0]
push eax
lea ecx, [ebp - 0x37c]
call fcn.0040ec90
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x408251
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x408251
push eax
call fcn.00496f41
add esp, 4
mov ecx, esi
call fcn.0040efb0
test al, al
je 0x40826a
lea eax, [ebp - 0x37c]
mov ecx, esi
push eax
call fcn.0040ecf0
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x408296
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x408296
push eax
call fcn.00496f41
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 0x4082c3
lea eax, [ebp - 0x24c]
cmp edi, eax
je 0x4082c3
push edi
call fcn.00496f41
add esp, 4
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x4082ee
mov ecx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x4082ee
push ecx
call fcn.00496f41
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.00489940
mov esp, ebp
pop ebp
ret 4