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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b676d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x100dcd80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
push 0
push dword [eax]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [ebp - 0x2c], eax
xor esi, esi
mov dword [ebp - 0x10], ecx
xor edi, edi
mov dword [ebp - 0x38], ecx
xor ebx, ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x10012e97
push eax
lea ecx, [ebp - 0x38]
call fcn.10002400
mov esi, dword [ebp - 0x2c]
push esi
push ebx
mov ebx, dword [ebp - 0x38]
push ebx
mov dword [ebp - 0x10], ebx
call fcn.1008e490
mov ecx, dword [ebp - 0x30]
mov eax, ebx
add esp, 0xc
mov dword [ebp - 0x18], eax
add esi, ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], esi
mov edi, eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x1c]
push 0
push 0
push dword [ebp + 0x14]
mov dword [ebp - 0x20], 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 8]
test eax, eax
je 0x10012fcd
cmp dword [ebp - 0x20], 0
jbe 0x10012fcd
mov edx, dword [ebp + 0xc]
mov eax, esi
mov ecx, dword [ebp + 8]
sub edx, ecx
sub eax, dword [ebp - 0x24]
mov dword [ebp + 0x14], edx
cmp eax, edx
jl 0x10012fbc
mov eax, esi
sub eax, edx
mov dword [ebp - 0x2c], eax
sub edx, 4
jb 0x10012f15
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x10012f1a
add ecx, 4
add edi, 4
sub edx, 4
jae 0x10012f04
cmp edx, 0xfffffffc
je 0x10012f4e
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x10012f47
cmp edx, 0xfffffffd
je 0x10012f4e
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x10012f47
cmp edx, 0xfffffffe
je 0x10012f4e
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x10012f47
cmp edx, 0xffffffff
je 0x10012f4e
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x10012f4e
sbb eax, eax
or eax, 1
jmp 0x10012f50
xor eax, eax
test eax, eax
je 0x10012fb7
cmp ebx, dword [ebp - 0x2c]
je 0x10012fb9
mov edi, dword [ebp + 0x14]
inc ebx
mov edx, dword [ebp + 8]
mov eax, ebx
sub edi, 4
jb 0x10012f78
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10012f7d
add edx, 4
add eax, 4
sub edi, 4
jae 0x10012f67
cmp edi, 0xfffffffc
je 0x10012fb1
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10012faa
cmp edi, 0xfffffffd
je 0x10012fb1
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10012faa
cmp edi, 0xfffffffe
je 0x10012fb1
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10012faa
cmp edi, 0xffffffff
je 0x10012fb1
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x10012fb1
sbb eax, eax
or eax, 1
jmp 0x10012fb3
xor eax, eax
test eax, eax
jne 0x10012f54
mov esi, ebx
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
sub edx, ecx
add edx, esi
mov dword [ebp + 0x14], edx
mov ebx, edx
mov edx, dword [ebp + 8]
jmp 0x10012fd2
mov ecx, dword [ebp - 0x10]
xor ebx, ebx
test ecx, ecx
je 0x10013002
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10012ff5
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013045
push edx
push ecx
call fcn.1008c554
mov edx, dword [ebp + 8]
add esp, 8
test edx, edx
je 0x1001302f
mov ecx, dword [ebp + 0x10]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10013025
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013045
push ecx
push edx
call fcn.1008c554
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.10091b9f
int3