Function at 0x4064c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431c98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43ec2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CControlDatFile_:_GetRegionInfo_r_n
push 0x442e1c
mov dword [ebp - 4], 0
call fcn.004013e0
add esp, 8
call fcn.0040d18b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40651b
push 0x80004005
call fcn.00401cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
call fcn.0040d18b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406548
push 0x80004005
call fcn.00401cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40657f
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401a40
mov esi, dword [ebp - 0x14]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00418b6b
add esp, 8
test eax, eax
jl 0x4068af
cmp eax, dword [esi - 8]
jg 0x4068af
xor ecx, ecx
mov dword [esi - 0xc], eax
lea edx, [ebp - 0x10]
mov word [esi + eax*2], cx
push edx
lea ecx, [ebp - 0x14]
call fcn.00402c20
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4065e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
test eax, eax
jl 0x4068af
cmp eax, ecx
jg 0x4068af
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x406616
push 1
push 0x437228
lea ecx, [ebp - 0x10]
call fcn.004014b0
push 6
push str.EPSON_
lea ecx, [ebp - 0x10]
call fcn.004014b0
call fcn.0040d18b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40663f
push 0x80004005
call fcn.00401cd0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ebx, 3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push str._sDownNaviLog.dat
push edx
call fcn.00402260
mov esi, dword [ebp - 0x14]
add esp, 8
add esi, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
push esi
call fcn.00401610
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov edi, esp
push eax
call fcn.00401610
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.00403140
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4372b0
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x437b28
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.RegionInfo
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 7
mov dword [ebp - 0x28], esp
mov edi, esp
push esi
call fcn.00401610
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x18]
add esp, 4
push eax
mov byte [ebp - 4], bl
call fcn.00402f40
add esp, 0x14
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0xc]
push eax
call fcn.00401580
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406734
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x4372b0
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Region
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 0xa
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.RegionInfo
call fcn.00401bf0
push ecx
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x1c], esp
mov edi, esp
push esi
call fcn.00401610
add eax, 0x10
lea ecx, [ebp + 0xc]
add esp, 4
mov dword [edi], eax
push ecx
mov byte [ebp - 4], bl
call fcn.00402f40
add esp, 0x14
mov edi, dword [ebp + 0x10]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.00401580
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4067c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push 0x437b58
push eax
call fcn.00418d73
add esp, 8
test eax, eax
jne 0x4067e8
mov ecx, dword [ebp + 0x14]
push ebx
push 0x437b5c
call fcn.00401af0
jmp 0x406835
mov eax, dword [edi]
push 0x437b64
push eax
call fcn.00418d73
add esp, 8
test eax, eax
jne 0x40680d
mov ecx, dword [ebp + 0x14]
push 9
push 0x437b68
call fcn.00401af0
jmp 0x406835
mov edi, dword [edi]
push 0x437b7c
push edi
call fcn.00418d73
mov ecx, dword [ebp + 0x14]
add esp, 8
test eax, eax
jne 0x40682b
push 0x437b80
jmp 0x406830
push 0x4372b0
call fcn.00401ba0
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406852
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406875
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40689b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.00401cd0
int3