Function at 0x567980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov esi, ecx
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x5679bd
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 0
lea ecx, [ebp - 0x10]
push ecx
push 4
lea ebx, [esi + 4]
push ebx
mov edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea edi, [esi + 8]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [edi]
imul edi, dword [ebx]
xor ecx, ecx
mov eax, edi
mov edx, 0x2c
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00595b98
add esp, 4
test eax, eax
je 0x567a39
mov dword [eax], edi
add eax, 4
dec edi
mov dword [ebp - 0x30], eax
mov ebx, eax
js 0x567a3b
mov ecx, ebx
call fcn.00565330
add ebx, 0x2c
dec edi
jns 0x567a27
mov eax, dword [ebp - 0x30]
jmp 0x567a3b
xor eax, eax
cmp dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [ebp - 4], 0
jbe 0x567aaf
jmp 0x567a50
xor ebx, ebx
cmp dword [esi + 4], ebx
jbe 0x567aa3
mov eax, dword [ebp - 8]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 2
lea edx, [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esi + 4]
imul edi, dword [ebp - 4]
add edi, ebx
imul edi, edi, 0x2c
add edi, dword [esi + 0xc]
je 0x567a9d
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
push ebx
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [ebp - 4]
mov edx, dword [edx + 0x18]
push eax
mov ecx, edi
call edx
mov ax, word [ebp + 8]
mov word [edi + 0x1c], ax
inc ebx
cmp ebx, dword [esi + 4]
jb 0x567a57
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [esi + 8]
jb 0x567a50
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [esi + 0x2c], edx
mov eax, 0xaaaaaaab
mul ecx
mov dword [esi + 0x10], ecx
mov ecx, edx
mov eax, 0xaaaaaaab
mul edi
shr ecx, 1
shr edx, 1
mov dword [esi + 0x1c], edx
imul edx, ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], edi
mov edi, edx
xor ecx, ecx
mov eax, edi
mov edx, 0x2c
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00595b98
add esp, 4
test eax, eax
je 0x567b34
mov dword [eax], edi
add eax, 4
dec edi
mov dword [ebp - 0x30], eax
mov ebx, eax
js 0x567b36
mov ecx, ebx
call fcn.00565330
add ebx, 0x2c
dec edi
jns 0x567b22
mov eax, dword [ebp - 0x30]
jmp 0x567b36
xor eax, eax
cmp dword [esi + 0x1c], 0
mov dword [esi + 0x30], eax
mov dword [ebp - 8], 0
jbe 0x567df9
mov dword [ebp - 0xc], 2
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], 0
jbe 0x567de5
mov edi, 2
mov eax, dword [esi + 4]
mov ebx, dword [ebp - 0xc]
lea ecx, [edi - 2]
cmp ecx, eax
jae 0x567b8e
lea ecx, [ebx - 2]
cmp ecx, dword [esi + 8]
jae 0x567b8e
imul ecx, eax
lea ecx, [ecx + edi - 2]
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0xc]
mov dword [ebp - 0x28], ecx
jne 0x567b95
mov dword [ebp - 0x28], 0
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x567bba
lea ecx, [ebx - 2]
cmp ecx, dword [esi + 8]
jae 0x567bba
mov edx, dword [esi + 0xc]
imul ecx, eax
add ecx, edi
imul ecx, ecx, 0x2c
lea ecx, [ecx + edx - 0x2c]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x567bc1
mov dword [ebp - 0x2c], 0
cmp edi, eax
jae 0x567bdd
lea ecx, [ebx - 2]
cmp ecx, dword [esi + 8]
jae 0x567bdd
imul ecx, eax
add ecx, edi
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0xc]
mov dword [ebp - 0x30], ecx
jne 0x567be4
mov dword [ebp - 0x30], 0
lea ecx, [edi - 2]
cmp ecx, eax
jae 0x567c09
lea edx, [ebx - 1]
cmp edx, dword [esi + 8]
jae 0x567c09
imul edx, eax
lea edx, [edx + edi - 2]
imul edx, edx, 0x2c
add edx, dword [esi + 0xc]
je 0x567c09
mov dword [ebp - 0x14], edx
xor ecx, ecx
jmp 0x567c0e
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea edx, [edi - 1]
cmp edx, eax
jae 0x567c35
lea edx, [ebx - 1]
cmp edx, dword [esi + 8]
jae 0x567c35
mov ecx, dword [esi + 0xc]
imul edx, eax
add edx, edi
imul edx, edx, 0x2c
lea edx, [edx + ecx - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x18], edx
cmp edx, ecx
jne 0x567c38
mov dword [ebp - 0x18], ecx
cmp edi, eax
jae 0x567c54
lea edx, [ebx - 1]
cmp edx, dword [esi + 8]
jae 0x567c54
imul edx, eax
add edx, edi
imul edx, edx, 0x2c
add edx, dword [esi + 0xc]
mov dword [ebp - 0x1c], edx
jne 0x567c57
mov dword [ebp - 0x1c], ecx
lea edx, [edi - 2]
cmp edx, eax
jae 0x567c77
cmp ebx, dword [esi + 8]
jae 0x567c77
mov edx, eax
imul edx, ebx
lea edx, [edx + edi - 2]
imul edx, edx, 0x2c
add edx, dword [esi + 0xc]
mov dword [ebp - 0x20], edx
jne 0x567c7a
mov dword [ebp - 0x20], ecx
lea edx, [edi - 1]
cmp edx, eax
jae 0x567ca0
cmp ebx, dword [esi + 8]
jae 0x567ca0
mov edx, dword [esi + 0xc]
mov ecx, eax
imul ecx, ebx
add ecx, edi
imul ecx, ecx, 0x2c
lea edx, [ecx + edx - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x24], edx
cmp edx, ecx
jne 0x567ca3
mov dword [ebp - 0x24], ecx
cmp edi, eax
jae 0x567cbd
cmp ebx, dword [esi + 8]
jae 0x567cbd
imul eax, ebx
add eax, edi
imul eax, eax, 0x2c
add eax, dword [esi + 0xc]
je 0x567cbd
mov ebx, eax
jmp 0x567cbf
xor ebx, ebx
mov edx, dword [ebp - 0x28]
cmp edx, ecx
je 0x567dd2
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
je 0x567dd2
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x567dd2
cmp dword [ebp - 0x14], 0
je 0x567dd2
cmp dword [ebp - 0x18], 0
je 0x567dd2
cmp dword [ebp - 0x1c], 0
je 0x567dd2
cmp dword [ebp - 0x20], 0
je 0x567dd2
cmp dword [ebp - 0x24], 0
je 0x567dd2
test ebx, ebx
je 0x567dd2
cmp byte [edx + 0x1c], 1
je 0x567d86
cmp byte [edx + 0x1d], 0
jne 0x567d86
cmp byte [eax + 0x1c], 1
je 0x567d86
cmp byte [eax + 0x1d], 0
jne 0x567d86
call fcn.00561ac0
test eax, eax
jne 0x567d86
mov ecx, dword [ebp - 0x14]
call fcn.00561ac0
test eax, eax
jne 0x567d86
mov ecx, dword [ebp - 0x18]
call fcn.00561ac0
test eax, eax
jne 0x567d86
mov ecx, dword [ebp - 0x1c]
call fcn.00561ac0
test eax, eax
jne 0x567d86
mov ecx, dword [ebp - 0x20]
call fcn.00561ac0
test eax, eax
jne 0x567d86
mov ecx, dword [ebp - 0x24]
call fcn.00561ac0
test eax, eax
jne 0x567d86
mov ecx, ebx
call fcn.00561ac0
test eax, eax
jne 0x567d86
xor edx, edx
jmp 0x567d8b
mov edx, 1
mov eax, dword [esi + 0x18]
mov ebx, dword [ebp - 8]
mov ecx, dword [esi + 0x30]
imul eax, ebx
add eax, dword [ebp - 4]
imul eax, eax, 0x2c
mov word [eax + ecx + 0x1c], dx
mov ecx, dword [esi + 0x18]
mov eax, dword [ebp - 4]
imul ecx, ebx
add ecx, eax
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [esi + 0x18]
imul ecx, ebx
add ecx, dword [ebp - 4]
push ebx
imul ecx, ecx, 0x2c
add ecx, dword [esi + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
mov eax, dword [ebp - 4]
inc eax
add edi, 3
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x18]
jb 0x567b67
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 3
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [esi + 0x1c]
jb 0x567b51
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4