Function at 0x40156d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
mov ebx, 0x40e574
sbb eax, eax
xor edi, edi
neg eax
push str.Dell_Floppy_Diskette_Extractor
push ebx
mov dword [0x40e674], eax
mov dword [ebp - 8], edi
call fcn.004032f0
cmp dword [ebp + 0x10], edi
pop ecx
pop ecx
je 0x40179c
mov eax, dword [0x40b298]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
call fcn.004036db
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
je 0x40179c
push str._make
push esi
call fcn.00408be0
pop ecx
test eax, eax
pop ecx
je 0x4015fa
push str._makesilent
push esi
call fcn.00408be0
pop ecx
test eax, eax
pop ecx
jne 0x40179c
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
push eax
push edi
call fcn.004036db
pop ecx
mov esi, eax
pop ecx
lea eax, [ebp - 0x208]
push str.FloppyPack.log
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [0x40e674], edi
je 0x401662
cmp esi, edi
je 0x4016b9
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00402dd6
pop ecx
cmp eax, 0xfffffff6
pop ecx
jg 0x4016c2
je 0x4016b9
cmp eax, 0xffffffef
je 0x4016b0
cmp eax, 0xfffffff1
je 0x401692
cmp eax, 0xfffffff2
je 0x401686
cmp eax, 0xfffffff3
je 0x40167a
cmp eax, 0xfffffff4
je 0x40166e
cmp eax, 0xfffffff5
jne 0x4016df
push 0xfffffffffffffff5
push str.Error:_The_make_command_works_only_in_NT___d_
jmp 0x401728
push 0xfffffffffffffff4
push str.Error:_Message_file_can_not_be_read___d_
jmp 0x401728
push 0xfffffffffffffff3
push str.Error:_One_of_the_image_file_can_not_be_read___d_
jmp 0x401728
push 0xfffffffffffffff2
push str.Error:_No_EXE_filename_specified___d_
jmp 0x401728
push 0xfffffffffffffff1
push 0xa
lea eax, [ebp - 0x108]
push str.Error:_Only__d_diskette_images_are_allowed___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x401738
push 0xffffffffffffffef
push str.Error:_Detected_an_unsupported_invalid_image_file___d_
jmp 0x401728
push 0xfffffffffffffff6
push str.Error:_No_input_file_specified___d_
jmp 0x401728
cmp eax, 0xfffffff7
je 0x401721
cmp eax, 0xfffffff8
je 0x401718
cmp eax, 0xfffffff9
je 0x40170f
cmp eax, 0xfffffffe
je 0x401706
cmp eax, 0xffffffff
je 0x4016fd
cmp eax, edi
je 0x4016e7
push eax
push str.Unknown_error___d_
jmp 0x401728
lea eax, [ebp - 0x108]
push str.Make_Success
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
jmp 0x401738
push 0xffffffffffffffff
push str.Error:_Input_file_does_not_exist___d_
jmp 0x401728
push 0xfffffffffffffffe
push str.Error:_Unsupported_tokens_in_input_file___d_
jmp 0x401728
push 0xfffffffffffffff9
push str.Error:_Not_enough_memory___d_
jmp 0x401728
push 0xfffffffffffffff8
push str.Error:_File_write_failed___d_
jmp 0x401728
push 0xfffffffffffffff7
push str.Error:_No_image_file_found___d_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp - 8], edi
push edi
jne 0x40174f
lea eax, [ebp - 0x108]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4017b4
push 0x80
push 2
push edi
push edi
lea eax, [ebp - 0x208]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4017b4
lea eax, [ebp + 0x10]
push edi
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00403660
pop ecx
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4017b4
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push edi
push 0x4017f4
push edi
push 0x65
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10