Function at 0x105f04e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.01054a52
mov esi, eax
cmp esi, edi
je 0x105f085
push esi
push 0x58f0197
jmp 0x105f0bc
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.01054a52
mov esi, eax
cmp esi, edi
je 0x105f0a3
push esi
push 0x5920197
jmp 0x105f0bc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0105dd16
mov esi, eax
cmp esi, edi
je 0x105f0c6
push esi
push 0x5950197
call fcn.01053610
jmp 0x105f1ea
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [ebp - 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
jne 0x105f0fe
call fcn.0106d6ff
mov esi, eax
push esi
push 0x5a20197
push dword [ebp - 8]
call fcn.0105364b
jmp 0x105f1ea
xor eax, eax
cmp dword [ebp + 8], edi
push edi
setne al
push edi
inc eax
push eax
push edi
push edi
push 0x40000000
push dword [ebp - 4]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 0x14], eax
jne 0x105f138
call fcn.0106d6ff
mov esi, eax
push esi
push 0x5af0197
push dword [ebp - 4]
call fcn.0105364b
jmp 0x105f1e1
mov esi, dword [ebp + 0x24]
xor ecx, ecx
cmp ebx, edi
mov ebx, dword [ebp + 0x28]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
jl 0x105f1c8
jg 0x105f151
cmp dword [ebp + 0x1c], edi
jbe 0x105f1c8
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x105f221
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x105f235
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x14], eax
jne 0x105f24c
add dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
adc dword [ebp - 0x18], edi
push dword [ebp - 0x18]
call fcn.0105dceb
mov ecx, eax
mov eax, dword [esi]
add eax, ecx
imul eax, eax, 0x64
xor edx, edx
div dword [ebp + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 0x18], eax
jl 0x105f151
jg 0x105f1c8
mov eax, dword [ebp + 0x1c]
cmp dword [ebp - 0x1c], eax
jb 0x105f151
add dword [esi], ecx
mov eax, dword [esi]
imul eax, eax, 0x64
xor edx, edx
div dword [ebp + 0x20]
xor esi, esi
mov dword [ebx], eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], edi
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x105f1fa
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], edi
je 0x105f204
push dword [ebp - 4]
call ebx
cmp dword [ebp - 0xc], edi
je 0x105f218
push 0x8000
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x24
call fcn.0106d6ff
mov esi, eax
push esi
push 0x5b90197
call fcn.01053610
jmp 0x105f1d8
call fcn.0106d6ff
mov esi, eax
push esi
push 0x5c00197
push dword [ebp - 4]
call fcn.0105364b
jmp 0x105f1d8
mov esi, 0x80070026
push esi
push 0x5c50197
jmp 0x105f242