Function at 0x100a4890
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100be798
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100e87b8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.100a2f00
mov edx, dword [esp + 0x2c]
or eax, 0xffffffff
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100a48d0
sub eax, esi
push eax
lea esi, [ebx + 0x20]
push edx
mov ecx, esi
call fcn.100a26c0
mov eax, dword [esi]
add eax, 8
push 0x100cf688
push eax
lea eax, [esp + 0x20]
xor ebp, ebp
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.MSVCR80.dll_fopen_s]
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp ecx, ebp
je 0x100a4a9c
cmp eax, ebp
jne 0x100a4a9c
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
push ebp
push ecx
call esi
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.MSVCR80.dll_ftell]
mov edx, dword [esp + 0x28]
push ebp
push ebp
push edx
mov edi, eax
call esi
add esp, 0x1c
cmp edi, ebp
jne 0x100a4956
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
jmp 0x100a4aa8
mov dword [esp + 0x14], 0x100e8804
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebp
call fcn.100a2620
lea ecx, [edi + 1]
push ecx
call fcn.100af856
mov ebp, eax
mov byte [ebp], 0
mov edx, dword [esp + 0x1c]
push edx
push 1
push edi
push ebp
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x100a49cc
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.100a6040
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 0x100e8804
je 0x100a4aa8
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x100a4aa8
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, ebp
mov esi, ebp
je 0x100a4a4a
mov cl, byte [esi]
cmp cl, 0xa
jne 0x100a4a08
mov edx, esi
sub edx, eax
add edx, 1
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.100a27b0
add esi, 1
mov eax, esi
jmp 0x100a4a45
cmp cl, 0xd
jne 0x100a4a42
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x100a4a20
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.100a27b0
push 1
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0xa
call fcn.100a27b0
cmp byte [esi + 1], 0xa
jne 0x100a4a01
add esi, 2
mov eax, esi
jmp 0x100a4a45
add esi, 1
cmp byte [esi], 0
jne 0x100a49e8
sub esi, eax
je 0x100a4a59
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.100a27b0
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
add esp, 4
push eax
add ecx, 8
push 0
push ecx
mov ecx, ebx
call edx
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
jne 0x100a49b3
cmp eax, 0x100e8804
je 0x100a4a98
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, 1
jmp 0x100a4aaa
push ebp
push ebp
push ebp
push 2
mov ecx, ebx
call fcn.100a6040
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8