Function at 0x565950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0x44c]
push eax
mov edi, ecx
push 0xe
lea ecx, [ebp - 0x438]
push ecx
push edi
mov dword [ebp - 0x44c], esi
call ebx
test eax, eax
je 0x565c2b
mov edx, 0x4d42
cmp word [ebp - 0x438], dx
jne 0x565c2b
cmp word [ebp - 0x432], si
jne 0x565c2b
cmp word [ebp - 0x430], si
jne 0x565c2b
mov eax, dword [ebp - 0x42e]
add eax, 0xfffffff2
cmp eax, 0x424
jb 0x5659d3
mov eax, 0x424
push esi
lea ecx, [ebp - 0x44c]
push ecx
push eax
lea edx, [ebp - 0x428]
push edx
push edi
call ebx
test eax, eax
je 0x565c2b
cmp dword [ebp - 0x428], 0x28
jne 0x565c2b
cmp dword [ebp - 0x418], esi
jne 0x565c2b
mov eax, dword [ebp - 0x420]
push esi
push esi
lea ecx, [ebp - 0x440]
push ecx
push esi
lea edx, [ebp - 0x428]
push edx
neg eax
push esi
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x420], eax
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ecx, dword [ebp - 0x420]
neg ecx
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x420], ecx
cmp eax, esi
je 0x565c2b
cmp dword [ebp - 0x440], esi
je 0x565c2b
movzx eax, word [ebp - 0x41a]
imul eax, dword [ebp - 0x424]
cdq
and edx, 7
lea esi, [edx + eax]
mov edx, dword [ebp - 0x42e]
push 0
sar esi, 3
push 0
add esi, 3
push edx
and esi, 0xfffffffc
push edi
mov dword [ebp - 0x450], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x420]
mov edx, dword [ebp - 0x440]
imul ecx, esi
push 0
lea eax, [ebp - 0x44c]
push eax
push ecx
push edx
push edi
call ebx
mov eax, dword [ebp - 0x420]
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
and edx, 3
add eax, edx
sar ecx, 1
xor ebx, ebx
sar eax, 2
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x43c], ebx
test ecx, ecx
jle 0x565b35
mov dword [ebp - 0x448], ebx
mov edi, edi
mov ecx, dword [ebp - 0x420]
mov edx, dword [ebp - 0x440]
sub ecx, ebx
dec ecx
imul ecx, esi
add ecx, edx
add edx, dword [ebp - 0x448]
test eax, eax
jle 0x565b20
mov dword [ebp - 0x444], eax
mov ebx, dword [edx]
mov edi, dword [ecx]
mov dword [ecx], ebx
mov dword [edx], edi
add ecx, 4
add edx, 4
dec dword [ebp - 0x444]
jne 0x565b04
mov ebx, dword [ebp - 0x43c]
add dword [ebp - 0x448], esi
inc ebx
mov dword [ebp - 0x43c], ebx
cmp ebx, dword [ebp - 0x454]
jl 0x565ae0
xor ecx, ecx
cmp dword [ebp + 8], ecx
je 0x565c14
cmp word [ebp - 0x41a], 0x20
jne 0x565c14
mov dword [ebp - 0x43c], ecx
cmp dword [ebp - 0x420], ecx
jle 0x565c14
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x444], ecx
lea esp, [esp]
add ecx, dword [ebp - 0x440]
xor ebx, ebx
test eax, eax
jle 0x565bed
lea esp, [esp]
movzx edi, byte [ecx + 3]
movzx esi, byte [ecx]
imul esi, edi
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 1]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx], al
mov eax, 0x80808081
imul esi
add edx, esi
movzx esi, byte [ecx + 2]
sar edx, 7
imul esi, edi
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 1], al
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ecx + 2], al
mov eax, dword [ebp - 0x424]
inc ebx
add ecx, 4
cmp ebx, eax
jl 0x565b80
mov esi, dword [ebp - 0x450]
mov edx, dword [ebp - 0x43c]
mov ecx, dword [ebp - 0x444]
inc edx
add ecx, esi
mov dword [ebp - 0x43c], edx
mov dword [ebp - 0x444], ecx
cmp edx, dword [ebp - 0x420]
jl 0x565b70
mov eax, dword [ebp - 0x458]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403fc1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00403fc1
mov esp, ebp
pop ebp
ret