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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
cmp byte [esp + 0xd4], 0
mov ebp, dword [esp + 0xc4]
mov ebx, dword [esp + 0xc8]
mov esi, dword [esp + 0xcc]
mov eax, dword [esp + 0xd0]
je 0x6adbc698
mov dword [esp + 0x2c], 4
lea edi, [esp + 0x4c]
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x40], 1
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x44], 1
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x48], 1
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x54], esi
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
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x30
mov dword [esp + 4], 0x9030c
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
sub esp, 0x20
test eax, eax
jne 0x6adbc85b
cmp byte [0x6ae1f044], 0
je 0x6add7e1e
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.6add55fc
mov eax, dword [0x6ae1f040]
mov dword [esp + 4], 0x30
mov dword [esp + 8], eax
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.6ad8d920
mov eax, dword [0x6ae1f040]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.msvcrt.dll_putc
jmp 0x6add7e1e
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x58], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x5c], esi
lea esi, [esp + 0x3c]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x64], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x40], 0x80000017
mov dword [esp + 0x68], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x44], 0x58
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x48], 1
mov dword [esp + 0x70], ecx
mov ecx, dword [eax]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x74], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x50], 2
mov dword [esp + 0x78], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], 0
mov dword [esp + 0x7c], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x80], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov dword [esp + 0x90], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x94], ebx
mov ebx, dword [eax + 0xc]
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x9c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], esi
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 ebx
sub esp, 0x20
test eax, eax
jne 0x6adbc7c0
add esp, 0xac
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], esi
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 ebx
sub esp, 0x20
test eax, eax
je 0x6adbc7ab
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 0x6adbc7ab
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
sub esp, 4
test eax, eax
je 0x6adbc7ab
add esp, 0xac
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
sub dword [esp + 0x2c], 1
je 0x6add7e44
mov dword [esp], str.Retrying_after_100ms...
call fcn.6add55fc
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
jmp 0x6adbc58c
mov dword [esp], 0x6adea4a4
call fcn.6add55fc
jmp 0x6adbc7ab