Function at 0x1000fe51
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cl, byte [eax + 0x12828]
test ecx, ecx
jne 0x1000fe98
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
push 1
push 4
mov ecx, dword [ebp - 0x24]
add ecx, 0xc
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jae 0x1000fe96
push 0x10018bfc
mov ecx, dword [ebp - 0x24]
call fcn.1000e72d
jmp 0x1000fef9
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x12844], 4
jae 0x1000feb1
push str.Read_Error
mov ecx, dword [ebp - 0x24]
call fcn.1000e72d
push 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x12840]
mov edx, dword [ebp - 0x24]
add ecx, dword [edx + 0x12848]
push ecx
mov eax, dword [ebp - 0x24]
add eax, 0xc
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x1283c], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x12848]
add edx, 4
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x12848], edx
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0xc], 0
jne 0x1000ff07
jmp 0x100100c3
mov ecx, dword [ebp - 0x24]
call fcn.1000f517
mov ecx, dword [ebp - 0x24]
call fcn.1000ee1c
mov dword [ebp - 0x10], 0
jmp 0x1000ff29
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0xfc4
jge 0x1000ff3e
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x10]
mov byte [eax + 0x18], 0x20
jmp 0x1000ff20
mov dword [ebp - 4], 0xfc4
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0xc]
jae 0x100100c3
mov ecx, dword [ebp - 0x24]
call fcn.1000f55d
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x1000ffdb
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cl, byte [eax + 0x12828]
test ecx, ecx
jne 0x1000ff94
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_putc]
add esp, 8
jmp 0x1000ffac
mov dl, byte [ebp - 8]
mov byte [ebp - 0x1c], dl
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x1282c
call fcn.10010490
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 4]
mov dl, byte [ebp - 8]
mov byte [ecx + 0x18], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xfff
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
jmp 0x100100a1
mov ecx, dword [ebp - 0x24]
call fcn.1000f761
mov ecx, dword [ebp - 4]
sub ecx, eax
sub ecx, 1
and ecx, 0xfff
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
sub edx, 0xfd
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0
jmp 0x10010012
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
jge 0x100100a1
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
and edx, 0xfff
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cl, byte [eax + edx + 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x24]
xor eax, eax
mov al, byte [edx + 0x12828]
test eax, eax
jne 0x1001005b
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_putc]
add esp, 8
jmp 0x10010073
mov cl, byte [ebp - 8]
mov byte [ebp - 0x20], cl
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x1282c
call fcn.10010490
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 4]
mov cl, byte [ebp - 8]
mov byte [eax + 0x18], cl
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
and eax, 0xfff
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x10010009
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x14]
jbe 0x100100be
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x14]
add edx, 0x400
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x14], edx
jmp 0x1000ff4c
mov esp, ebp
pop ebp
ret