Function at 0x4587d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2820
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x280c], eax
mov eax, dword [ebp + 0x18]
push 0x802
mov dword [ebp - 0x281c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
mov dword [ebp - 0x2814], edi
mov dword [ebp - 0x2818], esi
call fcn.004e46b0
add esp, 0xc
cmp dword [ebp + 0xc], ebx
je 0x458a36
lea eax, [ebp - 0x808]
push eax
push esi
mov esi, dword [ebp - 0x280c]
push esi
call fcn.00426bf0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x458acf
lea eax, [ebp - 0x808]
push eax
call fcn.00429b00
add esp, 4
push esi
test eax, eax
je 0x458938
lea eax, [ebp - 0x808]
push eax
call fcn.00426830
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x45889d
cmp dword [0x56f870], ebx
jne 0x458893
push edi
push str.WIPE_CANT_DISMOUNT_FILESYS
call fcn.00419a00
add esp, 8
mov ebx, 0x1c
jmp 0x458a5d
push 0
lea eax, [ebp - 0x2810]
push eax
push 0
push 0
push 0
push 0
push 0x90083
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push 0
test eax, eax
mov ecx, 1
lea eax, [ebp - 0x2810]
mov edi, 0
push eax
push 0
push 0
push 0
push 0
push 0x90083
push esi
cmove edi, ecx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test edi, edi
je 0x458963
push 0x2000
lea eax, [ebp - 0x2808]
push 0
push eax
call fcn.004e46b0
add esp, 0xc
lea eax, [ebp - 0x2820]
push 0
push eax
push 0x2000
lea eax, [ebp - 0x2808]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x458928
lea ebx, [eax + 1]
jmp 0x458a25
push esi
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x458960
call fcn.00427440
push 0xb
mov esi, eax
call fcn.0041c0d0
add esp, 8
test eax, eax
je 0x458960
cmp esi, 0xffffffff
jne 0x458960
push dword [ebp - 0x280c]
call fcn.0042a6a0
add esp, 4
or esi, 0xffffffff
xor edi, edi
cmp esi, 0xffffffff
jne 0x4589de
mov ecx, dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov eax, edi
push 0
push 0
inc edi
cmp eax, 0x1f4
push 3
push 0
lea eax, [ebp - 0x808]
jge 0x4589a3
push 0
push 0xc0000000
push eax
call ecx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4589de
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x45896a
push 3
push 0xc0000000
push eax
call ecx
mov esi, eax
cmp esi, 0xffffffff
jne 0x4589de
cmp dword [0x56f870], 0
jne 0x4589d7
mov edi, dword [ebp - 0x2814]
push edi
call fcn.00417c00
push edi
push str.CANT_ACCESS_VOL
call fcn.00419a00
add esp, 0xc
mov ebx, 0x1c
jmp 0x458a5d
push 0
lea eax, [ebp - 0x2810]
push eax
push 0
push 0
push 0
push 0
push 0x90028
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x458ac5
cmp dword [0x56f870], 0
jne 0x458a20
mov edi, dword [ebp - 0x2814]
push edi
push str.WIPE_CANT_DISMOUNT_FILESYS
call fcn.00419a00
add esp, 8
mov ebx, 0x1c
cmp esi, 0xffffffff
je 0x458a5d
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or esi, 0xffffffff
jmp 0x458a5d
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push dword [ebp - 0x280c]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x458ac5
mov ebx, 1
mov edi, dword [ebp - 0x2818]
mov ecx, 0x516968
mov eax, edi
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x458a96
test dx, dx
je 0x458a92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x458a96
add eax, 4
add ecx, 4
test dx, dx
jne 0x458a70
xor eax, eax
jmp 0x458a9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x458ac5
push edi
push dword [ebp - 0x280c]
call fcn.0042aae0
mov ecx, 0x516968
add esp, 8
sub edi, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edi + ecx - 2], ax
test ax, ax
jne 0x458ab5
mov eax, dword [ebp - 0x281c]
mov dword [eax], esi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret