Function at 0x10001510
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x10007248
push ecx
mov dword [ebp - 0x18], edx
call dword [sym.imp.MSVCR120.dll_fopen]
mov esi, dword [sym.imp.MSVCR120.dll_fseek]
mov edi, eax
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.MSVCR120.dll_ftell]
mov ebx, eax
push ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.MSVCR120.dll_malloc]
push 0
push 0
push edi
mov dword [ebp - 4], eax
call esi
push edi
push ebx
mov ebx, dword [ebp - 4]
push 1
push ebx
call dword [sym.imp.MSVCR120.dll_fread]
push edi
call dword [sym.imp.MSVCR120.dll_fclose]
mov eax, dword [ebx + 0x3c]
lea esi, [ebx + 0xf8]
add esi, eax
add esp, 0x3c
xor ecx, ecx
mov dword [ebp - 8], esi
mov edx, esi
movzx edi, word [eax + ebx + 6]
mov ebx, dword [eax + ebx + 0x78]
test edi, edi
je 0x100015ab
jmp 0x10001590
mov esi, dword [edx + 0xc]
cmp ebx, esi
jb 0x100015a0
mov eax, dword [edx + 0x10]
add eax, esi
cmp ebx, eax
jb 0x100015a8
inc ecx
add edx, 0x28
cmp ecx, edi
jb 0x10001590
mov esi, dword [ebp - 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0xc]
add ecx, ebx
mov dword [ebp - 0x10], 0
cmp ecx, dword [ebp - 0xc]
sbb eax, eax
and eax, ecx
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [eax + 0x18], 0
jbe 0x1000175c
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0x1c], ebx
xor edx, edx
mov eax, esi
test edi, edi
je 0x100015fb
nop
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x100015f0
mov ecx, dword [eax + 0x10]
add ecx, esi
cmp ebx, ecx
jb 0x100015f8
inc edx
add eax, 0x28
cmp edx, edi
jb 0x100015e0
mov esi, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
mov edx, esi
sub ecx, dword [eax + 0xc]
add ecx, ebx
cmp ecx, dword [ebp - 0xc]
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x10]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 4]
mov ebx, dword [eax + ecx]
xor ecx, ecx
test edi, edi
je 0x1000163b
mov edi, edi
mov esi, dword [edx + 0xc]
cmp ebx, esi
jb 0x10001630
mov eax, dword [edx + 0x10]
add eax, esi
cmp ebx, eax
jb 0x10001638
inc ecx
add edx, 0x28
cmp ecx, edi
jb 0x10001620
mov esi, dword [ebp - 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0xc]
mov edx, dword [ebp - 4]
add ecx, ebx
cmp ecx, dword [ebp - 0xc]
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x18]
add eax, edx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10001672
test dl, dl
je 0x1000166e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10001672
add eax, 2
add ecx, 2
test dl, dl
jne 0x10001652
xor eax, eax
jmp 0x10001677
sbb eax, eax
or eax, 1
test eax, eax
mov eax, dword [ebp - 0x14]
je 0x10001698
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [eax + 0x18]
jb 0x100015d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x1c]
xor edx, edx
mov ecx, esi
test edi, edi
je 0x100016be
mov esi, dword [ecx + 0xc]
cmp ebx, esi
jb 0x100016b3
mov eax, dword [ecx + 0x10]
add eax, esi
cmp ebx, eax
jb 0x100016bb
inc edx
add ecx, 0x28
cmp edx, edi
jb 0x100016a3
mov esi, dword [ebp - 8]
mov eax, dword [ecx + 0x14]
mov edx, esi
sub eax, dword [ecx + 0xc]
add eax, ebx
cmp eax, dword [ebp - 0xc]
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ecx
xor ecx, ecx
mov ebx, dword [eax + 0x24]
test edi, edi
je 0x100016f8
mov edi, edi
mov esi, dword [edx + 0xc]
cmp ebx, esi
jb 0x100016f0
mov eax, dword [edx + 0x10]
add eax, esi
cmp ebx, eax
jb 0x100016f8
inc ecx
add edx, 0x28
cmp ecx, edi
jb 0x100016e0
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0xc]
mov edx, dword [ebp - 4]
add ecx, ebx
cmp ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 0x10]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x1c]
movzx eax, word [eax + edx]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov esi, dword [eax + edx]
test edi, edi
je 0x10001741
mov edx, dword [ebx + 0xc]
cmp esi, edx
jb 0x10001736
mov eax, dword [ebx + 0x10]
add eax, edx
cmp esi, eax
jb 0x1000173e
inc ecx
add ebx, 0x28
cmp ecx, edi
jb 0x10001726
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 0x14]
sub ecx, dword [ebx + 0xc]
add ecx, esi
cmp ecx, dword [ebp - 0xc]
push edx
sbb esi, esi
and esi, ecx
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret