Function at 0x1001de50
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 8], eax
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], ebx
call sym.dcapi.dll_dc_load_config
add esp, 4
test eax, eax
jne 0x1001dec5
mov ecx, dword [esp + 0x50]
and ecx, 0x80
push ecx
call fcn.10016440
jmp 0x1001df29
call fcn.10007850
test eax, eax
je 0x1001dee4
mov dword [0x100278c4], 0x100028c0
mov dword [0x100278cc], 0x10005060
jmp 0x1001def8
mov dword [0x100278c4], fcn.100156a0
mov dword [0x100278cc], 0x10015580
call fcn.1000bf40
test eax, eax
je 0x1001df15
mov dword [0x100278c4], 0x10007880
mov dword [0x100278cc], 0x10009be0
mov dword [0x100278d0], 0x10015b30
mov dword [0x100278c8], 0x10015a20
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call esi
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x1001df78
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1001df78
push 0
push 0
push 1
push 0
push 0
push 0x40000000
push edi
call esi
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x1001df85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1001e2bc
push 0x5930
call sym.dcapi.dll_secure_alloc
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
je 0x1001e261
push 0x5930
call sym.dcapi.dll_secure_alloc
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x1001e261
push 0x100
call sym.dcapi.dll_secure_alloc
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1001e261
push 0x800
call sym.dcapi.dll_secure_alloc
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1001e261
push 4
push 0x3000
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x1001e261
push 0x800
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x40
lea eax, [esp + 0x6c]
push eax
push 0
push 0
push 0x2201de
call sym.dcapi.dll_dc_device_control
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1001e266
push 4
lea ecx, [ebx + 0x4e]
push ecx
push eax
push eax
push 0x2201de
call sym.dcapi.dll_dc_device_control
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1001e266
push 0x100
lea eax, [ebx + 0x56]
push eax
push esi
push esi
push 0x2201de
call sym.dcapi.dll_dc_device_control
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1001e266
mov edi, dword [ebp + 0x14]
lea ecx, [ebx + 0x48]
mov edx, 2
mov dword [ebx + 0x40], 0xfe06fb01
mov word [ecx], dx
mov dword [ebx + 0x4a], 8
mov dword [ebx + 0x52], edi
mov dword [ebx + 0x25a], 0x800
mov dword [ebx + 0x25e], eax
call fcn.10016b30
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
lea ecx, [esp + 0x6c]
push ecx
push edx
add eax, 4
push eax
call fcn.1001dc40
mov esi, dword [esp + 0x18]
mov eax, edi
lea ecx, [ebx + 0x56]
call fcn.100168b0
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.100168b0
mov eax, esi
push eax
mov eax, dword [eax + 0x5920]
push 0
push 0
push 0x800
push ebx
push ebx
call eax
mov edx, dword [esp + 0x20]
mov ecx, 0x10
lea esi, [esp + 0x68]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
lea ecx, [esp + 0x28]
push ecx
push 0x800
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001e135
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1001e266
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
cmp ecx, esi
jl 0x1001e14f
mov eax, dword [esp + 0x30]
jg 0x1001e164
cmp eax, esi
ja 0x1001e164
xor esi, esi
jmp 0x1001e266
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x10]
sbb ecx, dword [esp + 0x14]
test ecx, ecx
jg 0x1001e17f
jl 0x1001e179
cmp eax, 0x100000
jae 0x1001e17f
mov dword [esp + 0xc], eax
jmp 0x1001e18b
mov dword [esp + 0xc], 0x100000
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x28]
push ecx
push eax
push edi
lea esi, [eax + 0x7ff]
push edx
and esi, 0xfffff800
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e128
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x24], eax
jb 0x1001e128
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [eax + 0x5920]
push ecx
push edx
push esi
push edi
push edi
call eax
mov edx, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x28]
push ecx
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001e128
cmp dword [esp + 0x24], esi
jb 0x1001e128
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x34]
add eax, esi
mov esi, dword [esp + 0x14]
push ecx
adc esi, 0
push esi
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x28], esi
call dword [esp + 0x5c]
add esp, 0x14
test eax, eax
je 0x1001e25a
mov ecx, dword [esp + 0x34]
cmp esi, ecx
jl 0x1001e160
jg 0x1001e14f
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x10], eax
jb 0x1001e164
xor esi, esi
jmp 0x1001e266
mov esi, 0x3e3
jmp 0x1001e266
mov esi, 8
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1001e27c
push 0x8000
push 0
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test ebx, ebx
je 0x1001e289
push ebx
call sym.dcapi.dll_secure_free
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1001e29a
push eax
call sym.dcapi.dll_secure_free
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001e2ab
push eax
call sym.dcapi.dll_secure_free
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1001e2bc
push eax
call sym.dcapi.dll_secure_free
add esp, 4
cmp dword [esp + 0x28], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1001e2d0
mov ecx, dword [esp + 0x28]
push ecx
call edi
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x1001e2eb
push eax
call edi
test esi, esi
je 0x1001e2eb
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0xac]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.1000d340
mov esp, ebp
pop ebp
ret