Function at 0x53d540
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
cmp dword [eax + 4], 0xffffffff
jne 0x53d559
xor al, al
jmp 0x53d7bc
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
mov eax, dword [ebp - 0x54]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x54]
cmp dword [eax + 8], 0xffffffff
jne 0x53d59c
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
xor al, al
jmp 0x53d7bc
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
call fcn.004d1618
and dword [ebp - 0x20], 0
and dword [ebp - 4], 0
and dword [ebp - 0x2c], 0
push 0x4e20
call fcn.00565bb9
pop ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
and dword [ebp - 0x14], 0
and dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0x4e20
push dword [ebp - 0x24]
mov eax, dword [ebp - 0x54]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x53d619
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
call fcn.00565be4
pop ecx
xor al, al
jmp 0x53d7bc
cmp dword [ebp - 0x28], 0
jne 0x53d635
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
call fcn.00565be4
pop ecx
xor al, al
jmp 0x53d7bc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x53d657
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
push dword [ebp - 0x40]
call fcn.00565be4
pop ecx
xor al, al
jmp 0x53d7bc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp + 0xc]
je 0x53d76c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x10]
je 0x53d76c
cmp dword [ebp - 0x2c], 4
jl 0x53d6b7
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x53d767
cmp dword [ebp - 0x2c], 0
je 0x53d6e5
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0058e7b0
add esp, 0xc
push dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
call fcn.0058e7b0
add esp, 0xc
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, 0x4e20
sub eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x54]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x53d726
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
call fcn.00565be4
pop ecx
xor al, al
jmp 0x53d7bc
cmp dword [ebp - 0x28], 0
jne 0x53d73f
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x48], eax
push dword [ebp - 0x48]
call fcn.00565be4
pop ecx
xor al, al
jmp 0x53d7bc
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 8], eax
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
jmp 0x53d672
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp + 0xc]
je 0x53d780
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp + 0x10]
jne 0x53d7ab
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push 4
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
call fcn.004d2c5e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x4c]
call fcn.00565be4
pop ecx
mov al, 1
jmp 0x53d7bc
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
push dword [ebp - 0x50]
call fcn.00565be4
pop ecx
xor al, al
leave
ret 0x10