Function at 0x108cc2b
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.0107bf7f
mov esi, eax
cmp esi, edi
je 0x108cc6a
push esi
push 0x6a60197
call fcn.0107ae44
jmp 0x108cdc7
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0107bf7f
mov esi, eax
cmp esi, edi
je 0x108cc88
push esi
push 0x6a90197
jmp 0x108cc60
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0108c768
mov esi, eax
cmp esi, edi
je 0x108cca3
push esi
push 0x6ac0197
jmp 0x108cc60
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 0x108ccdb
call fcn.010a4804
mov esi, eax
push esi
push 0x6b90197
push dword [ebp - 8]
call fcn.0107ae7f
jmp 0x108cdc7
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 0x108cd15
call fcn.010a4804
mov esi, eax
push esi
push 0x6c60197
push dword [ebp - 4]
call fcn.0107ae7f
jmp 0x108cdbe
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 0x108cda5
jg 0x108cd2e
cmp dword [ebp + 0x1c], edi
jbe 0x108cda5
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 0x108cdfe
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 0x108ce12
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x14], eax
jne 0x108ce21
add dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
adc dword [ebp - 0x18], edi
push dword [ebp - 0x18]
call fcn.0108c73d
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 0x108cd2e
jg 0x108cda5
mov eax, dword [ebp + 0x1c]
cmp dword [ebp - 0x1c], eax
jb 0x108cd2e
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 0x108cdd7
push dword [ebp - 8]
call ebx
cmp dword [ebp - 4], edi
je 0x108cde1
push dword [ebp - 4]
call ebx
cmp dword [ebp - 0xc], edi
je 0x108cdf5
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.010a4804
mov esi, eax
push esi
push 0x6d00197
call fcn.0107ae44
jmp 0x108cdb5
call fcn.010a4804
mov esi, eax
push esi
push 0x6d70197
jmp 0x108ce2c
mov esi, 0x80070026
push esi
push 0x6dc0197
push dword [ebp - 4]
call fcn.0107ae7f
jmp 0x108cdb5