Function at 0x44c250
Capabilities:
Unmount volume via ioctl
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.0048f460
push 0xffffffffffffffff
push 0x4ae313
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4ecba0]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 4], edi
mov byte [ebp - 0x11], 1
mov byte [ebp - 0x12], 1
mov byte [ebp - 0x13], 1
call fcn.0046d74a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x44c2c0
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 - 0x1c], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
call fcn.004024f0
mov ecx, esi
call fcn.0044b8f0
cmp byte [esi + 0xc], 0x43
jne 0x44c35a
push 0x43
push 0x215
push str.CFat32Format::bFormatVolume
push str._s:_d:_bFormatVolume:_Force_not_to_Do_Format__C
call fcn.0044b650
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44c32a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x100c]
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 0x44c353
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x44ce58
mov ecx, esi
call fcn.0044ba40
movsx ecx, byte [esi + 0xc]
push ecx
lea edx, [ebp - 0x1c]
push str.._C:
push edx
mov dword [esi + 0xe8], eax
call fcn.00402d80
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
push edi
push 0x20000000
push 3
push edi
push edi
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x44cdc9
cmp edi, 0xffffffff
je 0x44cdc9
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0x90018
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov byte [ebp - 0x12], al
test al, al
jne 0x44c3f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x22a
push str.CFat32Format::bFormatVolume
push str._s:_d:_bFormatVolume:__s__FSCTL_LOCK_VOLUME_Fail___strLogicalAddress__s___dwErrorCode:_d
call fcn.0044b650
add esp, 0x14
jmp 0x44cde7
push edi
mov ecx, esi
call fcn.0044baa0
mov byte [ebp - 0x11], al
test al, al
jne 0x44c424
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x233
push str.CFat32Format::bFormatVolume
push str._s:_d:_bFormatVolume:__s__bPreCheckFat32FormatParam_Fail___strLogicalAddress__s___dwErrorCode:_d
call fcn.0044b650
add esp, 0x14
jmp 0x44cde7
mov ecx, dword [esi + 0xfc]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push ecx
push 0
call ebx
mov edx, dword [esi + 0xfc]
push 4
push 0x3000
push edx
push 0
mov dword [esi + 0x118], eax
call ebx
push 4
mov dword [esi + 0x11c], eax
mov eax, dword [esi + 0xfc]
push 0x3000
push eax
push 0
call ebx
mov ecx, dword [esi + 0x118]
mov dword [esi + 0x120], eax
test ecx, ecx
je 0x44ccb4
cmp dword [esi + 0x11c], 0
je 0x44ccb4
test eax, eax
je 0x44ccb4
mov byte [ecx], 0xeb
mov ecx, dword [esi + 0x118]
mov byte [ecx + 1], 0x5a
mov edx, dword [esi + 0x118]
mov byte [edx + 2], 0x90
mov eax, dword [esi + 0x118]
push str.MSWIN4.1
add eax, 3
push 9
push eax
call fcn.0049006b
mov ecx, dword [esi + 0x118]
mov dx, word [esi + 0xfc]
mov word [ecx + 0xb], dx
mov eax, dword [esi + 8]
add esp, 0xc
test eax, eax
je 0x44c4e5
mov dword [esi + 0x100], eax
jmp 0x44c52b
cmp byte [esi + 0xd], 0
jne 0x44c50c
mov eax, dword [esi + 0xfc]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0044bec0
movzx eax, al
mov dword [esi + 0x100], eax
jmp 0x44c52b
mov ecx, dword [esi + 0xfc]
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x58]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0044bec0
movzx ecx, al
mov dword [esi + 0x100], ecx
mov edx, dword [esi + 0x118]
mov al, byte [esi + 0x100]
mov byte [edx + 0xd], al
mov ecx, dword [esi + 0x118]
mov dword [esi + 0xdc], 0x20
mov dx, word [esi + 0xdc]
mov word [ecx + 0xe], dx
mov eax, dword [esi + 0x118]
mov dword [esi + 0xe0], 2
mov cl, byte [esi + 0xe0]
mov byte [eax + 0x10], cl
mov edx, dword [esi + 0x118]
xor eax, eax
mov word [edx + 0x11], ax
mov ecx, dword [esi + 0x118]
xor edx, edx
mov word [ecx + 0x13], dx
mov eax, dword [esi + 0x118]
mov byte [eax + 0x15], 0xf8
mov ecx, dword [esi + 0x118]
mov word [ecx + 0x16], dx
mov eax, dword [esi + 0x118]
mov cx, word [esi + 0x20]
mov word [eax + 0x18], cx
mov edx, dword [esi + 0x118]
mov ax, word [esi + 0x1c]
mov word [edx + 0x1a], ax
cmp byte [esi + 0xd], 0
push 0
jne 0x44c5d8
mov ecx, dword [esi + 0x118]
mov edx, dword [esi + 0x38]
mov dword [ecx + 0x1c], edx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
push eax
push ecx
push edx
jmp 0x44c5f0
mov eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x6c]
mov dword [eax + 0x1c], ecx
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
push edx
push eax
push ecx
call fcn.00491b30
mov edx, dword [esi + 0x118]
mov dword [esi + 0x104], eax
mov dword [edx + 0x20], eax
mov eax, dword [esi + 0x118]
movzx edx, byte [eax + 0x10]
mov ecx, dword [esi + 0xfc]
push ecx
movzx ecx, byte [eax + 0xd]
push edx
movzx edx, word [eax + 0xe]
mov eax, dword [eax + 0x20]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0044ba00
mov ecx, dword [esi + 0x118]
mov dword [esi + 0xf8], eax
mov dword [ecx + 0x24], eax
mov edx, dword [esi + 0x118]
xor eax, eax
mov word [edx + 0x28], ax
mov ecx, dword [esi + 0x118]
xor edx, edx
mov word [ecx + 0x2a], dx
mov eax, dword [esi + 0x118]
mov dword [eax + 0x2c], 2
mov ecx, dword [esi + 0x118]
mov edx, 1
mov word [ecx + 0x30], dx
mov eax, dword [esi + 0x118]
mov dword [esi + 0xe4], 6
movzx ecx, word [esi + 0xe4]
mov word [eax + 0x32], cx
mov edx, dword [esi + 0x118]
mov byte [edx + 0x40], 0x80
mov eax, dword [esi + 0x118]
mov byte [eax + 0x41], 0
mov ecx, dword [esi + 0x118]
mov byte [ecx + 0x42], 0x29
mov edx, dword [esi + 0x118]
mov eax, dword [esi + 0xe8]
push str.NO_NAME
lea ebx, [esi + 0xec]
push 0xc
push ebx
mov dword [edx + 0x43], eax
call fcn.00490173
mov eax, dword [esi + 0x118]
mov ecx, dword [ebx]
mov dword [eax + 0x47], ecx
mov edx, dword [ebx + 4]
mov dword [eax + 0x4b], edx
movzx ecx, word [ebx + 8]
add eax, 0x47
mov word [eax + 8], cx
mov dl, byte [ebx + 0xa]
mov byte [eax + 0xa], dl
mov eax, dword [esi + 0x118]
mov ecx, dword [0x4c9d3c]
mov dword [eax + 0x52], ecx
mov edx, dword [0x4c9d40]
mov dword [eax + 0x56], edx
mov eax, dword [esi + 0x118]
mov dl, 0x55
mov byte [eax + 0x1fe], dl
mov eax, dword [esi + 0x118]
mov cl, 0xaa
mov byte [eax + 0x1ff], cl
mov eax, dword [esi + 0xfc]
add esp, 0xc
cmp eax, 0x200
je 0x44c749
mov ebx, dword [esi + 0x118]
mov byte [ebx + eax - 2], dl
mov edx, dword [esi + 0xfc]
mov eax, dword [esi + 0x118]
mov byte [edx + eax - 1], cl
mov ecx, dword [esi + 0x11c]
mov dword [ecx], 0x41615252
mov edx, dword [esi + 0x11c]
mov dword [edx + 0x1e4], 0x61417272
mov ecx, dword [esi + 0x11c]
or eax, 0xffffffff
mov dword [ecx + 0x1e8], eax
mov edx, dword [esi + 0x11c]
mov dword [edx + 0x1ec], eax
mov eax, dword [esi + 0x11c]
mov dword [eax + 0x1fc], 0xaa550000
mov ecx, dword [esi + 0x120]
mov dword [ecx], 0xffffff8
mov edx, dword [esi + 0x120]
mov ebx, 0xfffffff
mov dword [edx + 4], ebx
mov eax, dword [esi + 0x120]
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0xf8]
imul ecx, dword [esi + 0xe0]
mov eax, dword [esi + 0x104]
sub eax, ecx
sub eax, dword [esi + 0xdc]
xor edx, edx
mov dword [esi + 0x10c], eax
div dword [esi + 0x100]
mov dword [esi + 0x134], 0
mov dword [esi + 0x130], eax
mov ecx, eax
mov eax, dword [esi + 0x134]
test eax, eax
ja 0x44c80c
jb 0x44c7fe
cmp ecx, ebx
ja 0x44c80c
test eax, eax
ja 0x44c82a
jb 0x44c80c
cmp ecx, 0x10000
jae 0x44c82a
movsx edx, byte [esi + 0xc]
push eax
push ecx
push edx
push 0x2a6
push str.CFat32Format::bFormatVolume
push str._s:_d:_Drive_has_more_than_228_clusters_or_at_least_65536_clusters___m_ullClusterCount__d
call fcn.0044b650
add esp, 0x18
mov eax, dword [esi + 0x134]
mov ecx, dword [esi + 0x130]
push 0
push 4
push eax
push ecx
call fcn.00491af0
mov dword [esi + 0x128], eax
mov eax, dword [esi + 0xfc]
mov dword [esi + 0x12c], edx
lea edx, [eax - 1]
add dword [esi + 0x128], edx
mov ecx, dword [esi + 0x128]
push 0
adc dword [esi + 0x12c], 0
push eax
mov eax, dword [esi + 0x12c]
push eax
push ecx
call fcn.00491eb0
mov dword [esi + 0x12c], edx
mov edx, dword [esi + 0xf8]
mov dword [esi + 0x128], eax
mov ebx, eax
mov eax, dword [esi + 0x12c]
xor ecx, ecx
cmp eax, ecx
jb 0x44c8be
ja 0x44c89f
cmp ebx, edx
jbe 0x44c8be
push edx
movsx edx, byte [esi + 0xc]
push eax
push ebx
push edx
push 0x2af
push str.CFat32Format::bFormatVolume
push str._s:_d:_Drive__c_:_m_ullFatNeeded__d____m_dwFatSize__d_
call fcn.0044b650
add esp, 0x1c
mov eax, dword [esi + 0x104]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x30]
push eax
push 0
push 0x3b9aca00
push ecx
push edx
call fcn.00491b30
mov dword [ebp - 0x30], eax
movsx eax, byte [esi + 0xc]
mov dword [ebp - 0x2c], edx
sub esp, 8
fild qword [ebp - 0x30]
fstp qword [esp]
push eax
push 0x2b2
push str.CFat32Format::bFormatVolume
push str._s:_d:_Drive__c_:_Size_:__gGB__u_sectors
call fcn.0044b650
mov eax, dword [esi + 0xfc]
mov ecx, dword [esi + 0x100]
movsx edx, byte [esi + 0xc]
imul ecx, eax
add esp, 0x1c
push ecx
push eax
push edx
push 0x2b3
push str.CFat32Format::bFormatVolume
push str._s:_d:_Drive__c_:__d_Bytes_Per_Sector__Cluster_size__d_bytes
call fcn.0044b650
mov eax, dword [esi + 0xe8]
movsx edx, byte [esi + 0xc]
add esp, 0x18
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push edx
push 0x2b4
push str.CFat32Format::bFormatVolume
push str._s:_d:_Drive__c_:_Volume_ID_is__x:_x
call fcn.0044b650
mov eax, dword [esi + 0xe0]
mov ecx, dword [esi + 0xf8]
mov edx, dword [esi + 0xdc]
add esp, 0x18
push eax
movsx eax, byte [esi + 0xc]
push ecx
push edx
push eax
push 0x2b5
push str.CFat32Format::bFormatVolume
push str._s:_d:_Drive__c_:__d_Reserved_Sectors___d_Sectors_per_FAT___d_fats
call fcn.0044b650
mov ecx, dword [esi + 0x134]
mov edx, dword [esi + 0x130]
movsx eax, byte [esi + 0xc]
add esp, 0x1c
push ecx
push edx
push eax
push 0x2b6
push str.CFat32Format::bFormatVolume
push str._s:_d:_Drive__c_:_Total_clusters__d
call fcn.0044b650
mov eax, dword [esi + 0x10c]
xor edx, edx
div dword [esi + 0x100]
mov ecx, dword [esi + 0x11c]
add esp, 0x18
dec eax
mov dword [ecx + 0x1e8], eax
mov edx, dword [esi + 0x11c]
mov dword [edx + 0x1ec], 3
mov eax, dword [esi + 0x11c]
mov ecx, dword [eax + 0x1e8]
movsx edx, byte [esi + 0xc]
push ecx
push edx
push 0x2ba
push str.CFat32Format::bFormatVolume
push str._s:_d:_Drive__c_:_Free_Clusters__d
call fcn.0044b650
mov eax, dword [esi + 0xf8]
imul eax, dword [esi + 0xe0]
add eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0x100]
movsx edx, byte [esi + 0xc]
add esp, 0x14
add eax, ecx
push eax
push edx
push 0x2bf
push str.CFat32Format::bFormatVolume
push str._s:_d:_bFormatVolume:_Drive__c_:_Clean_out__d_sectors_for_ReservedSector__fat_table_and_root_cluster__g
mov dword [esi + 0x108], eax
call fcn.0044b650
mov ecx, dword [esi + 0x108]
mov edx, dword [esi + 0xfc]
add esp, 0x14
lea eax, [esi + 0x10]
push eax
push ecx
push edx
push 0
push edi
mov ecx, esi
call fcn.0044bd00
movsx eax, byte [esi + 0xc]
push eax
push 0x2c1
push str.CFat32Format::bFormatVolume
push str._s:_d:_bFormatVolume:_Drive__c_:_Initialising_reserved_sectors_and_FATs
call fcn.0044b650
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp eax, 2
jae 0x44cad1
test eax, eax
jne 0x44ca92
xor ebx, ebx
jmp 0x44ca98
mov ebx, dword [esi + 0xe4]
mov ecx, dword [esi + 0x118]
mov edx, dword [esi + 0xfc]
push 1
push ecx
push edx
push ebx
push edi
mov ecx, esi
call fcn.0044bc50
mov eax, dword [esi + 0x11c]
mov ecx, dword [esi + 0xfc]
push 1
push eax
push ecx
inc ebx
push ebx
push edi
mov ecx, esi
call fcn.0044bc50
mov eax, dword [ebp - 0x2c]
inc eax
jmp 0x44ca82
xor ebx, ebx
cmp ebx, dword [esi + 0xe0]
jae 0x44cb06
mov eax, dword [esi + 0xf8]
mov edx, dword [esi + 0x120]
imul eax, ebx
mov ecx, dword [esi + 0xfc]
add eax, dword [esi + 0xdc]
push 1
push edx
push ecx
push eax
push edi
mov ecx, esi
call fcn.0044bc50
inc ebx
jmp 0x44cad3
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 0x34]
and al, 0xf
mov bl, byte [ebp - 0x40]
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x36]
and al, 0x3f
mov byte [ebp - 0x11], al
mov al, byte [ebp - 0x38]
and al, 0x1f
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x3a]
and al, 0x1f
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0x3e]
and al, 0xf
push 0x1000
mov byte [ebp - 0x16], al
lea eax, [ebp]
push 0
add bl, 4
push eax
and bl, 0x3f
call fcn.0048f850
mov eax, dword [ebp + 0x100c]
mov ecx, dword [eax]
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
movzx ecx, word [eax + 8]
mov word [ebp + 8], cx
mov dl, byte [eax + 0xa]
xor ecx, ecx
mov word [ebp + 0x10], cx
movzx ecx, byte [ebp - 0x13]
xor eax, eax
shl cx, 6
mov byte [ebp + 0xa], dl
xor edx, edx
mov word [ebp + 0xe], ax
mov word [ebp + 0x14], ax
movzx eax, byte [ebp - 0x14]
mov word [ebp + 0x12], dx
movzx edx, byte [ebp - 0x11]
or cx, dx
movzx edx, byte [ebp - 0x16]
shl cx, 5
inc ax
or cx, ax
movzx eax, byte [ebp - 0x15]
mov word [ebp + 0x16], cx
movzx cx, bl
shl cx, 4
or cx, dx
mov edx, dword [esi + 0xf8]
shl cx, 5
or cx, ax
mov eax, dword [esi + 0xdc]
mov word [ebp + 0x18], cx
xor ecx, ecx
mov word [ebp + 0x1a], cx
lea ecx, [eax + edx*2]
mov eax, dword [esi + 0xfc]
imul eax, ecx
add esp, 0xc
xor ebx, ebx
push ebx
mov dword [esi + 0x124], ecx
lea ecx, [ebp - 0x44]
push ecx
push eax
push edi
mov byte [ebp + 0xb], 8
mov byte [ebp + 0xc], 0
mov byte [ebp + 0xd], 0
mov dword [ebp + 0x1c], ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea edx, [ebp - 0x4c]
push edx
push 0x1000
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push 0x20
lea eax, [esi + 0xd8]
push eax
push 0x7c008
push edi
mov byte [eax], 0xc
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov byte [ebp - 0x11], al
test al, al
jne 0x44cc6f
cmp dword [esi + 0x38], 0
je 0x44cc6f
movsx edx, byte [esi + 0xc]
xor eax, eax
push eax
push edx
push 0x2ff
push str.CFat32Format::bFormatVolume
push str._s:_d:_bFormatVolume:__C_IOCTL_DISK_SET_PARTITION_INFO_Fail___dwErrorCode__d
call fcn.0044b7f0
add esp, 0x14
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0x90020
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 0x13], al
test al, al
jne 0x44ccd8
call ebx
movsx ecx, byte [esi + 0xc]
push eax
push ecx
push 0x306
push str.CFat32Format::bFormatVolume
push str._s:_d:_bFormatVolume:__C_FSCTL_DISMOUNT_VOLUME_Fail___dwErrorCode__d
call fcn.0044b7f0
jmp 0x44ccd5
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edx, dword [ebp - 0x1c]
push eax
push edx
push 0x23e
push str.CFat32Format::bFormatVolume
push str._s:_d:_bFormatVolume:__s__VirtualAlloc_Fail___strLogicalAddress__s___dwErrorCode:_d
call fcn.0044b650
add esp, 0x14
cmp byte [ebp - 0x12], 1
jne 0x44cd1b
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0x9001c
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x44cd1b
call ebx
movsx ecx, byte [esi + 0xc]
push eax
push ecx
push 0x30f
push str.CFat32Format::bFormatVolume
push str._s:_d:_bFormatVolume:__C_FSCTL_UNLOCK_VOLUME_Fail___dwErrorCode__d
call fcn.0044b7f0
add esp, 0x14
push 0
lea edx, [ebp - 0x20]
push edx
push 0
push 0
push 0
push 0
push 0x70140
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x44cd58
call ebx
push eax
movsx eax, byte [esi + 0xc]
push eax
push 0x316
push str.CFat32Format::bFormatVolume
push str._s:_d:_bFormatVolume:__C_IOCTL_DISK_UPDATE_PROPERTIES_Fail___dwErrorCode__d
call fcn.0044b7f0
add esp, 0x14
mov eax, dword [esi + 0x118]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
je 0x44cd81
mov ecx, dword [esi + 0xfc]
push 0x4000
push ecx
push eax
call ebx
mov dword [esi + 0x118], 0
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x44cda4
mov edx, dword [esi + 0xfc]
push 0x4000
push edx
push eax
call ebx
mov dword [esi + 0x11c], 0
mov eax, dword [esi + 0x120]
test eax, eax
je 0x44cde7
mov ecx, dword [esi + 0xfc]
push 0x4000
push ecx
push eax
call ebx
mov dword [esi + 0x120], 0
jmp 0x44cde7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x221
push str.CFat32Format::bFormatVolume
push str._s:_d:_bFormatVolume:_CreateFile_Fail__dwErrorCode__d
call fcn.0044b650
add esp, 0x10
test edi, edi
je 0x44cdf2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x13], 0
je 0x44cdfe
cmp byte [ebp - 0x12], 0
jne 0x44ce02
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ce2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x100c]
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 0x44ce55
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 + 0x1000]
xor ecx, ebp
call fcn.0048f35c
add ebp, 0x1004
mov esp, ebp
pop ebp
ret 4