Function at 0x100cbff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
test ebx, ebx
jns 0x100cc037
mov esi, dword [sym.python310.dll_PyExc_SystemError]
xor edx, edx
mov ecx, 0x103fb118
call fcn.10014cd0
push str.Negative_size_passed_to_PyBytes_FromStringAndSize
push esi
push eax
call sym.python310.dll__PyErr_SetString
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jne 0x100cc053
mov eax, dword [0x103fb118]
mov eax, dword [eax + 8]
mov esi, dword [eax + 0xb50]
mov dword [esp + 0x10], esi
inc dword [esi]
test esi, esi
je 0x100cc02e
jmp 0x100cc06e
xor edx, edx
mov ecx, ebx
call fcn.100dec40
mov esi, eax
test esi, esi
je 0x100cc02e
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], esi
cmp dword [ebp + 0xc], edi
je 0x100cc09b
call fcn.100cad10
mov edi, eax
test edi, edi
jne 0x100cc098
add dword [esi], 0xffffffff
jne 0x100cc02e
mov eax, dword [esi + 4]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x28], esi
mov ecx, dword [0x103fb118]
xor eax, eax
mov dword [esp + 0x18], ecx
mov edx, 0x103fb118
xchg dword [edx], eax
test ecx, ecx
je 0x100cc1f0
mov edx, dword [ecx + 8]
push ecx
add edx, 0x2c
mov ecx, 0x103fb0c0
call fcn.101c8c00
add esp, 4
lea eax, [edi + 8]
mov ecx, edi
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [esp + 0x1c]
push ecx
push eax
push ebx
lea eax, [esi + 0x10]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [esp + 0x18]
mov ecx, ebx
mov dword [esp + 0x14], eax
call fcn.101c8d20
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 8]
mov ecx, dword [edx + 0x118]
add edx, 0x118
xchg dword [edx], ebx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100cc119
xor ebx, ebx
jmp 0x100cc125
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x14]
test edi, edi
je 0x100cc186
test eax, eax
jne 0x100cc13c
cmp ebx, 0x3e5
jne 0x100cc152
mov dword [edi + 0x20], 1
push ebx
push edi
push 0x103754d8
call sym.python310.dll_Py_BuildValue
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0xea
je 0x100cc13c
add dword [edi], 0xffffffff
jne 0x100cc16b
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
push 0
push 0
push 0
push dword [sym.python310.dll_PyExc_OSError]
call sym.python310.dll_PyErr_SetExcFromWindowsErrWithFilenameObjects
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x100cc1be
cmp ebx, 0xea
je 0x100cc1be
add dword [esi], 0xffffffff
jne 0x100cc1a3
mov eax, dword [esi + 4]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
push 0
push 0
push 0
push dword [sym.python310.dll_PyExc_OSError]
call sym.python310.dll_PyErr_SetExcFromWindowsErrWithFilenameObjects
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
call sym.python310.dll__PyBytes_Resize
add esp, 8
test eax, eax
jne 0x100cc02e
push ebx
push dword [esp + 0x14]
push 0x103754d8
call sym.python310.dll_Py_BuildValue
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10389b20
call sym.python310.dll__Py_FatalError_TstateNULL
int3