Function at 0x1004bcbb
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0xb4
mov eax, 0x1009b1d8
call fcn.1007684e
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0xc0], eax
mov byte [eax], bl
mov dword [ebp - 0xb4], 0x100da3b0
mov byte [ebp - 0xb0], bl
call fcn.10024fa9
push ebx
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x99], bl
call fcn.1004c27a
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x84], 8
mov eax, dword [ebp - 0x98]
jae 0x1004bd3c
lea eax, [ebp - 0x98]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
mov edi, SysReAllocString
push edi
push eax
call esi
mov dword [ebp - 0xa4], eax
cmp eax, 0xffffffff
jne 0x1004be01
push 1
lea ecx, [ebp - 0x7c]
call fcn.1004c27a
pop ecx
lea eax, [ebp - 0x98]
push eax
call fcn.1004c70a
pop ecx
test al, al
jne 0x1004bdcc
lea eax, [ebp - 0x7c]
push eax
call fcn.1004c70a
pop ecx
test al, al
je 0x1004bdcc
cmp dword [ebp - 0x84], 8
mov ecx, dword [ebp - 0x98]
jae 0x1004bda0
lea ecx, [ebp - 0x98]
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x1004bdac
lea eax, [ebp - 0x7c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1004bdcc
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x1004bdc5
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x1004bdd8
lea eax, [ebp - 0x7c]
push ebx
push ebx
push 3
push ebx
push 1
push edi
push eax
call esi
push ebx
push 1
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0xa4], eax
call fcn.1000f89d
cmp dword [ebp - 0xa4], 0xffffffff
je 0x1004bff9
push ebx
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x14
jb 0x1004bfed
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0xa0]
push eax
push 4
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 0xa4]
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa8], ebx
call esi
test eax, eax
je 0x1004bfed
cmp dword [ebp - 0xa0], 4
jne 0x1004bfed
cmp dword [ebp - 0xa8], 1
jne 0x1004be9b
push ebx
lea eax, [ebp - 0xa0]
push eax
push 0x10
push dword [ebp - 0xac]
push dword [ebp - 0xa4]
call esi
test eax, eax
je 0x1004bfed
cmp dword [ebp - 0xa0], 0x10
jne 0x1004bfed
mov eax, dword [ebp - 0xc0]
mov byte [eax], 1
jmp 0x1004bfe6
cmp dword [ebp - 0xa8], 2
jne 0x1004bfed
xor eax, eax
mov byte [ebp - 0x30], bl
lea edi, [ebp - 0x2f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0xa0]
push eax
push 0x10
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xa4]
call esi
test eax, eax
je 0x1004bfed
cmp dword [ebp - 0xa0], 0x10
jne 0x1004bfed
xor eax, eax
mov byte [ebp - 0x40], bl
lea edi, [ebp - 0x3f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0xa0]
push eax
push 0x10
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xa4]
call esi
test eax, eax
je 0x1004bfed
cmp dword [ebp - 0xa0], 0x10
jne 0x1004bfed
xor eax, eax
mov byte [ebp - 0x60], bl
lea edi, [ebp - 0x5f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0xa0]
push eax
push 0x10
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0xa4]
call esi
test eax, eax
je 0x1004bfed
cmp dword [ebp - 0xa0], 0x10
jne 0x1004bfed
xor eax, eax
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0xbc]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x1004bf72
mov eax, dword [eax]
push ecx
push eax
lea edx, [ebp - 0x20]
call fcn.10052b12
xor eax, eax
mov byte [ebp - 0x50], bl
lea edi, [ebp - 0x4f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp - 0xb8]
cmp dword [eax + 0x14], 0x10
pop ecx
pop ecx
mov ecx, dword [eax + 0x10]
jb 0x1004bf9d
mov eax, dword [eax]
push ecx
push eax
lea edx, [ebp - 0x50]
call fcn.10052b12
pop ecx
pop ecx
push 0x10
pop ecx
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x40]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1004bfbd
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1004bfd9
push 0x10
pop ecx
lea edi, [ebp - 0x50]
lea esi, [ebp - 0x60]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1004bfd5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x1004bfed
mov edi, dword [ebp - 0xac]
lea esi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x99], 1
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x98]
call fcn.1000f89d
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0xb0], bl
je 0x1004c01e
mov ecx, dword [ebp - 0xb4]
call fcn.10023e8b
mov al, byte [ebp - 0x99]
call fcn.100768d1
ret 0x10