Function at 0x404210
Capabilities:
Get common file path
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc68
mov al, byte [0x41bf38]
test al, al
push ebx
push ebp
push esi
push edi
jne 0x404281
push 0x41bf50
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x404281
mov eax, dword [str.moviesm1_intro.avi]
mov ebx, dword [sym.imp.Platform.dll_void___cdecl_safe_snprintf_char___int__char_const__]
push eax
push 0x41bf50
push str._s_bond_s
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call ebx
add esp, 0x14
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40428e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0x4157b1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [str.Insert_CD2]
mov ax, word [0x4159f4]
mov edx, dword [0x4159f0]
mov dword [esp + 0x268], ecx
mov cl, byte [0x4159f6]
mov word [esp + 0x270], ax
mov byte [esp + 0x272], cl
mov dword [esp + 0x26c], edx
xor eax, eax
mov ecx, 0x1fd
lea edi, [esp + 0x273]
push 0x41bf50
rep stosd dword es:[edi], eax
push str._scdprompt.txt
lea edx, [esp + 0x28]
push 0x104
push edx
stosb byte es:[edi], al
call ebx
lea eax, [esp + 0x30]
push 0x4159c4
push eax
call fcn.00405f56
mov esi, eax
add esp, 0x18
test esi, esi
je 0x404353
mov ecx, dword [esi + 0x10]
push ecx
call fcn.00405e26
mov edi, eax
add esp, 4
test edi, edi
je 0x40434a
cmp edi, 0x7ff
jbe 0x404321
mov edi, 0x7ff
push 0x800
push 0
lea edx, [esp + 0x270]
push edx
call dword [sym.imp.Platform.dll_void____stdcall_memsetx_void___char__int_]
push esi
push 1
lea eax, [esp + 0x270]
push edi
push eax
call fcn.00405dda
add esp, 0x10
push esi
call fcn.00405ca0
add esp, 4
mov ecx, dword [str.moviesm1_intro.avi]
mov edx, dword [str.Nightfire_bond_]
push ecx
push edx
push str.d:_s_s
lea eax, [esp + 0x2c]
push 0x104
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0x14
jmp 0x404380
push 0x8001
call ebp
push 4
push 0x4159d0
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
call dword [sym.imp.Platform.dll_void___stdcall_safe_strncpy_char___char_const___int_]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
xor ebx, ebx
mov edx, 1
mov ecx, ebx
shl edx, cl
test esi, edx
je 0x404422
mov al, bl
lea ecx, [esp + 0x10]
add al, 0x41
push ecx
mov byte [esp + 0x14], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jmp 0x4043ca
push 0x104
lea edx, [esp + 0xb74]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
lea eax, [esp + 0xa80]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jmp 0x404402
mov dl, byte [esp + 0x10]
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x28], dl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jmp 0x404459
inc ebx
cmp ebx, 0x1a
jb 0x4043a5
push edi
call ebp
push 0x35
lea edx, [esp + 0x26c]
push edx
lea eax, [esp + 0x270]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x404380
push 0xffffffffffffffff
call fcn.0040551c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [str.Nightfire_bond_]
movsx edx, byte [esp + 0x10]
push ecx
push edx
push str._c:_s
push 0x400
push 0x41bf50
call dword [sym.imp.Platform.dll_void___cdecl_safe_snprintf_char___int__char_const__]
add esp, 0x14
pop edi
mov eax, 0x41bf50
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret