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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b647d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x100dcbc0]
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 0x10012f37
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.1008e1a0
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 0x10013060
cmp dword [ebp - 0x20], 0
jbe 0x10013060
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 0x1001304f
mov eax, esi
sub eax, edx
mov dword [ebp - 0x2c], eax
sub edx, 4
jb 0x10012fb5
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x10012fba
add ecx, 4
add edi, 4
sub edx, 4
jae 0x10012fa4
cmp edx, 0xfffffffc
je 0x10012fee
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x10012fe7
cmp edx, 0xfffffffd
je 0x10012fee
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x10012fe7
cmp edx, 0xfffffffe
je 0x10012fee
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x10012fe7
cmp edx, 0xffffffff
je 0x10012fee
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x10012fee
sbb eax, eax
or eax, 1
jmp 0x10012ff0
xor eax, eax
test eax, eax
je 0x1001304a
cmp ebx, dword [ebp - 0x2c]
je 0x1001304c
mov edi, dword [ebp + 0x14]
inc ebx
mov edx, dword [ebp + 8]
mov eax, ebx
sub edi, 4
jb 0x10013018
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x1001301d
add edx, 4
add eax, 4
sub edi, 4
jae 0x10013007
cmp edi, 0xfffffffc
je 0x1001304a
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10012ff4
cmp edi, 0xfffffffd
je 0x1001304a
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10012ff4
cmp edi, 0xfffffffe
je 0x1001304a
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10012ff4
cmp edi, 0xffffffff
je 0x1001304a
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
jne 0x10012ff4
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 0x10013065
mov ecx, dword [ebp - 0x10]
xor ebx, ebx
test ecx, ecx
je 0x10013095
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10013088
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100130d8
push edx
push ecx
call fcn.1008c3c5
mov edx, dword [ebp + 8]
add esp, 8
test edx, edx
je 0x100130c2
mov ecx, dword [ebp + 0x10]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x100130b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100130d8
push ecx
push edx
call fcn.1008c3c5
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.1009189f
int3