Function at 0x300134c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x3021be88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], esi
mov edi, dword [esi + 0x2c]
mov byte [ebp - 0x69], 1
mov dword [esi + 0x28], 0
test edi, edi
jne 0x300134f1
mov edi, dword [esi + 0x30]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x30013720
test edi, edi
je 0x30013720
cmp edi, 0x64
ja 0x30013593
cmp byte [ebp + 0x10], 0
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
push edi
je 0x30013543
call fcn.3015f9e2
mov edx, dword [esi + 0x2c]
mov ecx, ebx
push eax
mov dword [esi + 0x28], eax
call fcn.30015340
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x70], 0
call fcn.3015f9e2
add esp, 4
mov dword [esi + 0x28], eax
push 0
push 0
push ebx
mov ebx, dword [ebp - 0x74]
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x70]
push 0
push eax
push dword [esi + 0x2c]
push dword [esi + 0x28]
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x51eb851f
mov ebx, edi
mul edi
shr edx, 5
imul eax, edx, 0x64
sub ebx, eax
jne 0x300135ab
mov ebx, 0x64
sub edi, ebx
add edi, dword [ebp + 8]
mov ecx, edi
call fcn.300027c0
test eax, eax
jne 0x300135d0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret 0xc
cmp edi, dword [ebp + 8]
jb 0x3001369c
lea esp, [esp]
push ebx
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.30162560
mov cl, byte [ebp + 0x10]
add esp, 0xc
test cl, cl
je 0x30013615
lea eax, [ebp - 0x68]
mov edx, ebx
push eax
mov ecx, edi
call fcn.30015340
mov cl, al
add esp, 4
mov byte [ebp - 0x69], cl
test cl, cl
je 0x30013699
jmp 0x30013667
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x300136fd
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x3001364b
test eax, eax
jne 0x30013695
push 0
lea eax, [ebp - 0x7c]
push eax
push ebx
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x30013695
mov byte [ebp - 0x69], 1
lea eax, [ebx - 1]
test eax, eax
js 0x30013683
mov edi, edi
cmp byte [ebp + eax - 0x68], 0
jne 0x3001367e
sub eax, 1
jns 0x30013670
jmp 0x30013683
add eax, 1
jne 0x300136dd
mov ebx, 0x64
sub edi, ebx
cmp edi, dword [ebp + 8]
jae 0x300135e0
jmp 0x30013699
mov byte [ebp - 0x69], 0
mov esi, dword [ebp - 0x70]
mov ebx, dword [ebp + 8]
mov cl, byte [ebp + 0x10]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x3001370a
push eax
test cl, cl
jne 0x3001351a
mov dword [ebp - 0x78], 0
call fcn.3015f9e2
add esp, 4
mov dword [esi + 0x28], eax
push 0
push 0
push ebx
mov ebx, dword [ebp - 0x74]
push dword [ebx + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x78]
jmp 0x30013569
mov ebx, dword [ebp + 8]
add edi, eax
mov esi, dword [ebp - 0x70]
cmp ebx, edi
jae 0x3001369f
mov ecx, dword [esi + 0x30]
sub edi, ebx
lea eax, [edi + 4]
mov dword [esi + 0x2c], eax
cmp ecx, eax
jae 0x3001369f
mov dword [esi + 0x2c], ecx
jmp 0x3001369f
mov esi, dword [ebp - 0x70]
xor al, al
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x69], al
jmp 0x300136a2
mov al, byte [ebp - 0x69]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3015f3bd
mov esp, ebp
pop ebp
ret 0xc