Function at 0x570560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
push 0xa0
push 1
mov edx, dword [ebp + 8]
add edx, 0x210
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 0xa0
je 0x570598
mov eax, 0xffffffe7
jmp 0x570817
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x210]
cmp ecx, dword [str.WKNC]
jne 0x5705c3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x320]
and eax, 0xfffffffd
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x320], eax
jmp 0x570815
mov edx, dword [ebp + 8]
add edx, 0x210
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 3
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dl, byte [ecx]
mov byte [ebp - 5], dl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 5]
mov byte [ecx], dl
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov dl, byte [ecx]
mov byte [ebp - 5], dl
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp - 5]
mov byte [eax], cl
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x210]
cmp eax, dword [str.WKNC]
je 0x570639
mov eax, 0xffffffe5
jmp 0x570817
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x320]
or edx, 2
mov eax, dword [ebp + 8]
mov dword [eax + 0x320], edx
mov ecx, dword [ebp + 8]
add ecx, 0x214
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 3
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x11]
mov byte [eax], cl
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x18]
mov al, byte [ebp - 0x11]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 0x218
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
add edx, 3
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x1c]
sub edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x24]
mov cl, byte [ebp - 0x1d]
mov byte [eax], cl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [ebp - 0x1d], cl
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x24]
mov al, byte [ebp - 0x1d]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 0x220
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
add edx, 3
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov cl, byte [eax]
mov byte [ebp - 0x29], cl
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [ebp - 0x29]
mov byte [eax], cl
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x28]
mov cl, byte [eax]
mov byte [ebp - 0x29], cl
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x30]
mov al, byte [ebp - 0x29]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 0x21c
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
add edx, 3
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov cl, byte [eax]
mov byte [ebp - 0x35], cl
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x34]
sub edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x3c]
mov cl, byte [ebp - 0x35]
mov byte [eax], cl
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x34]
mov cl, byte [eax]
mov byte [ebp - 0x35], cl
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x3c]
mov al, byte [ebp - 0x35]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, 0x224
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
add edx, 3
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov cl, byte [eax]
mov byte [ebp - 0x41], cl
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x48]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x40]
sub edx, 1
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x48]
mov cl, byte [ebp - 0x41]
mov byte [eax], cl
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x40]
mov cl, byte [eax]
mov byte [ebp - 0x41], cl
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x48]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x48]
mov al, byte [ebp - 0x41]
mov byte [edx], al
xor eax, eax
mov esp, ebp
pop ebp
ret