Function at 0x507945
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xc], edi
mov ebx, ecx
mov dword [ebp - 0x14], edi
jle 0x507ca0
mov eax, dword [esi + 0x14]
and dword [ebp - 4], 0
mov eax, dword [edi + eax]
lea ecx, [eax + 0xc]
mov dword [ebp - 0x18], eax
push 0
add eax, 4
push eax
push dword [esi]
mov dword [ebp - 0xc], ecx
call fcn.005a4c1b
push dword [esi]
lea eax, [ebp - 0x1c]
push 1
push 4
push eax
call fcn.005a54a5
push 1
push 2
push dword [esi]
call fcn.005a4c1b
push dword [esi]
lea eax, [ebp - 4]
push 1
push 1
push eax
call fcn.005a54a5
push 1
push 1
push dword [esi]
call fcn.005a4c1b
mov ecx, dword [esi + 0x14]
xor eax, eax
add esp, 0x44
mov dword [edi + ecx + 8], eax
cmp dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
jle 0x507c8e
jmp 0x5079d1
xor eax, eax
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
push dword [esi]
mov dword [ebp + 8], eax
call fcn.005a4c1b
push dword [esi]
lea eax, [ebp - 8]
push 1
push 1
push eax
call fcn.005a54a5
push dword [esi]
lea eax, [ebp + 8]
push 1
push 3
push eax
call fcn.005a54a5
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
and al, 0x80
movsx eax, al
lea ecx, [ecx + edx*4 + 0xc]
add ecx, dword [ebp - 0x18]
add esp, 0x2c
neg eax
sbb eax, eax
not eax
and eax, ecx
mov ecx, dword [ebp - 8]
and ecx, 0x7f
cmp ecx, 0x1b
ja case.0x507a2f.15
jmp dword [ecx*4 + 0x507ca9]
push dword [ebp + 8]
mov ecx, ebx
push eax
push dword [esi]
call fcn.00507210
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0xc], eax
mov eax, dword [esi + 0x14]
lea eax, [edi + eax + 8]
or dword [eax], 1
jmp case.0x507a2f.15
push dword [ebp + 8]
mov ecx, ebx
push eax
push dword [esi]
call fcn.00507210
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x10], eax
mov eax, dword [esi + 0x14]
lea eax, [edi + eax + 8]
or dword [eax], 2
jmp case.0x507a2f.15
push eax
push dword [esi]
lea eax, [ebp - 0x24]
push eax
mov ecx, ebx
call fcn.005071df
mov edx, dword [eax]
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x14], edx
mov eax, dword [eax + 4]
mov dword [edi + ecx + 0x18], eax
jmp case.0x507a2f.15
push dword [ebp + 8]
mov ecx, ebx
push eax
push dword [esi]
call fcn.00507210
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x1c], eax
mov eax, dword [esi + 0x14]
lea eax, [edi + eax + 8]
or dword [eax], 4
jmp case.0x507a2f.15
push dword [ebp + 8]
mov ecx, ebx
push eax
push dword [esi]
call fcn.00507210
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x20], eax
mov eax, dword [esi + 0x14]
lea eax, [edi + eax + 8]
or dword [eax], 8
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x24], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.005071df
mov edx, dword [eax]
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x28], edx
mov eax, dword [eax + 4]
mov dword [edi + ecx + 0x2c], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x30], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x34], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x38], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x3c], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x40], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x44], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x48], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x4c], eax
jmp case.0x507a2f.15
push dword [ebp + 8]
mov ecx, ebx
push eax
push dword [esi]
call fcn.00507210
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x50], eax
mov eax, dword [esi + 0x14]
lea eax, [edi + eax + 8]
or dword [eax], 0x10
jmp case.0x507a2f.15
push dword [ebp + 8]
mov ecx, ebx
push eax
push dword [esi]
call fcn.00507210
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x54], eax
mov eax, dword [esi + 0x14]
lea eax, [edi + eax + 8]
or dword [eax], 0x20
jmp case.0x507a2f.15
push eax
push dword [esi]
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.005071df
mov edx, dword [eax]
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x58], edx
mov eax, dword [eax + 4]
mov dword [edi + ecx + 0x5c], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x60], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x64], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x68], eax
jmp case.0x507a2f.15
push eax
push dword [esi]
mov ecx, ebx
call fcn.0050712f
mov ecx, dword [esi + 0x14]
mov dword [edi + ecx + 0x6c], eax
add dword [ebp - 0xc], 4
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jl 0x5079cf
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add edi, 0x70
cmp eax, dword [esi + 0xc]
jl 0x507961
pop edi
pop esi
pop ebx
leave
ret 4