Function at 0x652c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f9be0
mov eax, dword fs:[0]
push eax
sub esp, 0x134
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 ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x17c]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
push 1
push 4
push eax
mov dword [ebp - 0x12c], esi
call edi
push esi
push 1
lea eax, [ebx + 0x180]
push 4
push eax
call edi
push esi
push 1
lea eax, [ebp - 0x115]
push 1
push eax
call edi
mov al, byte [ebp - 0x115]
lea ecx, [ebx + 0x1d5]
add esp, 0x30
test al, al
je 0x652d64
push esi
movzx eax, al
push 1
push eax
lea eax, [ebp - 0x114]
push eax
call edi
mov ecx, dword [ebp + 0xc]
lea edi, [ebx + 0x1d5]
mov edx, edi
add esp, 0x10
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x652d20
lea edx, [ebp - 0x114]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x652d35
sub edx, esi
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x652d40
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x12c]
lea ecx, [ebx + 0x1d5]
jmp 0x652d6b
mov al, byte [0x700992]
mov byte [ecx], al
push ecx
mov ecx, ebx
call fcn.00652fa0
cmp dword [ebx + 0x2f4], 0
mov dword [ebp - 0x120], 0
jle 0x652f6d
xor eax, eax
mov dword [ebp - 0x11c], eax
mov edi, dword [ebx + 0x2f8]
add edi, eax
push esi
push 1
lea eax, [edi + 0x10]
mov dword [eax], 0
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [edi + 0x14], 0
cmp dword [edi + 0x10], 0
jbe 0x652ea9
push esi
push 1
lea eax, [ebp - 0x124]
push 2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push esi
push 1
lea eax, [ebx + 0x158]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movzx esi, word [ebp - 0x124]
lea eax, [ebp - 0x128]
add esp, 0x20
mov dword [ebp - 0x128], esi
mov ecx, edi
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00495da0
mov eax, dword [ebp - 0x138]
cmp byte [eax + 0xd], 0
jne 0x652e1d
cmp esi, dword [eax + 0x10]
jae 0x652e8b
cmp dword [edi + 4], 0xaaaaaaa
je 0x652f8b
mov esi, dword [edi]
mov dword [ebp - 0x134], edi
push 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0x130], 0
call fcn.006df8c3
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x128]
add esp, 4
mov dword [ebp - 0x130], 0
mov dword [ecx + 0x10], eax
push ecx
push dword [ebp - 0x13c]
mov dword [ecx], esi
push dword [ebp - 0x140]
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov word [ecx + 0xc], 0
mov ecx, edi
call fcn.00451330
mov ecx, dword [ebx + 0x158]
mov esi, dword [ebp - 0x12c]
mov dword [eax + 0x14], ecx
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x10]
jb 0x652dc3
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebx + 0x2f8]
add ecx, 0x1c
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add eax, ecx
push esi
push 1
push 4
push eax
call edi
mov edx, dword [ebx + 0x2dc]
add esp, 0x10
test edx, edx
je 0x652efa
mov eax, dword [ebx + 0x2f8]
push ecx
mov ecx, dword [ebp - 0x11c]
movss xmm0, dword [ecx + eax + 0x1c]
mov ecx, edx
movss dword [esp], xmm0
push dword [ebp - 0x120]
call fcn.00642d50
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ebx + 0x2f8]
add ecx, 0x18
push esi
push 1
add eax, ecx
push 4
push eax
call edi
mov edx, dword [ebx + 0x2dc]
add esp, 0x10
test edx, edx
je 0x652f45
mov eax, dword [ebx + 0x2f8]
push ecx
mov ecx, dword [ebp - 0x11c]
movss xmm0, dword [ecx + eax + 0x18]
mov ecx, edx
movss dword [esp], xmm0
push dword [ebp - 0x120]
call fcn.00643b50
mov ecx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x11c]
inc ecx
add eax, 0x20
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], eax
cmp ecx, dword [ebx + 0x2f4]
jl 0x652d92
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 8
call fcn.00451520
int3