Function at 0x42e0f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x572200
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d1614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42e139
push 0x80004005
call fcn.00401fc0
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.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42e166
push 0x80004005
call fcn.00401fc0
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 0x42e19d
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401db0
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.005412d0
add esp, 8
test eax, eax
jl 0x42e506
cmp eax, dword [esi - 8]
jg 0x42e506
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.00406bc0
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 0x42e202
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 0x42e506
cmp eax, ecx
jg 0x42e506
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x42e234
push 1
push 0x5a02d4
lea ecx, [ebp - 0x10]
call fcn.00403ec0
push 6
push str.EPSON_
lea ecx, [ebp - 0x10]
call fcn.00403ec0
call fcn.00447edb
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42e25d
push 0x80004005
call fcn.00401fc0
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.00402800
mov esi, dword [ebp - 0x14]
add esp, 8
add esi, 0xfffffff0
mov dword [ebp - 0x18], esp
mov edi, esp
push esi
call fcn.00401fe0
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.00401fe0
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [ebp - 4], 5
call fcn.00451023
mov eax, dword [eax + 4]
lea ecx, [eax + 0x13c]
mov byte [ebp - 4], bl
call fcn.00416560
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x5a5ad4
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.00401fe0
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x18]
add esp, 4
push eax
mov byte [ebp - 4], bl
call fcn.00407a10
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 8
call fcn.00401f10
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 0x42e350
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.00401fe0
add eax, 0x10
lea ecx, [ebp - 0x18]
add esp, 4
mov dword [edi], eax
push ecx
mov byte [ebp - 4], bl
call fcn.00407a10
add esp, 0x10
mov edi, dword [ebp + 0x10]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.00401f10
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 0x42e3cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
push 0x5a5b04
push eax
call fcn.00541d4b
add esp, 8
test eax, eax
jne 0x42e3fa
mov ecx, dword [ebp + 0x14]
push ebx
push 0x5a5b08
mov dword [0x5da190], 1
call fcn.00401e60
jmp 0x42e44d
mov eax, dword [edi]
push 0x5a05b8
push eax
call fcn.00541d4b
add esp, 8
test eax, eax
jne 0x42e41f
mov dword [0x5da190], 2
push 0x5a5b10
jmp 0x42e445
mov eax, dword [edi]
push 0x5a5b24
push eax
call fcn.00541d4b
add esp, 8
test eax, eax
jne 0x42e440
mov dword [0x5da190], ebx
push 0x5a5b28
jmp 0x42e445
push 0x5a04b0
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 0x5d9f60
call fcn.00403a60
mov eax, dword [edi]
push eax
push str.UI_MODE_:_VERSION_CHECK_:_DRIVER_REGION___s_r_n
push 0x5d9f60
call fcn.00403a60
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
push str.UI_MODE_:_VERSION_CHECK_:_REGION___s_r_n
push 0x5d9f60
call fcn.00403a60
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 0x42e4a9
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 0x42e4cc
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 0x42e4f2
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.00401fc0
int3