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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101bd92c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push ebx
cmp word [edx], 0
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov dword [ebp - 0x210], ebx
jne 0x1010c52e
xor ecx, ecx
jmp 0x1010c542
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010c533
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x20]
call fcn.100048b0
cmp word [esi], 0
jne 0x1010c556
xor ecx, ecx
jmp 0x1010c56f
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x1010c560
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010c560
sub ecx, edx
sar ecx, 1
push ecx
lea edi, [ebx + 0x38]
push esi
mov ecx, edi
call fcn.100048b0
cmp dword [edi + 0x14], 8
jb 0x1010c585
mov eax, dword [edi]
jmp 0x1010c587
mov eax, edi
push 0
push 0x80
push 4
push 0
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1010c7df
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x34
call fcn.10090f8f
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1010c7df
push 0x34
push 0
push ebx
call fcn.10098090
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push eax
push 0x34
push ebx
push esi
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, str.__GS__
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1010c620
test dl, dl
je 0x1010c61c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1010c620
add eax, 2
add ecx, 2
test dl, dl
jne 0x1010c600
xor eax, eax
jmp 0x1010c625
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1010c7df
mov ecx, str.__Dict__
lea eax, [ebx + 0xa]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1010c655
test dl, dl
je 0x1010c651
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1010c655
add eax, 2
add ecx, 2
test dl, dl
jne 0x1010c635
xor eax, eax
jmp 0x1010c65a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1010c7df
push 0x4e20
push dword [ebx + 0x20]
lea eax, [ebp - 0x20c]
push dword [ebx + 0x18]
push str.__GS_SYS_PY_CELL_DICT_IDX__
push 0x101917dc
push str._s__s__d__d__d
push eax
call fcn.10091da4
add esp, 0x1c
cmp word [ebp - 0x20c], 0
jne 0x1010c699
xor ecx, ecx
jmp 0x1010c6b1
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1010c6a2
sub ecx, edx
sar ecx, 1
mov esi, dword [ebp - 0x210]
push ecx
lea eax, [ebp - 0x20c]
add esi, 0x50
push eax
mov ecx, esi
call fcn.100048b0
push ebx
call fcn.1009503c
add esp, 4
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x214], 0
jb 0x1010c6e4
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x1010c6ec
mov edi, dword [edi]
mov ebx, dword [ebp - 0x210]
push esi
lea eax, [ebx + 0x14]
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebx + 8]
push ecx
push edi
mov ecx, ebx
call fcn.1011dbd0
cmp dword [ebp - 0x214], 0
lea edi, [ebx + 0xc]
mov esi, eax
mov dword [edi], esi
jne 0x1010c7df
test esi, esi
je 0x1010c7df
mov ecx, str.__GS__
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1010c750
test dl, dl
je 0x1010c74c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1010c750
add eax, 2
add ecx, 2
test dl, dl
jne 0x1010c730
xor eax, eax
jmp 0x1010c755
sbb eax, eax
or eax, 1
xor ecx, ecx
test eax, eax
mov eax, 1
cmovne eax, ecx
mov dword [ebp - 0x210], eax
mov ecx, str.__Dict__
lea eax, [esi + 0xa]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1010c790
test dl, dl
je 0x1010c78c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1010c790
add eax, 2
add ecx, 2
test dl, dl
jne 0x1010c770
xor eax, eax
jmp 0x1010c795
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1010c7d3
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x1010c7d3
cmp byte [esi + 0x1c], 1
je 0x1010c7d3
mov dword [ebx + 0x18], esi
mov eax, dword [esi + 0x30]
add eax, esi
pop edi
mov dword [ebx + 0x10], eax
pop esi
mov dword [ebx + 0x1c], 1
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1009174c
mov esp, ebp
pop ebp
ret 0xc
push edi
lea eax, [ebx + 8]
push eax
mov ecx, ebx
call fcn.1011db90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1009174c
mov esp, ebp
pop ebp
ret 0xc