Function at 0x421f80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5727f9
mov eax, dword fs:[0]
push eax
sub esp, 8
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push eax
mov ecx, esi
call fcn.00448416
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CRyogaBaseDlg.0
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x421fdc
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x74], eax
mov byte [ebp - 4], 1
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x422009
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x78], eax
mov byte [ebp - 4], 2
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x422036
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x7c], eax
mov byte [ebp - 4], 3
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x422063
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x80], eax
lea edi, [esi + 0x88]
mov dword [edi], vtable.CArray_class_CSoftwareDispInfo__class_CSoftwareDispInfo__.0
mov dword [edi + 4], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov byte [ebp - 4], 5
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4220ab
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x9c], eax
mov byte [ebp - 4], 6
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4220db
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xa0], eax
mov byte [ebp - 4], 7
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42210b
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xa8], eax
mov byte [ebp - 4], 8
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42213b
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xb4], eax
mov byte [ebp - 4], 9
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42216b
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xb8], eax
mov byte [ebp - 4], 0xa
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42219b
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xbc], eax
mov byte [ebp - 4], 0xb
call fcn.00451023
call fcn.00451023
mov eax, dword [eax + 0xc]
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push edi
mov dword [esi + 0xdc], eax
call fcn.00417740
push ebx
push 0x5a04b0
lea ecx, [esi + 0x7c]
mov dword [esi + 0x84], ebx
call fcn.00401e60
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0x5a49f8
call fcn.00401a30
mov byte [ebp - 4], 0xc
call fcn.00451023
mov eax, dword [eax + 4]
add eax, 0xd0
mov byte [ebp - 4], 0xb
call fcn.0040e480
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42222e
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 + 0xc], eax
mov byte [ebp - 4], 0xd
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42225b
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0xe
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x422292
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00401db0
mov edi, dword [ebp - 0x10]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [edi - 8]
push eax
push edi
call fcn.005412d0
add esp, 8
cmp eax, ebx
jl 0x4224ba
cmp eax, dword [edi - 8]
jg 0x4224ba
xor ecx, ecx
mov dword [edi - 0xc], eax
lea edx, [ebp + 0xc]
mov word [edi + eax*2], cx
push edx
lea ecx, [ebp - 0x10]
call fcn.00406bc0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4222f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx - 0xc]
lea eax, [ecx - 1]
cmp eax, ebx
jl 0x4224ba
cmp eax, ecx
jg 0x4224ba
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x422329
push 1
push 0x5a02d4
lea ecx, [ebp + 0xc]
call fcn.00403ec0
push 0x18
push str.EPSONDownload_Navigator
lea ecx, [ebp + 0xc]
call fcn.00403ec0
push 1
push 0x5a02d4
lea ecx, [ebp + 0xc]
call fcn.00403ec0
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [esi + 0x7c]
call fcn.00401f10
mov ecx, esi
call fcn.00422780
mov edx, dword [0x5d9f88]
push str.kernel32.dll
mov dword [esi + 0xb0], edx
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x422399
push str.GetUserGeoID
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x422399
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x10
call dword [ebp - 0x10]
mov edi, eax
push ebx
push 0x5a04b0
lea ecx, [esi + 0xa8]
mov dword [esi + 0xac], edi
call fcn.00401e60
push ebx
push 0x5a04b0
lea ecx, [esi + 0xb4]
call fcn.00401e60
push ebx
push 0x5a04b0
lea ecx, [esi + 0xb8]
call fcn.00401e60
push ebx
push 0x5a04b0
lea ecx, [esi + 0xbc]
call fcn.00401e60
call fcn.00451023
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x258]
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x5a04b0
mov dword [esi + 0xc4], eax
call fcn.00401a30
mov byte [ebp - 4], 0xf
call fcn.00451023
push 0x12
mov byte [ebp - 4], 0xd
call fcn.004211a0
push ebx
push 1
push ecx
mov dword [esi + 0xd0], eax
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xc8], ebx
mov dword [ebp - 0x10], esp
mov edi, esp
call fcn.00447edb
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x422452
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.00401c70
mov byte [ebp - 4], 0x11
call fcn.00451023
push 0xd
mov byte [ebp - 4], 0xd
call fcn.004211a0
mov dword [esi + 0xd4], eax
mov byte [ebp - 4], 0xb
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4224a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00401fc0
int3