Function at 0x406ad0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x994
mov eax, dword [0x42ea04]
xor eax, esp
mov dword [esp + 0x990], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push ebx
mov edi, 0xf
push 0x4266b6
lea ecx, [esp + 0xd4]
mov dword [esp + 0xec], edi
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
call fcn.00402860
mov esi, dword [esp + 0x9b0]
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00404fb0
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebx
jne 0x406b43
xor eax, eax
jmp 0x406b5c
mov ecx, dword [esp + 0x18]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, 1
mov ebp, 0x10
je 0x406c0b
sub eax, 1
jne 0x406fa8
mov ecx, dword [esp + 0x9b4]
mov edx, dword [esp + 0x9ac]
mov eax, dword [esp + 0x9a8]
push ecx
push esi
push edx
push eax
call fcn.00406a10
push 0x800
lea ecx, [esp + 0x1a4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x1a0]
add eax, 0xffffffff
mov edi, edi
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x406bb0
mov edx, dword [str._twain_32Ricoh]
mov ecx, dword [0x4268a4]
mov dword [eax], edx
mov edx, dword [0x4268a8]
mov dword [eax + 4], ecx
mov ecx, dword [0x4268ac]
mov dword [eax + 8], edx
lea edx, [esp + 0x1a0]
push edx
mov dword [eax + 0xc], ecx
call fcn.004042d0
add esp, 4
test eax, eax
jne 0x406c01
lea eax, [esp + 0x1a0]
push eax
call fcn.00402420
add esp, 4
call fcn.00401930
jmp 0x406fa8
lea ecx, [esp + 0x1a0]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x406c41
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x406c4a
call fcn.00411175
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0xd8]
call fcn.00402780
push 1
push 0xffffffffffffffff
push 0x4265f4
lea ecx, [esp + 0xd8]
call fcn.00401d60
push eax
push ebx
lea ecx, [esp + 0xf0]
push ecx
lea ecx, [esp + 0xd8]
call fcn.00402e00
push ebp
push str.WinME_2kXP_Vista
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00402860
lea eax, [esp + 0x1a0]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406cb6
sub eax, edx
push eax
lea edx, [esp + 0x1a4]
push edx
lea ecx, [esp + 0x48]
call fcn.00402860
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0xb8]
push edx
call fcn.00402f60
add esp, 0xc
cmp dword [esp + 0x58], ebp
jb 0x406d00
mov eax, dword [esp + 0x44]
push eax
call fcn.00407818
add esp, 4
cmp dword [esp + 0x3c], ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x406d1f
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00407818
add esp, 4
cmp dword [esp + 0xc8], ebp
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jae 0x406d42
lea eax, [esp + 0xb4]
push eax
call fcn.00402420
mov ecx, dword [esp + 0xb8]
add esp, 4
cmp dword [esp + 0xc8], ebp
jae 0x406d62
lea ecx, [esp + 0xb4]
cmp dword [esp + 0x100], ebp
mov eax, dword [esp + 0xec]
jae 0x406d79
lea eax, [esp + 0xec]
push ecx
push eax
call fcn.004016d0
mov eax, dword [esp + 0xbc]
add esp, 8
cmp dword [esp + 0xc8], ebp
jae 0x406d9a
lea eax, [esp + 0xb4]
lea edx, [esp + 0x20]
push edx
push 0x80
lea ecx, [esp + 0x128]
push ecx
push eax
call fcn.00401250
add esp, 0x10
test eax, eax
jne 0x406e54
push ebx
push str.Installation_Error
push str.Error_Inf_File
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0xc8], ebp
jb 0x406de8
mov edx, dword [esp + 0xb4]
push edx
call fcn.00407818
add esp, 4
cmp dword [esp + 0x100], ebp
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
jb 0x406e16
mov eax, dword [esp + 0xec]
push eax
call fcn.00407818
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x100], edi
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
call fcn.00404930
cmp dword [esp + 0xe4], ebp
jb 0x406e4d
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.00407818
add esp, 4
xor eax, eax
jmp 0x406ffc
lea edx, [esp + 0x120]
push edx
lea ecx, [esp + 0x60]
call fcn.00402dc0
push eax
push 0x4265f4
lea ecx, [esp + 0x80]
call fcn.00402dc0
push eax
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0xa0]
push ecx
call fcn.00402f60
add esp, 0xc
push eax
lea edx, [esp + 0x10c]
push edx
call fcn.00402f60
add esp, 0xc
cmp dword [esp + 0xac], ebp
jb 0x406eba
mov eax, dword [esp + 0x98]
push eax
call fcn.00407818
add esp, 4
cmp dword [esp + 0x90], ebp
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jb 0x406ee5
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.00407818
add esp, 4
cmp dword [esp + 0x74], ebp
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jb 0x406f0a
mov edx, dword [esp + 0x60]
push edx
call fcn.00407818
add esp, 4
cmp dword [esp + 0x11c], ebp
mov eax, dword [esp + 0x108]
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jae 0x406f2d
lea eax, [esp + 0x108]
push eax
call fcn.00404250
cmp dword [esp + 0x11c], ebp
jb 0x406f4c
mov eax, dword [esp + 0x108]
push eax
call fcn.00407818
add esp, 4
cmp dword [esp + 0xc8], ebp
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
jb 0x406f7a
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.00407818
add esp, 4
cmp dword [esp + 0x100], ebp
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov byte [esp + 0xb4], bl
jb 0x406fa8
mov edx, dword [esp + 0xec]
push edx
call fcn.00407818
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x406fd2
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push ecx
push eax
call fcn.00403180
mov edx, dword [esp + 0x24]
push edx
call fcn.00407818
add esp, 0x14
cmp dword [esp + 0xe4], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jb 0x406ff7
mov eax, dword [esp + 0xd0]
push eax
call fcn.00407818
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x9a0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00410f96
add esp, 0x994
ret 0x10