Function at 0x64bde0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f98be
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x766480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x32c], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x218]
mov ebx, dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x340], eax
sub ecx, eax
nop word [eax + eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x64be30
mov esi, ebx
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x64be40
lea edi, [ebp - 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x64be50
mov ecx, ebx
lea eax, [ebp - 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0x7062c4
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x64c237
mov esi, dword [ebp - 0x32c]
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push edi
push 1
lea ecx, [esi + 0x24]
push 4
push ecx
call ebx
push edi
push 1
lea eax, [esi + 0x14]
push 4
push eax
call ebx
push edi
push 1
lea eax, [esi + 0x20]
push 4
push eax
call ebx
push edi
push 1
lea eax, [ebp - 0x328]
push 2
push eax
call ebx
xor eax, eax
mov dword [ebp - 0x330], 0
add esp, 0x40
cmp ax, word [ebp - 0x328]
jae 0x64c22d
nop dword [eax]
push edi
push 1
lea eax, [ebp - 0x324]
mov byte [ebp - 0x31d], 0
push 2
push eax
call ebx
movzx eax, word [ebp - 0x324]
add esp, 0x10
cmp eax, 5
ja case.default.0x64bf08
jmp dword [eax*4 + 0x64c260]
push 0x300
call fcn.006df8c3
add esp, 4
mov dword [ebp - 0x34c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x64bf42
mov ecx, eax
call fcn.00653c80
mov esi, eax
mov byte [ebp - 0x31d], 1
jmp 0x64c02a
xor esi, esi
mov byte [ebp - 0x31d], 1
jmp 0x64c02a
push 0x2c8
call fcn.006df8c3
add esp, 4
mov dword [ebp - 0x350], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x64c028
mov ecx, eax
call fcn.0064d110
mov esi, eax
jmp 0x64c02a
push 0x2e0
call fcn.006df8c3
add esp, 4
mov dword [ebp - 0x354], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x64c028
mov ecx, eax
call fcn.0064f3f0
mov esi, eax
jmp 0x64c02a
push 0x2a0
call fcn.006df8c3
add esp, 4
mov dword [ebp - 0x358], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x64c028
mov ecx, eax
call fcn.006574a0
mov esi, eax
jmp 0x64c02a
push 0x308
call fcn.006df8c3
add esp, 4
mov dword [ebp - 0x35c], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x64c028
mov ecx, eax
call fcn.00658900
mov esi, eax
jmp 0x64c02a
push 0x2fc
call fcn.006df8c3
add esp, 4
mov dword [ebp - 0x360], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x64c028
mov ecx, eax
call fcn.00652630
mov esi, eax
jmp 0x64c02a
xor esi, esi
push edi
push 1
lea eax, [ebp - 0x31e]
mov dword [ebp - 4], 0xffffffff
push 1
push eax
call ebx
mov al, byte [ebp - 0x31e]
add esp, 0x10
test al, al
je 0x64c0a8
push edi
movzx eax, al
push 1
push eax
lea eax, [ebp - 0x31c]
push eax
call ebx
lea eax, [ebp - 0x31c]
push 0x5c
push eax
call sub.VCRUNTIME140.dll_strrchr
add esp, 0x18
test eax, eax
je 0x64c08f
lea ecx, [eax + 1]
lea edx, [ebp - 0x114]
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x64c080
jmp 0x64c0af
xor ecx, ecx
mov al, byte [ebp + ecx - 0x31c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x115], al
test al, al
jne 0x64c091
jmp 0x64c0af
mov byte [ebp - 0x114], 0
mov ecx, dword [ebp - 0x32c]
mov eax, dword [ecx + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], ecx
mov eax, dword [ecx + 0x68]
mov dword [esi + 0x120], eax
mov eax, dword [ecx + 0x70]
mov dword [esi + 0x124], eax
lea eax, [ecx + 4]
cmp dword [eax + 4], 0x15555555
mov ecx, dword [eax]
mov dword [ebp - 0x334], ecx
je 0x64c255
mov dword [ebp - 0x348], eax
push 0xc
mov dword [ebp - 4], 6
mov dword [ebp - 0x344], 0
call fcn.006df8c3
mov ecx, dword [ebp - 0x32c]
add esp, 4
mov edx, dword [ebp - 0x334]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 8], esi
inc dword [ecx + 8]
cmp byte [ebp + 0x10], 0
mov ecx, dword [edx + 4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [edx + 4], eax
mov dword [ebp - 0x344], 0
mov dword [ecx], eax
je 0x64c159
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.0064cb90
push edi
push 1
lea eax, [ebp - 0x33c]
push 4
push eax
call ebx
push edi
push 1
lea eax, [ebp - 0x338]
push 4
push eax
call ebx
mov al, byte [ebp + 0x10]
add esp, 0x20
mov byte [esi + 0x185], al
mov ecx, esi
mov eax, dword [esi]
push dword [ebp - 0x338]
push dword [ebp - 0x33c]
call dword [eax + 4]
movzx eax, word [ebp - 0x324]
mov ecx, dword [ebp - 0x32c]
push dword [ebp - 0x340]
mov dword [esi + 4], eax
push edi
movss xmm0, dword [ecx + 0x7c]
movss xmm1, dword [ecx + 0x80]
mov eax, dword [ecx + 0x78]
mov dword [esi + 0x168], eax
movss dword [esi + 0x16c], xmm0
movss dword [esi + 0x170], xmm1
movzx eax, byte [ecx + 0xa0]
mov ecx, esi
mov byte [esi + 0x184], al
mov eax, dword [esi]
call dword [eax + 0x14]
cmp byte [ebp + 0x10], 0
jne 0x64c1f4
cmp byte [ebp - 0x31d], 0
je 0x64c1fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [ebp - 0x330]
movzx eax, word [ebp - 0x328]
inc esi
mov dword [ebp - 0x330], esi
cmp esi, eax
jb 0x64bee0
jmp 0x64c22d
push 0
push 0x712808
push 0x712808
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 0xc
push str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
nop
movsx esp, word [eax + eax + 0x50]
mov edi, -1082130332
add byte fs:[ebp - 0x29ff9b41], ch
mov edi, 0xbfff0064
add ah, cl
int3