Function at 0x403c70
Capabilities:
Check if file exists
Copy file
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x10114
call fcn.0040df70
push ebx
push ebp
push esi
push edi
call fcn.00407b80
test eax, eax
je 0x403cb0
mov eax, dword [esp + 0x10130]
mov ecx, dword [esp + 0x1012c]
mov edx, dword [esp + 0x10128]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10114
ret
mov ebx, dword [esp + 0x10128]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ebx
call ebp
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x403cef
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10114
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403d25
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x403d25
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10114
ret
xor eax, eax
test eax, eax
mov dword [esp + 0x1c], eax
jg 0x403d62
jl 0x403d39
cmp edi, 0xa00000
jae 0x403d62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10130]
mov ecx, dword [esp + 0x1012c]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10114
ret
mov edx, dword [0x45d984]
mov esi, edi
shr esi, 0x10
mov dword [esp + 0x20], edx
mov dword [0x45d984], esi
call fcn.0040ab80
push esi
call fcn.0040b000
push 0
call fcn.0040b080
add esp, 8
push ebx
push 0x440d70
call fcn.0040cd40
add esp, 4
push eax
lea eax, [esp + 0x2c]
push pe_nt_image_headers32
push eax
call fcn.00410450
lea ecx, [esp + 0x34]
push ecx
call fcn.0040b130
mov edx, dword [esp + 0x10144]
mov eax, dword [esp + 0x10140]
add esp, 0x14
neg edx
push 0
sbb edx, edx
push 0
and edx, 0xfffffffd
add edx, 4
push edx
push 0
push 3
push 0xc0000000
push eax
call ebp
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403e22
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x403df9
mov esi, 0x26
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040af20
call fcn.004328e0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10114
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x403f11
jg 0x403e38
test edi, edi
jbe 0x403f11
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, 0x10000
jg 0x403e4d
jl 0x403e4b
cmp edi, esi
jae 0x403e4d
mov esi, edi
mov ebx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push esi
lea eax, [esp + 0x130]
push eax
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403ec7
cmp esi, dword [esp + 0x10]
jne 0x403ebf
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x130]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403ec7
cmp esi, dword [esp + 0x10]
jne 0x403ebf
push 1
call fcn.0040b0c0
mov eax, dword [esp + 0x20]
add esp, 4
sub edi, esi
sbb eax, 0
mov dword [esp + 0x1c], eax
js 0x403f15
jg 0x403e38
test edi, edi
jbe 0x403f15
jmp 0x403e38
push 0x26
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
jne 0x403ed9
mov edi, 0x26
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
mov eax, dword [esp + 0x1012c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.0040af20
call fcn.004328e0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10114
ret
mov ebx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push ebp
call esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x20]
mov dword [0x45d984], ecx
call fcn.0040af20
call fcn.004328e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10114
ret