Function at 0x439ad8
Capabilities:
Clear file content
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x548aa0]
push ebx
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov eax, dword [0x548aa4]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x10], eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4f8660]
cmp dl, 1
sete bl
cmp dword [esi + 0x10], 1
mov byte [ebp - 4], dl
mov dword [ebp - 0x18], eax
ja 0x439b1d
mov ecx, dword [ebp + 8]
push esi
call fcn.004416aa
cmp byte [ebp + 0x14], 0
jne 0x439b3c
cmp dword [esi + 0x10], 1
jbe 0x439b3c
cmp byte [0x547d9f], 0
mov byte [ebp - 8], 1
je 0x439b40
mov byte [ebp - 6], 1
jmp 0x439b4a
mov byte [ebp - 8], 0
cmp byte [ebp - 8], 0
mov byte [ebp - 6], 0
je 0x439b57
cmp byte [0x547da0], 0
mov byte [ebp - 7], 1
jne 0x439b5b
mov byte [ebp - 7], 0
cmp byte [0x547d70], 0
je 0x439b71
cmp byte [0x547d85], 0
mov byte [ebp - 5], 0
jne 0x439b75
mov byte [ebp - 5], 1
cmp byte [ebp - 6], 0
jne 0x439b8e
cmp byte [ebp - 4], 0
je 0x439b87
cmp byte [ebp - 4], 2
jne 0x439b8e
mov dword [ebp - 0x18], 5
cmp byte [ebp - 4], 3
jne 0x439ba1
cmp byte [ebp - 5], 0
je 0x439ba1
mov dword [ebp - 0x18], 6
cmp dword [ebp - 0x10], 0xffffffff
je 0x439bcb
mov al, byte [esi + 0x26]
test al, 1
je 0x439bb4
cmp byte [ebp + 0x14], 0
jne 0x439bc4
test bl, bl
je 0x439bbc
test al, 2
je 0x439bc4
mov eax, dword [ebp - 0x10]
jmp 0x439f45
mov ecx, esi
call fcn.00440b94
mov ecx, dword [ebp + 8]
push edi
push esi
call fcn.00440ccc
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov edi, ecx
call fcn.004a391c
test al, al
jne 0x439bee
mov ecx, edi
call fcn.0048880a
mov edi, eax
mov ecx, edi
call fcn.004a3e80
mov ecx, dword [esi + 0xc]
cmp ecx, edx
jb 0x439c20
ja 0x439c05
mov ecx, dword [esi + 8]
cmp ecx, eax
jbe 0x439c20
mov eax, dword [ebp + 0xc]
mov dword [eax], 0xdf
cmp dword [ebp - 0x14], 0
je 0x439ec3
mov ecx, dword [ebp - 0x14]
jmp 0x439ebc
mov ecx, edi
call fcn.004a391c
test al, al
je 0x439c63
mov ax, word [edi]
mov word [ebp - 0x20], ax
mov ax, word [edi + 2]
mov word [ebp - 0x1e], ax
push 0x5c
pop eax
mov word [ebp - 0x1c], ax
xor eax, eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 4
je 0x439c5b
cmp eax, 1
jne 0x439c63
mov byte [ebp - 7], 0
mov byte [ebp - 6], 0
test bl, bl
je 0x439c6b
push 6
jmp 0x439caa
mov edi, dword [ebp - 0x18]
cmp edi, 3
jne 0x439c7d
cmp byte [ebp - 6], 0
je 0x439c7d
mov al, 1
jmp 0x439c7f
xor al, al
mov ecx, dword [ebp - 0x14]
push eax
push 0x80
mov edx, edi
call fcn.0047246a
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x439d0d
cmp byte [ebp - 4], 3
jne 0x439cad
cmp edi, 6
jne 0x439cad
cmp byte [ebp - 5], 0
je 0x439cad
push 5
pop edi
jmp 0x439c6e
test bl, bl
je 0x439cd6
mov ecx, dword [ebp - 0x14]
call fcn.004a49fb
test al, al
je 0x439cd6
mov ecx, dword [ebp - 0x14]
push 0
push 0x80
mov edx, edi
call fcn.0047246a
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x439d0d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 0x20
jne 0x439e5c
cmp dword [0x547ed8], 0
je 0x439e5c
dec dword [0x547ed8]
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x439c6e
test bl, bl
jne 0x439d24
cmp byte [ebp - 4], 3
jne 0x439ec8
cmp byte [ebp - 5], bl
je 0x439ec8
cmp byte [ebp + 0x18], 0
je 0x439d54
test byte [esi + 0x26], 0x10
je 0x439d54
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test eax, 0x200
je 0x439d54
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push eax
mov byte [ebp - 9], 0
push 1
lea eax, [ebp - 9]
jmp 0x439d67
cmp byte [0x547d84], 0
je 0x439d76
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push eax
push eax
push eax
push 0x900c4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp edi, 6
jne 0x439ec8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x50], 0
jne 0x439ec8
cmp byte [ebp - 5], 0
mov ecx, dword [ebp - 0x10]
mov byte [0x547d71], 1
je 0x439da9
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.004724be
jmp 0x439df0
lea edx, [ebp - 0x20]
call fcn.004a2374
test al, al
je 0x439e9b
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x20]
mov ecx, dword [esi + 0xc]
cmp edx, eax
jne 0x439dcd
mov edx, dword [ebp - 0x1c]
cmp edx, ecx
je 0x439df0
push ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00472183
test eax, eax
jne 0x439e9b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x439e9b
cmp byte [0x547d70], 0
je 0x439e1a
cmp byte [0x547d85], 0
je 0x439e1a
cmp byte [0x547d84], 0
jne 0x439e1a
push dword [esi + 0xc]
push dword [esi + 8]
push dword [ebp - 0x10]
call dword [0x547dd8]
cmp byte [ebp - 4], 3
mov byte [0x547d71], 0
jne 0x439e46
cmp byte [ebp - 5], 0
je 0x439e46
lea ecx, [ebp - 0x10]
call fcn.004720fd
cmp byte [ebp - 6], 0
je 0x439ca8
xor edi, edi
jmp 0x439c6e
cmp byte [ebp - 7], 0
je 0x439ec8
lea ecx, [ebp - 0x10]
call fcn.004720fd
xor edi, edi
inc edi
jmp 0x439c6e
cmp byte [ebp - 4], 3
je 0x439e68
cmp byte [ebp + 0x10], 0
je 0x439e85
cmp eax, 0x490
je 0x439c0e
cmp eax, 2
je 0x439c0e
cmp eax, 3
je 0x439c0e
push eax
push dword [ebp - 0x14]
push str.Error_opening___s_:__E
call fcn.0041ff68
add esp, 0xc
jmp 0x439c0e
mov byte [0x547d71], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
call fcn.004720fd
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x439ec3
mov dl, 1
call fcn.0046b197
or eax, 0xffffffff
jmp 0x439f44
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x68], eax
mov eax, dword [0x548aa0]
add bl, bl
xor bl, byte [esi + 0x26]
mov dword [esi + 0x14], eax
mov eax, dword [0x548aa4]
and bl, 2
xor byte [esi + 0x26], bl
mov ecx, edi
mov dword [esi + 0x18], eax
call fcn.00472458
test al, al
sete al
xor al, byte [esi + 0x26]
and al, 1
xor byte [esi + 0x26], al
test byte [esi + 0x26], 1
je 0x439f31
mov esi, dword [esi + 0x10]
cmp esi, 1
ja 0x439f31
movzx eax, byte [ebp - 7]
push eax
movzx eax, byte [ebp - 6]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp + 0x14]
push eax
push esi
push edi
push dword [ebp - 0x14]
push str.Incorrect_alignment_on_mode_set____s__mode:_d_alignment:_u_force_buffered:_d_file_bufferless:_d_unbuffered_read:_d_unbuffered_write:_d
call fcn.0041ff68
add esp, 0x20
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
test ecx, ecx
je 0x439f42
mov dl, 1
call fcn.0046b197
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14