Function at 0x6adb7890
Capabilities:
Clear file content
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [esp + 0xc8]
mov edx, dword [esp + 0xcc]
mov ebx, dword [esp + 0xd4]
mov ebp, dword [esp + 0xc4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x24], edx
test bl, bl
je 0x6adb79e0
mov dword [esp + 0x2c], 4
lea esi, [esp + 0x40]
lea edi, [esp + 0x4c]
xor eax, eax
mov ecx, 9
mov edx, dword [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 1
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x48], 1
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x68], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], esi
mov dword [esp + 4], 0x9030c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
jne 0x6adb7bb8
cmp byte [0x6ae6b044], 0
je 0x6ae11b20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], 0x30
mov dword [esp + 4], eax
mov dword [esp], str.FSCTL_SET_EXTERNAL_BACKING_failed__err_u___data_was__zu_bytes:
call fcn.6ae0f249
mov eax, dword [0x6ae6b040]
mov dword [esp + 4], 0x30
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.6ad8d610
mov eax, dword [0x6ae6b040]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.msvcrt.dll_putc
jmp 0x6ae11b20
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], 0x80000017
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x44], 0x58
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x48], 1
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x64], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x50], 2
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x58], edx
mov dword [esp + 0x70], ecx
mov ecx, dword [eax]
mov dword [esp + 0x74], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x78], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x7c], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], esi
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x8c], edi
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x14]
mov dword [esp + 0x90], esi
mov esi, dword [eax + 8]
mov dword [esp + 0x94], edi
mov edi, dword [eax + 0xc]
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x9c], edi
lea edi, [esp + 0x3c]
mov dword [esp + 0x98], esi
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x60
mov dword [esp + 4], 0x900a4
mov dword [esp], eax
call esi
sub esp, 0x20
test eax, eax
jne 0x6adb7b10
mov eax, ebx
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x900c4
mov dword [esp], eax
call esi
sub esp, 0x20
test eax, eax
je 0x6adb7afb
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
sub esp, 0x14
test eax, eax
je 0x6adb7afb
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
je 0x6adb7afb
mov eax, 1
jmp 0x6adb7afd
add esp, 0xac
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
sub dword [esp + 0x2c], 1
je 0x6ae11b46
mov dword [esp], str.Retrying_after_100ms...
call fcn.6ae0f249
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
jmp 0x6adb78d9
mov dword [esp], 0x6ae23fe4
call fcn.6ae0f249
xor eax, eax
jmp 0x6adb7afd