Function at 0x10014c30
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x402c
call fcn.10030df0
mov eax, dword [0x100525d4]
xor eax, esp
mov dword [esp + 0x4028], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x2c], ecx
cmp eax, ebx
je 0x10014cb0
cmp ecx, ebx
je 0x10014cb0
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x10014cb0
mov ecx, dword [esp + 0x2c]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push ecx
call esi
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
jne 0x10014cc9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4028]
xor ecx, esp
call fcn.1001d39b
mov esp, ebp
pop ebp
ret 8
push 0x3fff
lea edx, [esp + 0x35]
push ebx
push edx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x3c], bl
call fcn.10023380
mov esi, dword [esp + 0x34]
add esp, 0xc
mov ecx, esi
mov byte [esp + 0xe], bl
mov byte [esp + 0xf], 1
call fcn.10015520
push ebx
lea eax, [esp + 0x28]
push eax
push 0x4000
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10014e31
jmp 0x10014d20
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x10014dd8
lea edx, [esp + 0x30]
push edx
mov edx, esi
mov byte [esp + 0x13], bl
call fcn.10015840
test eax, eax
je 0x10014dd1
lea eax, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.10014bb0
test eax, eax
je 0x10014e23
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x24]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10014e23
cmp dword [esp + 0x10], ebx
je 0x10014dac
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
neg eax
sbb eax, eax
inc eax
cmp eax, ebx
jne 0x10014dac
mov dword [esp + 0x14], ebx
push ebx
lea eax, [esp + 0x28]
push eax
push 0x4000
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x28]
test eax, eax
jne 0x10014d20
jmp 0x10014dde
mov byte [esp + 0xe], 1
jmp 0x10014e31
cmp byte [esp + 0xf], bl
jne 0x10014e31
mov ecx, esi
call fcn.10015620
lea eax, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.10014bb0
test eax, eax
je 0x10014e23
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10014e28
mov byte [esp + 0xe], 1
lea esi, [esp + 0x10]
call fcn.10011d70
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
cmp byte [esp + 0xe], bl
je 0x10014e57
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10014cb0
mov ecx, dword [esp + 0x4034]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1001d39b
mov esp, ebp
pop ebp
ret 8