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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b634d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x100dbe80]
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 0x10012c17
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.1008e0c0
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 0x10012d40
cmp dword [ebp - 0x20], 0
jbe 0x10012d40
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 0x10012d2f
mov eax, esi
sub eax, edx
mov dword [ebp - 0x2c], eax
sub edx, 4
jb 0x10012c95
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x10012c9a
add ecx, 4
add edi, 4
sub edx, 4
jae 0x10012c84
cmp edx, 0xfffffffc
je 0x10012cce
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x10012cc7
cmp edx, 0xfffffffd
je 0x10012cce
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x10012cc7
cmp edx, 0xfffffffe
je 0x10012cce
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x10012cc7
cmp edx, 0xffffffff
je 0x10012cce
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x10012cce
sbb eax, eax
or eax, 1
jmp 0x10012cd0
xor eax, eax
test eax, eax
je 0x10012d2a
cmp ebx, dword [ebp - 0x2c]
je 0x10012d2c
mov edi, dword [ebp + 0x14]
inc ebx
mov edx, dword [ebp + 8]
mov eax, ebx
sub edi, 4
jb 0x10012cf8
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10012cfd
add edx, 4
add eax, 4
sub edi, 4
jae 0x10012ce7
cmp edi, 0xfffffffc
je 0x10012d2a
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x10012cd4
cmp edi, 0xfffffffd
je 0x10012d2a
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x10012cd4
cmp edi, 0xfffffffe
je 0x10012d2a
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x10012cd4
cmp edi, 0xffffffff
je 0x10012d2a
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
jne 0x10012cd4
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 0x10012d45
mov ecx, dword [ebp - 0x10]
xor ebx, ebx
test ecx, ecx
je 0x10012d75
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10012d68
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012db8
push edx
push ecx
call fcn.1008c2e7
mov edx, dword [ebp + 8]
add esp, 8
test edx, edx
je 0x10012da2
mov ecx, dword [ebp + 0x10]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10012d98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012db8
push ecx
push edx
call fcn.1008c2e7
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.100917bf
int3