Function at 0x44cf70
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2004]
mov eax, 0x2004
call fcn.0048f460
push 0xffffffffffffffff
push 0x4ae348
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4ecba0]
xor eax, ebp
mov dword [ebp + 0x2000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x1c], edi
call fcn.0046d74a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x44cfd3
push 0x80004005
call fcn.00402240
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 0x2018]
mov bl, byte [ebp + 0x2010]
shl esi, 0xa
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 1
test bl, bl
jne 0x44d071
mov byte [ebp - 0x11], bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x567
push str.CFat32Format::vSetDiskPartSetupInfo
push str._s:_d:__ucPhysicalAddress_is_invalid__m_ucPhysicalAddress_:__d___dwErrorCode__d
call fcn.0044b650
add esp, 0x14
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44d047
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2000]
xor ecx, ebp
call fcn.0048f35c
add ebp, 0x2004
mov esp, ebp
pop ebp
ret 0x10
push 0x2000
lea ecx, [ebp]
push edi
push ecx
call fcn.0048f850
add esp, 0xc
cmp byte [ebp + 0x2014], 0
jne 0x44d0ce
cmp esi, edi
movsx edi, bl
je 0x44d0b5
movsx edx, byte [ebp + 0x200c]
push edx
push esi
push edi
push str._list_disk_n_select_disk__d_n_online_disk_noerr__n_attributes_disk_clear_readonly_noerr__n_clean__nconvert_mbr__ncreate_partition_primary_offset_u__n_select_partition_1_n_assign_letter_C_n
lea eax, [ebp]
push 0x2000
push eax
call fcn.00490173
add esp, 0x18
jmp 0x44d116
movsx ecx, byte [ebp + 0x200c]
push ecx
push edi
push str._list_disk_n_select_disk__d_n_online_disk_noerr__n_attributes_disk_clear_readonly_noerr__n_clean__nconvert_mbr__ncreate_partition_primary__n_select_partition_1_n_assign_letter_C_n
push 0x2000
lea edx, [ebp]
push edx
jmp 0x44d10e
cmp esi, edi
movsx edi, bl
je 0x44d0f7
movsx eax, byte [ebp + 0x200c]
push eax
push esi
push edi
push str._list_disk_n_select_disk__d_n_online_disk_noerr__n_clean__n_convert_gpt_ncreate_partition_primary_offset_u__n_select_partition_2_n_assign_letter_C_n
lea ecx, [ebp]
push 0x2000
push ecx
call fcn.00490173
add esp, 0x18
jmp 0x44d116
movsx edx, byte [ebp + 0x200c]
push edx
push edi
push str._list_disk_n_select_disk__d_n_online_disk_noerr__n_clean__n_convert_gpt_ncreate_partition_primary__n_select_partition_2_n_assign_letter_C_n
push 0x2000
lea eax, [ebp]
push eax
call fcn.00490173
add esp, 0x14
push 0x4c52c4
push edi
push str.DiskPartTarget
lea ecx, [ebp - 0x18]
push str._s_d._s
push ecx
call fcn.00402d80
mov ebx, dword [ebp - 0x18]
add esp, 0x14
push 0
push ecx
lea eax, [ebx - 0x10]
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00409450
add eax, 0x10
add esp, 4
mov ecx, 0x4f3950
mov dword [esi], eax
call fcn.004583c0
cmp al, 1
jne 0x44d17f
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44d17f
push ebx
push 0x58d
push str.CFat32Format::vSetDiskPartSetupInfo
push str._s:_d:_vSetDiskPartSetupInfo:_No_strDiskPartFileName__s__to_Delete
call fcn.0044b7f0
add esp, 0x10
push 0
push SysReAllocString
push 4
push 0
push 2
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x44d236
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44d1b8
sub eax, edx
push 0
lea edx, [ebp - 0x24]
push edx
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x18]
push 0
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov ebx, esp
push eax
call fcn.00409450
add eax, 0x10
add esp, 4
mov ecx, 0x4f3950
mov dword [ebx], eax
call fcn.004583c0
test al, al
jne 0x44d25a
mov byte [ebp - 0x11], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
push eax
push ecx
push edi
push 0x59b
push str.CFat32Format::vSetDiskPartSetupInfo
push str._s:_d:_ucPhysicalAddress__d__ScriptFile__s__Not_Exist__ErrorCode:_d
call fcn.0044b7f0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44d021
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push edi
push 0x5a2
push str.CFat32Format::vSetDiskPartSetupInfo
push str._s:_d:_ucPhysicalAddress__d__CreateFile__s__Script_Fail__ErrorCode:_d
call fcn.0044b7f0
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44d021