Function at 0x40f9f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453adf
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x468080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0
mov eax, 0x7fffffff
mov ecx, dword [edx + 0x10]
sub eax, ecx
cmp eax, 1
jb 0x40fdb2
cmp dword [edx + 0x14], 0xf
mov eax, edx
jbe 0x40fa5d
mov eax, dword [edx]
push ecx
push eax
push 1
push 0x45f6f0
push ecx
push dword [ebp - 0x248]
lea ecx, [ebp - 0x26c]
call fcn.0040f300
mov esi, 1
mov dword [ebp - 0x23c], esi
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x258]
mov eax, edx
mov ecx, dword [ebp - 0x25c]
sub eax, ecx
cmp eax, esi
jb 0x40fac2
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x26c]
cmova eax, dword [ebp - 0x26c]
mov word [eax + ecx], 0x7d
lea eax, [ebp - 0x26c]
jmp 0x40fadc
push 1
push 0x45f6ec
push dword [ebp - 0x248]
lea ecx, [ebp - 0x26c]
push 1
call fcn.00407be0
mov dword [ebp - 0x274], 0
lea edx, [ebp - 0x284]
mov dword [ebp - 0x270], 0
lea ecx, [ebp - 0x230]
xorps xmm0, xmm0
or esi, 2
movups xmmword [ebp - 0x284], xmm0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x284], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x274], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x23c], esi
call fcn.0040d190
mov byte [ebp - 4], 2
and esi, 0xfffffffd
mov dword [ebp - 0x23c], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x284]
call fcn.00405960
and esi, 0xfffffffe
mov dword [ebp - 0x23c], esi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x26c]
call fcn.00405960
xor esi, esi
xor al, al
mov byte [ebp - 0x231], al
nop word [eax + eax]
cmp dword [ebp - 0x21c], 7
lea ecx, [ebp - 0x230]
mov eax, dword [edi + 0x10]
mov edx, edi
cmova ecx, dword [ebp - 0x230]
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x24c], edi
jbe 0x40fbb3
mov edx, dword [edi]
mov dword [ebp - 0x24c], edx
mov edi, dword [ebp - 0x220]
cmp edi, eax
ja 0x40fd7d
sub eax, edi
cmp esi, eax
ja 0x40fd7d
test edi, edi
je 0x40fc85
inc eax
lea esi, [edx + esi*2]
lea ecx, [edx + eax*2]
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x248], ecx
movzx edi, word [eax]
mov dword [ebp - 0x254], edi
nop
sub ecx, esi
mov edx, 0
sar ecx, 1
je 0x40fc1d
movzx eax, word [esi]
cmp ax, di
je 0x40fc15
cmp ecx, 1
je 0x40fc17
movzx eax, word [esi + 2]
add esi, 2
dec ecx
cmp ax, di
jne 0x40fc03
mov edx, esi
mov eax, dword [ebp - 0x238]
mov esi, edx
test esi, esi
je 0x40fd7d
mov edi, dword [ebp - 0x220]
mov edx, eax
test edi, edi
je 0x40fc77
mov eax, esi
sub eax, dword [ebp - 0x238]
mov dword [ebp - 0x250], eax
movzx ecx, word [edx + eax]
movzx eax, word [edx]
cmp cx, ax
jne 0x40fc5d
add edx, 2
sub edi, 1
je 0x40fc77
mov eax, dword [ebp - 0x250]
jmp 0x40fc41
mov edi, dword [ebp - 0x254]
add esi, 2
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x248]
jmp 0x40fbf0
sub esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x220]
sar esi, 1
cmp esi, 0xffffffff
je 0x40fd7d
mov eax, dword [ebp - 0x240]
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x40fc9e
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
push 0xc
push str.localAppData
call fcn.004113e0
add esp, 8
test eax, eax
je 0x40fcee
mov eax, dword [ebp - 0x240]
add eax, 0x18
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40fcc8
mov eax, dword [eax]
push ecx
push eax
push edi
mov edi, dword [ebp - 0x244]
mov ecx, edi
push esi
call fcn.00411000
mov ecx, dword [ebp - 0x240]
mov byte [ebp - 0x231], 1
add esi, dword [ecx + 0x28]
jmp 0x40fb80
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [ebp - 0x244]
test eax, eax
je 0x40fb80
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x284]
call fcn.00410d90
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x40fd30
mov eax, dword [eax]
mov edi, dword [ebp - 0x244]
push ecx
push eax
push dword [ebp - 0x220]
mov ecx, edi
push esi
call fcn.00411000
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x284]
call fcn.0040e7b0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fd60
sub ecx, edx
mov byte [ebp - 0x231], 1
sar ecx, 1
add esi, ecx
jmp 0x40fb80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.0040e7b0
mov al, byte [ebp - 0x231]
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.0042e48e
mov esp, ebp
pop ebp
ret 8
call fcn.004015b0
int3