Function at 0x42ed00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573100
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42ed49
push 0x80004005
call fcn.00401fd0
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.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42ed76
push 0x80004005
call fcn.00401fd0
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 0x42edad
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401de0
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.0054213d
add esp, 8
test eax, eax
jl 0x42f116
cmp eax, dword [esi - 8]
jg 0x42f116
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.00406bd0
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 0x42ee12
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 0x42f116
cmp eax, ecx
jg 0x42f116
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x42ee44
push 1
push 0x5a12d4
lea ecx, [ebp - 0x10]
call fcn.00403ee0
push 6
push str.EPSON_
lea ecx, [ebp - 0x10]
call fcn.00403ee0
call fcn.00448a4d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42ee6d
push 0x80004005
call fcn.00401fd0
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.00402820
mov esi, dword [ebp - 0x14]
add esp, 8
add esi, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
push esi
call fcn.00402000
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.00402000
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 5
call fcn.00451b96
mov eax, dword [eax + 4]
lea ecx, [eax + 0x13c]
mov byte [ebp - 4], bl
call fcn.00416550
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5a6f4c
call fcn.00401a30
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.RegionInfo
call fcn.00401a30
push ecx
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], esp
mov edi, esp
push esi
call fcn.00402000
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x18]
add esp, 4
push eax
mov byte [ebp - 4], bl
call fcn.00407a20
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 8
call fcn.00401f40
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 0x42ef60
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 - 0x24], esp
push str.Region
call fcn.00401a30
push ecx
mov byte [ebp - 4], 9
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.RegionInfo
call fcn.00401a30
push ecx
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x1c], esp
mov edi, esp
push esi
call fcn.00402000
add eax, 0x10
lea ecx, [ebp - 0x18]
add esp, 4
mov dword [edi], eax
push ecx
mov byte [ebp - 4], bl
call fcn.00407a20
add esp, 0x10
mov edi, dword [ebp + 0x10]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.00401f40
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42efdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push 0x5a6f7c
push eax
call fcn.00542bb8
add esp, 8
test eax, eax
jne 0x42f00a
mov ecx, dword [ebp + 0x14]
push ebx
push 0x5a6f80
mov dword [0x5db1f0], 1
call fcn.00401e90
jmp 0x42f05d
mov eax, dword [edi]
push 0x5a15b8
push eax
call fcn.00542bb8
add esp, 8
test eax, eax
jne 0x42f02f
mov dword [0x5db1f0], 2
push 0x5a6f88
jmp 0x42f055
mov eax, dword [edi]
push 0x5a6f9c
push eax
call fcn.00542bb8
add esp, 8
test eax, eax
jne 0x42f050
mov dword [0x5db1f0], ebx
push 0x5a6fa0
jmp 0x42f055
push 0x5a14b0
mov ecx, dword [ebp + 0x14]
call fcn.004019e0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push str.UI_MODE_:_VERSION_CHECK_:_RID___s_r_n
push 0x5dafc0
call fcn.00403a80
mov eax, dword [edi]
push eax
push str.UI_MODE_:_VERSION_CHECK_:_DRIVER_REGION___s_r_n
push 0x5dafc0
call fcn.00403a80
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
push str.UI_MODE_:_VERSION_CHECK_:_REGION___s_r_n
push 0x5dafc0
call fcn.00403a80
add esp, 0x24
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42f0b9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
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 0x42f0dc
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 0x42f102
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.00401fd0
int3