Function at 0x1000d656
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x80000301
push 0
push 0x208
push 1
mov ebx, 0x1bc
call fcn.10012d30
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000d6b7
push ebx
call fcn.1000fb09
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.1000b00b
mov dword [ebp - 8], eax
cmp dword [ebp + 0x14], 0
mov eax, 0
sete al
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x1000d8d9
mov dword [ebp - 0x18], esp
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000d719
push 0xe9
push 0x4013e9d
push 6
call fcn.1000fb1b
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1000d730
mov eax, 0x10073a0c
jmp 0x1000db2d
mov dword [ebp - 0x18], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000d75c
push 0x147
push 0x4013e9d
push 6
call fcn.1000fb1b
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000d773
mov eax, 0x10073a0c
jmp 0x1000db2d
fild dword [ebp - 0xc]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x10073c6b]
fstp qword [ebp - 0x24]
fild dword [ebp - 8]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
fadd qword [ebp - 0x24]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
fsub qword [0x10073c6b]
fstp qword [ebp - 0x3c]
push 0x80000301
push 0
push 2
fld qword [ebp - 0x3c]
call fcn.10001222
push 0x80000301
push 0
push eax
push 2
mov ebx, 0x910
call fcn.10013e00
add esp, 0x1c
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000d7e5
push ebx
call fcn.1000fb09
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov eax, 0x10073ead
xor ecx, ecx
test eax, eax
je 0x1000d7f7
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x10]
xor ebx, ebx
test eax, eax
je 0x1000d808
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x1000d81f
dec eax
test ecx, ecx
je 0x1000d81f
call fcn.100024e8
add esp, 0xc
test eax, eax
je 0x1000d855
fild dword [ebp - 0xc]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x10073c6b]
fstp qword [ebp - 0x24]
push 0x5c
fld qword [ebp - 0x24]
call fcn.10001222
push eax
push dword [ebp - 8]
call fcn.1000db55
inc dword [ebp - 0xc]
fild dword [ebp - 0xc]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x10073c6b]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x10073c6b]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.10001222
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0x910
call fcn.10013e00
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000d8b6
push ebx
call fcn.1000fb09
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000d8d4
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1000fb03
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000db2d
cmp dword [ebp + 8], 0
jle 0x1000d8f1
cmp dword [ebp + 8], 0xd
jg 0x1000d8f1
xor eax, eax
jmp 0x1000d8f6
mov eax, 1
test eax, eax
je 0x1000d905
mov dword [ebp + 8], 3
cmp dword [ebp + 8], 1
jl 0x1000d920
cmp dword [ebp + 8], 0xa
jg 0x1000d920
mov eax, 1
jmp 0x1000d925
mov eax, 0
test eax, eax
je 0x1000d9e9
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x1000d93a
cmp eax, 0xb
jl 0x1000d951
push 0x4cb
push 0x4013e9d
push 9
call fcn.1000fb1b
add esp, 0xc
dec eax
call 0x1000d957
pop ebx
add ebx, dword [eax*4 + 0x10073eb7]
jmp ebx
cmp dword [ebp + 8], 0xb
jne 0x1000dac4
mov dword [ebp - 0x18], esp
push dword [ebp - 8]
push 0x104
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x1000da24
push 0x596
push 0x4013e9d
push 6
call fcn.1000fb1b
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000da3b
mov eax, 0x10073a0c
jmp 0x1000db2d
fild dword [ebp - 0xc]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x10073c6b]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x10073c6b]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.10001222
push 0x80000301
push 0
push eax
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0x910
call fcn.10013e00
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000da9c
push ebx
call fcn.1000fb09
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000daba
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1000fb03
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000db2d
cmp dword [ebp + 8], 0xc
jne 0x1000daf6
push 1
push 0x20
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
call fcn.1000d656
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
jmp 0x1000db2d
cmp dword [ebp + 8], 0xd
jne 0x1000db23
push 1
push 0x23
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
call fcn.1000d656
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
jmp 0x1000db2d
mov eax, 0x10073a0c
jmp 0x1000db2d
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000db3e
push ebx
call fcn.1000fb09
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000db4e
push ebx
call fcn.1000fb09
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10