Function at 0x10014c90
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.10037d10
mov eax, dword [0x100505e4]
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 0x10014d10
cmp ecx, ebx
je 0x10014d10
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 0x10014d10
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 0x10014d29
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.10024280
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.1002a240
mov esi, dword [esp + 0x34]
add esp, 0xc
mov ecx, esi
mov byte [esp + 0xe], bl
mov byte [esp + 0xf], 1
call fcn.10015580
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 0x10014e91
jmp 0x10014d80
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x10014e38
lea edx, [esp + 0x30]
push edx
mov edx, esi
mov byte [esp + 0x13], bl
call fcn.100158a0
test eax, eax
je 0x10014e31
lea eax, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.10014c10
test eax, eax
je 0x10014e83
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 0x10014e83
cmp dword [esp + 0x10], ebx
je 0x10014e0c
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 0x10014e0c
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 0x10014d80
jmp 0x10014e3e
mov byte [esp + 0xe], 1
jmp 0x10014e91
cmp byte [esp + 0xf], bl
jne 0x10014e91
mov ecx, esi
call fcn.10015680
lea eax, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.10014c10
test eax, eax
je 0x10014e83
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 0x10014e88
mov byte [esp + 0xe], 1
lea esi, [esp + 0x10]
call fcn.10011d50
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 0x10014eb7
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10014d10
mov ecx, dword [esp + 0x4034]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10024280
mov esp, ebp
pop ebp
ret 8