Function at 0x421f30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5736e9
mov eax, dword fs:[0]
push eax
sub esp, 8
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 esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push eax
mov ecx, esi
call fcn.00448f88
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CRyogaBaseDlg.0
call fcn.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x421f8c
push 0x80004005
call fcn.00401fd0
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.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x421fb9
push 0x80004005
call fcn.00401fd0
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.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x421fe6
push 0x80004005
call fcn.00401fd0
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.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x422013
push 0x80004005
call fcn.00401fd0
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.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42205b
push 0x80004005
call fcn.00401fd0
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.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42208b
push 0x80004005
call fcn.00401fd0
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.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4220bb
push 0x80004005
call fcn.00401fd0
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.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4220eb
push 0x80004005
call fcn.00401fd0
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.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42211b
push 0x80004005
call fcn.00401fd0
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.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42214b
push 0x80004005
call fcn.00401fd0
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.00451b96
call fcn.00451b96
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.00417730
push ebx
push 0x5a14b0
lea ecx, [esi + 0x7c]
mov dword [esi + 0x84], ebx
call fcn.00401e90
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push 0x5a5a00
call fcn.00401a30
mov byte [ebp - 4], 0xc
call fcn.00451b96
mov eax, dword [eax + 4]
add eax, 0xd0
mov byte [ebp - 4], 0xb
call fcn.0040e3f0
call fcn.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4221de
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 + 0xc], eax
mov byte [ebp - 4], 0xd
call fcn.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42220b
push 0x80004005
call fcn.00401fd0
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 0x422242
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00401de0
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.0054213d
add esp, 8
cmp eax, ebx
jl 0x42246a
cmp eax, dword [edi - 8]
jg 0x42246a
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.00406bd0
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 0x4222a7
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 0x42246a
cmp eax, ecx
jg 0x42246a
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x4222d9
push 1
push 0x5a12d4
lea ecx, [ebp + 0xc]
call fcn.00403ee0
push 0x18
push str.EPSONDownload_Navigator
lea ecx, [ebp + 0xc]
call fcn.00403ee0
push 1
push 0x5a12d4
lea ecx, [ebp + 0xc]
call fcn.00403ee0
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [esi + 0x7c]
call fcn.00401f40
mov ecx, esi
call fcn.00422730
mov edx, dword [0x5dafe8]
push str.kernel32.dll
mov dword [esi + 0xb0], edx
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x422349
push str.GetUserGeoID
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x422349
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x10
call dword [ebp - 0x10]
mov edi, eax
push ebx
push 0x5a14b0
lea ecx, [esi + 0xa8]
mov dword [esi + 0xac], edi
call fcn.00401e90
push ebx
push 0x5a14b0
lea ecx, [esi + 0xb4]
call fcn.00401e90
push ebx
push 0x5a14b0
lea ecx, [esi + 0xb8]
call fcn.00401e90
push ebx
push 0x5a14b0
lea ecx, [esi + 0xbc]
call fcn.00401e90
call fcn.00451b96
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 0x5a14b0
mov dword [esi + 0xc4], eax
call fcn.00401a30
mov byte [ebp - 4], 0xf
call fcn.00451b96
push 0x12
mov byte [ebp - 4], 0xd
call fcn.00421140
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.00448a4d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x422402
push 0x80004005
call fcn.00401fd0
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.00401ca0
mov byte [ebp - 4], 0x11
call fcn.00451b96
push 0xd
mov byte [ebp - 4], 0xd
call fcn.00421140
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 0x422454
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.00401fd0
int3