Function at 0x401735
Capabilities:
Delete file
Get disk information
Move file
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x158
mov ebx, dword [ebp + 0xc]
call fcn.004026e0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x15c], 0
call fcn.0040133c
test eax, eax
jne 0x4017ad
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push str.You_need_to_be_running_at_least_Windows_NT__use_syslinux.com_instead._n
jmp 0x401e14
mov eax, dword [ebx]
mov dword [0x408250], 0
lea edx, [ebx + 4]
mov dword [0x408260], eax
cmp dword [ebx + 4], 0
je 0x40187b
mov eax, dword [edx]
cmp byte [eax], 0x2d
jne 0x401851
cmp byte [eax + 1], 0
lea ecx, [eax + 1]
je case.0x4017ee.98
movsx eax, byte [ecx]
sub eax, 0x61
cmp eax, 0x12
ja case.0x4017ee.98
jmp dword [eax*4 + 0x407448]
mov dword [ebp - 0x154], 1
jmp 0x401849
mov dword [ebp - 0x158], 1
jmp 0x401849
mov esi, 1
jmp 0x401849
mov dword [ebp - 0x14c], 1
jmp 0x401849
mov dword [ebp - 0x150], 1
jmp 0x401849
mov dword [ebp - 0x15c], 1
jmp 0x401849
cmp dword [edx + 4], 0
je 0x401849
add edx, 4
mov eax, dword [edx]
mov dword [ebp - 0x148], eax
inc ecx
cmp byte [ecx], 0
jne 0x4017df
jmp 0x401870
cmp dword [ebp - 0x144], 0
jne case.0x4017ee.98
cmp dword [0x408250], 0
je 0x40186b
mov dword [ebp - 0x144], eax
jmp 0x401870
mov dword [0x408250], eax
add edx, 4
cmp dword [edx], 0
jmp 0x4017c5
mov eax, dword [0x408250]
test eax, eax
je case.0x4017ee.98
movsx edx, byte [eax]
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x4018a3
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [eax]
movzx eax, word [eax + edx*2]
and eax, 0x103
jmp 0x4018b0
push 0x103
push edx
call sub.msvcrt.dll__isctype
pop edx
pop ecx
test eax, eax
je case.0x4017ee.98
mov eax, dword [0x408250]
cmp byte [eax + 1], 0x3a
jne case.0x4017ee.98
cmp byte [eax + 2], 0
je 0x4018ca
call fcn.0040171b
call sub.KERNEL32.dll_GetLogicalDrives
mov ebx, eax
mov eax, dword [0x408250]
movsx eax, byte [eax]
push eax
call sub.msvcrt.dll_tolower
pop edi
lea ecx, [eax - 0x61]
mov eax, 1
shl eax, cl
mov edx, dword [0x408250]
test eax, ebx
jne 0x401902
movsx eax, byte [edx]
push eax
push str.No_such_drive__c:_n
jmp 0x4019f1
movzx eax, byte [edx]
mov byte [0x403004], al
movzx eax, byte [edx]
mov byte [str._:ldlinux.sys], al
movzx eax, byte [edx]
mov byte [0x403007], al
push 0x403007
call sub.KERNEL32.dll_GetDriveTypeA
cmp eax, 3
mov ecx, eax
sete dl
xor eax, eax
test esi, esi
sete al
test edx, eax
je 0x40194a
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push str.Not_a_removable_drive__use__f_to_override___n
jmp 0x401e14
lea eax, [ecx - 2]
cmp eax, 1
jbe 0x401965
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push str.Unsupported_media_n
jmp 0x401e14
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.._:
call sub.KERNEL32.dll_CreateFileA
mov dword [ebp - 0x13c], eax
inc eax
jne 0x401991
push str.Could_not_open_drive
jmp 0x401dbc
push 0
lea eax, [ebp - 0x130]
push eax
push 0x200
push 0x408010
push dword [ebp - 0x13c]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x4019bd
push str.Reading_boot_sector
jmp 0x401dbc
cmp dword [ebp - 0x130], 0x200
je 0x4019dc
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push str.Could_not_read_the_whole_boot_sector_n
jmp 0x401e14
push 0x408010
call fcn.00401e6f
pop ecx
test eax, eax
je 0x401a04
push eax
push 0x4072d4
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
jmp 0x401e19
cmp dword [ebp - 0x15c], 0
jne 0x401b86
push pe_nt_image_headers32
push str._:ldlinux.sys
call sub.KERNEL32.dll_SetFileAttributesA
push str._:ldlinux.sys
call sub.KERNEL32.dll_DeleteFileA
push 0
push 7
push 2
push 0
push 3
push 0xc0000000
push str._:ldlinux.sys
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
mov ebx, eax
jne 0x401a54
push str.Unable_to_create_ldlinux.sys
jmp 0x401dbc
push 0
lea edx, [ebp - 0x134]
push edx
push dword [0x403284]
push str._r_nSYSLINUX_3.63_2008_04_10
push eax
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x401b74
mov eax, dword [0x403284]
cmp dword [ebp - 0x134], eax
je 0x401a96
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push str.Could_not_write_whole_ldlinux.sys_n
jmp 0x401e14
push ebx
call sub.KERNEL32.dll_FlushFileBuffers
test eax, eax
jne 0x401aaa
push str.FlushFileBuffers_failed
jmp 0x401dbc
push dword [ebp - 0x13c]
xor edi, edi
push 0x4016a1
call fcn.00402430
push 0
mov esi, eax
push str.LDLINUX_SYS
push 0
push eax
call fcn.004025a0
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x140], edx
push eax
push esi
call fcn.00402280
mov ecx, eax
add esp, 0x20
test eax, eax
je 0x401b17
mov eax, dword [ebp - 0x140]
inc edi
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 0x140], eax
push ecx
push esi
call fcn.004022b1
mov ecx, eax
test ecx, ecx
pop eax
setne al
pop edx
xor edx, edx
cmp edi, 0x40
setle dl
test eax, edx
jmp 0x401ae7
push esi
call fcn.00402585
push dword [ebp - 0x158]
lea eax, [ebp - 0x11c]
push dword [ebp - 0x154]
push edi
push eax
call fcn.004020e4
push 0
push 0
push 0
push ebx
call sub.KERNEL32.dll_SetFilePointer
add esp, 0x14
test eax, eax
jne 0x401b74
push 0
lea edx, [ebp - 0x134]
push edx
push dword [0x403284]
push str._r_nSYSLINUX_3.63_2008_04_10
push ebx
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x401b74
mov eax, dword [0x403284]
cmp dword [ebp - 0x134], eax
je 0x401b7e
push str.Could_not_write_ldlinux.sys
jmp 0x401dbc
push ebx
call sub.KERNEL32.dll_CloseHandle
jmp 0x401bce
push 0
lea eax, [ebp - 0x138]
push eax
push 0
push 0
push 0
push 0
push 0x90020
push dword [ebp - 0x13c]
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
jne 0x401bce
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push str.failed_to_dismount_n
call sub.msvcrt.dll_fputs
push dword [ebp - 0x13c]
call sub.KERNEL32.dll_CloseHandle
jmp 0x401e19
mov eax, dword [ebp - 0x14c]
or eax, dword [ebp - 0x150]
or eax, dword [ebp - 0x15c]
je 0x401c49
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x13c]
call fcn.00401666
pop edx
test eax, eax
pop ecx
je 0x401c34
push dword [ebp - 0x15c]
push dword [ebp - 0x150]
push dword [ebp - 0x14c]
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call fcn.004013be
add esp, 0x14
test eax, eax
jne 0x401c49
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push str.Did_not_successfully_update_the_MBR__continuing..._n
jmp 0x401c42
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push str.Could_not_find_device_number_for_updating_MBR__continuing..._n
call sub.msvcrt.dll_fputs
pop edi
pop eax
cmp dword [ebp - 0x15c], 0
je 0x401c64
push dword [ebp - 0x13c]
call sub.KERNEL32.dll_CloseHandle
push 0
jmp 0x401e1b
cmp dword [ebp - 0x148], 0
je 0x401d5e
mov dword [ebp - 0x160], esp
mov edi, dword [ebp - 0x148]
xor eax, eax
cld
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + 0x21]
and eax, 0xfffffffc
call fcn.00402840
mov dword [ebp - 0x164], 1
mov eax, dword [0x408250]
lea edi, [esp + 0xf]
and edi, 0xfffffff0
lea ecx, [edi + 3]
movzx eax, byte [eax]
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi], al
mov esi, dword [ebp - 0x148]
cmp byte [esi], 0
je 0x401cff
movzx ebx, byte [esi]
cmp bl, 0x2f
sete al
cmp bl, 0x5c
sete dl
or eax, edx
test al, 1
je 0x401cef
cmp dword [ebp - 0x164], 0
jne 0x401cfc
mov dword [ebp - 0x164], 1
mov bl, 0x5c
jmp 0x401cf9
mov dword [ebp - 0x164], 0
mov byte [ecx], bl
inc ecx
inc esi
jmp 0x401cbe
lea eax, [edi + 3]
cmp ecx, eax
jbe 0x401d58
cmp dword [ebp - 0x164], 0
jne 0x401d13
mov byte [ecx], 0x5c
inc ecx
mov dword [ecx], 0x696c646c
mov dword [ecx + 4], 0x2e78756e
mov dword [ecx + 8], 0x737973
push pe_nt_image_headers32
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push edi
push str._:ldlinux.sys
call sub.KERNEL32.dll_MoveFileA
test eax, eax
jne 0x401d50
push 7
push str._:ldlinux.sys
jmp 0x401d53
push 7
push edi
call sub.KERNEL32.dll_SetFileAttributesA
mov esp, dword [ebp - 0x160]
push 0x408010
call fcn.00401e40
cmp dword [ebp - 0x144], 0
pop esi
je 0x401dcb
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
push dword [ebp - 0x144]
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
mov ebx, eax
jne 0x401d9a
push str.Unable_to_create_bootsector_file
jmp 0x401dbc
push 0
lea eax, [ebp - 0x134]
push eax
push 0x200
push 0x408010
push ebx
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x401dc3
push str.Could_not_write_boot_sector_file
call fcn.00401376
jmp 0x401e19
push ebx
call sub.KERNEL32.dll_CloseHandle
jmp 0x401dfa
push 0
push 0
push 0
push dword [ebp - 0x13c]
call sub.KERNEL32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x134]
push eax
push 0x200
push 0x408010
push dword [ebp - 0x13c]
call sub.KERNEL32.dll_WriteFile
cmp dword [ebp - 0x134], 0x200
je 0x401e20
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push str.Could_not_write_the_whole_boot_sector_n
call sub.msvcrt.dll_fputs
push 1
call sub.msvcrt.dll_exit
push dword [ebp - 0x13c]
call sub.KERNEL32.dll_CloseHandle
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret