Function at 0x10003e90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100bae20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x50], esi
mov ecx, dword [0x100baea4]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x100baea0]
sub ecx, eax
xor edi, edi
sar ecx, 3
mov dword [ebp - 0x54], edi
test ecx, ecx
je 0x10003f13
mov ecx, dword [eax + esi*8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x50], eax
cmp edi, eax
lea eax, [ebp - 0x50]
jb 0x10003ef9
lea eax, [ebp - 0x54]
mov edi, dword [eax]
mov ecx, dword [0x100baea4]
mov eax, dword [0x100baea0]
sub ecx, eax
inc esi
sar ecx, 3
mov dword [ebp - 0x54], edi
cmp esi, ecx
jb 0x10003ee2
cmp dword [ebx + 0x14], 0x10
jb 0x10003f1d
mov eax, dword [ebx]
jmp 0x10003f1f
mov eax, ebx
push 0x100865ec
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
jne 0x10003f43
mov eax, dword [ebp - 0x4c]
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x10004063
push 0x20
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10003740
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], ebx
jae 0x10003f6a
lea eax, [ebp - 0x2c]
push esi
push edi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x14
push edi
push ebx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x2c]
call fcn.10003a70
mov esi, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp eax, esi
je 0x10003ff4
cmp dword [ebp - 0x18], 0x10
jb 0x10003fae
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], 0
cmp dword [esi + 0x14], 0x10
jae 0x10003fd8
mov eax, dword [esi + 0x10]
inc eax
push eax
lea edx, [ebp - 0x2c]
push esi
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x10003fdf
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov dword [esi], ebx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x18], edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], 0
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], 0
jb 0x1000400a
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [0x100baea4]
mov eax, dword [0x100baea0]
sub ecx, eax
sar ecx, 3
xor esi, esi
test ecx, ecx
je 0x10004047
mov ecx, dword [eax + esi*8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [ebp - 0x2c]
push eax
call edx
test al, al
jne 0x1000407f
mov ecx, dword [0x100baea4]
mov eax, dword [0x100baea0]
sub ecx, eax
inc esi
sar ecx, 3
cmp esi, ecx
jb 0x10004020
cmp dword [ebp - 0x18], 0x10
mov esi, dword [ebp - 0x4c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
jb 0x10004061
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007cee0
mov esp, ebp
pop ebp
ret
mov edx, dword [0x100baea0]
mov ecx, dword [edx + esi*8]
mov eax, dword [ecx]
mov esi, dword [ebp - 0x4c]
mov edx, dword [eax + 0x1c]
push esi
call edx
cmp dword [ebp - 0x18], 0x10
jb 0x10004061
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x10004059