Function at 0x1000c300
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f49c
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x100cd004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x58], 0
cmp dword [esi + 0x10], 0
jne 0x1000c3bd
xor eax, eax
mov dword [ebp - 4], 0
push 0x12
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x58], 1
call fcn.1000d640
push 0x12
push str.Cannot_open_file:
lea ecx, [ebp - 0x2c]
call fcn.1000c930
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x1000c384
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000c930
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0x100d2098
call fcn.1000aff0
push eax
call fcn.1000b450
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.1000be80
jmp 0x1000c587
cmp dword [esi + 0x14], 8
jb 0x1000c3c5
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x5c], eax
cmp eax, 0xffffffff
je 0x1000c587
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x88], vtable.std::_Func_impl_no_alloc_class__lambda_bc9a7e678d4c19fcf29a2194551c23bf___void___.0
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 1
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x30], 0
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.1000c5b0
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x30], eax
test ecx, ecx
je 0x1000c44e
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x88]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x64], 0
push 0
push dword [ebp - 0x5c]
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetFileSize]
or edi, 0xffffffff
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 5
push eax
push 0xa00000
mov ecx, eax
call fcn.1000b270
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x58], 0
nop dword [eax]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x20]
sub ecx, eax
push 0
push edx
push ecx
push eax
push dword [ebp - 0x5c]
call esi
test eax, eax
je 0x1000c4d1
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x1000c4d1
push edi
push eax
push dword [ebp - 0x20]
call fcn.1000ad10
add esp, 0xc
mov edi, eax
jmp 0x1000c4a0
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x1000c51e
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x1000c4ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000c5a6
push edx
push ecx
call fcn.10023f1b
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 6
test ecx, ecx
je 0x1000c549
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1000c549
mov esi, dword [ecx]
lea eax, [ebp - 0x54]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov eax, edi
jmp 0x1000c58a
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10023eda
mov esp, ebp
pop ebp
ret
call fcn.1003f54c
int3