Function at 0x401da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
lea edi, [ebp - 0xa9]
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0xb4], eax
push eax
push str.partition_type:_s
push edi
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00401cb0
add esp, 0x10
mov esi, eax
test eax, eax
je 0x401e40
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x401e05
call fcn.004013a0
push edx
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
push str.FAILED___s__n
add eax, 0x40
push eax
call sub.msvcrt.dll_fprintf
add esp, 0x10
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [sym.imp.msvcrt.dll__iob]
xor esi, esi
add ebx, 0x40
push ebx
push 0x34
push 1
push str.Erase_successful__but_not_automatically_formatting._n
call sub.msvcrt.dll_fwrite
push ebx
push 0x20
push 1
push str.Cant_determine_partition_type._n
call sub.msvcrt.dll_fwrite
mov eax, esi
add esp, 0x20
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push 0x40
push edi
mov eax, dword [str.ext4]
push eax
call sub.msvcrt.dll_strncmp
add esp, 0x10
test eax, eax
je 0x401e95
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401fb1
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
push ebx
push 0x34
push 1
push str.Erase_successful__but_not_automatically_formatting._n
call sub.msvcrt.dll_fwrite
add esp, 0xc
push edi
push str.File_system_type__s_not_supported._n
push ebx
call sub.msvcrt.dll_fprintf
mov eax, esi
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0xb4]
push eax
push str.partition_size:_s
push edi
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401cb0
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x401f0e
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x401eea
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
push ebx
push 0x34
push 1
push str.Erase_successful__but_not_automatically_formatting._n
call sub.msvcrt.dll_fwrite
push ebx
push 0x1e
push 1
push str.Unable_to_get_partition_size_n.
call sub.msvcrt.dll_fwrite
add esp, 0x20
jmp 0x401dfb
call fcn.004013a0
push esi
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push str.FAILED___s__n
push eax
call sub.msvcrt.dll_fprintf
mov esi, ebx
add esp, 0x10
jmp 0x401dfb
push ecx
push 0x10
push 0
push edi
call fcn.0041a4e0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call dword [0x42000c]
mov edx, dword [ebp - 0x18]
add esp, 0x10
test edx, edx
je 0x40200f
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov edx, ebx
mov eax, ebx
sar edx, 0x1f
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov edx, edx
sub esp, 0xc
sar edx, 0x1f
add edi, 0x40
mov eax, edx
mov eax, edx
shr eax, 0x16
xor edx, edx
add eax, ecx
adc edx, ebx
shrd eax, edx, 0xa
sar edx, 0xa
push edx
push eax
mov eax, dword [ebp - 0xb4]
push eax
push str.sending__s___lli_KB_..._n
push edi
call sub.msvcrt.dll_fprintf
add esp, 0x1c
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00401820
add esp, 0x10
mov esi, eax
test eax, eax
je 0x401fd1
sub esp, 0xc
lea eax, [ebp - 0x28]
push eax
call dword [0x420010]
add esp, 0x10
jmp 0x401dfb
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push edi
push str.Formatting_is_not_supported_for_filesystem_with_type__s._n
push eax
call sub.msvcrt.dll_fprintf
or esi, 0xffffffff
add esp, 0x10
jmp 0x401dfb
push eax
lea ebx, [ebp - 0x68]
mov eax, dword [ebp - 0xb4]
push eax
push str.writing__s..._n
push edi
call sub.msvcrt.dll_fprintf
mov edi, dword [ebp - 0xb4]
push edi
push str.flash:_s
push 0x40
push ebx
call fcn.0041a8f0
add esp, 0x18
push ebx
mov esi, dword [ebp + 0xc]
push esi
call fcn.00401810
add esp, 0x10
mov esi, eax
jmp 0x401f9c
mov eax, dword [sym.imp.msvcrt.dll__iob]
or esi, 0xffffffff
add eax, 0x40
push eax
push 0x17
push 1
push str.Cannot_generate_image._n
call sub.msvcrt.dll_fwrite
add esp, 0x10
jmp 0x401dfb