Function at 0x404280
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1014
call fcn.00414550
mov eax, dword [0x41e008]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc18]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea eax, [esp + 0xc18]
push 0x418e68
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov ebx, eax
add esp, 8
mov edx, ebx
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4042d1
sub edx, esi
je 0x404495
lea edx, [esp + 0x818]
mov ecx, ebx
sub edx, ebx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4042f0
lea eax, [esp + 0x818]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
je 0x404470
cmp eax, 2
je 0x404470
cmp eax, 5
je 0x404470
cmp eax, 6
je 0x404470
cmp eax, 4
je 0x404470
xor esi, esi
nop dword [eax + eax]
mov dl, byte [0x41e8ee]
mov eax, esi
sub eax, 0
je 0x40439c
sub eax, 1
je 0x404386
sub eax, 1
jne 0x4043be
mov byte [esp + 0x18], al
test dl, dl
je 0x4043be
movups xmm0, xmmword [str.Program_Files__x86_]
mov eax, dword [0x418e94]
mov dword [esp + 0x28], eax
movups xmmword [esp + 0x18], xmm0
jmp 0x4043be
mov eax, dword [str.DBDOC]
mov dword [esp + 0x18], eax
mov ax, word [0x418e80]
mov word [esp + 0x1c], ax
jmp 0x4043be
mov eax, dword [0x418e74]
movq xmm0, qword [str.Program_Files]
mov dword [esp + 0x20], eax
mov ax, word [0x418e78]
movq qword [esp + 0x18], xmm0
mov word [esp + 0x24], ax
lea ecx, [esp + 0x18]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4043c5
sub ecx, edi
je 0x404428
xor eax, eax
mov cl, byte [esp + eax + 0x818]
lea eax, [eax + 1]
mov byte [esp + eax + 0x417], cl
test cl, cl
jne 0x4043d2
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x404418
lea ecx, [esp + 0x418]
call fcn.004045b0
inc esi
cmp esi, 3
jl 0x404350
mov dl, byte [0x41e8ee]
mov ecx, 0x41f0f0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404430
sub ecx, esi
jne 0x404470
cmp dword [0x421530], 1
lea eax, [esp + 0x818]
push eax
jne 0x404453
push str._sDBDOCCIUMon
jmp 0x404463
test dl, dl
je 0x40445e
push str._sProgram_Files__x86_GMCL
jmp 0x404463
push str._sProgram_FilesGMCL
push 0x41f0f0
call fcn.004010e0
add esp, 0xc
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404475
sub ecx, edx
inc ecx
add ebx, ecx
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404486
sub ecx, edx
jne 0x4042e0
mov ecx, dword [0x41f8f4]
call fcn.0040e0c0
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.004092d0
mov dword [esp + 0x10], eax
test eax, eax
je 0x404586
mov ecx, eax
call fcn.00409990
mov esi, eax
lea edi, [esp + 0x418]
sub edi, esi
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edi + eax - 1], cl
test cl, cl
jne 0x4044d0
push str.setupex.exe
lea eax, [esp + 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404571
mov ecx, dword [0x41f8f4]
mov edx, esi
call fcn.0040a560
mov ebx, eax
test ebx, ebx
je 0x404571
push 1
push 2
push str.Setup
push ebx
call fcn.0040a2c0
add esp, 0x10
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edi + esi - 1], al
test al, al
jne 0x404527
push str.cks.exe
lea eax, [esp + 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404571
push 1
push 2
push 0x418eec
push ebx
call fcn.0040a2c0
add esp, 0x10
inc dword [0x420100]
mov ecx, dword [esp + 0x10]
call fcn.00409310
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4044b7
mov ecx, dword [esp + 0x14]
call fcn.00409420
mov ecx, dword [esp + 0x101c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412814
mov esp, ebp
pop ebp
ret