Function at 0x406c40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c33b
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x43f124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x840], esi
mov dword [ebp - 0x83c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x820], 0
movq qword [ebp - 0x828], xmm0
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
push 0x4392c0
push edx
mov dword [ebp - 4], 0
call fcn.00418e0a
mov edi, eax
add esp, 8
test edi, edi
jne 0x406ce4
call fcn.00419e19
push dword [eax]
call fcn.0041a5d9
mov byte [esi + 0xc], 0
jmp 0x406fb2
push 2
push 0
push edi
call fcn.004196cd
push edi
call fcn.00418bc6
push edi
call fcn.00419a51
push edi
push 1
lea eax, [ebp - 0x838]
push 0x10
push eax
call fcn.0041a3dd
mov eax, dword [ebp - 0x830]
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00412cea
mov esi, dword [ebp - 0x814]
mov eax, dword [ebp - 0x82c]
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
mov dword [ebp - 0x830], esi
push eax
call fcn.00412cea
mov eax, dword [ebp - 0x814]
add esp, 0x34
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp - 0x820]
sub eax, dword [ebp - 0x828]
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp esi, eax
jbe 0x406d9b
cmp esi, 0xaaaaaaa
ja 0x406fe2
push esi
lea ecx, [ebp - 0x828]
call fcn.0040ab50
mov esi, dword [ebp - 0x830]
mov dword [ebp - 0x83c], 0
test esi, esi
je 0x406f6a
nop dword [eax]
push edi
push 1
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0
push 4
push eax
mov dword [ebp - 0x81c], 0
call fcn.0041a3dd
push edi
push 1
lea eax, [ebp - 0x81c]
push 4
push eax
call fcn.0041a3dd
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x814]
push eax
call fcn.00412cea
mov eax, dword [ebp - 0x814]
mov dword [ebp - 0x814], eax
mov eax, dword [ebp - 0x81c]
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x81c]
push eax
call fcn.00412cea
mov eax, dword [ebp - 0x81c]
lea esi, [ebp - 0x810]
add esp, 0x30
mov dword [ebp - 0x81c], eax
push edi
push 1
lea eax, [ebp - 0x815]
mov byte [ebp - 0x815], 0
push 1
push eax
call fcn.0041a3dd
mov al, byte [ebp - 0x815]
lea esi, [esi + 1]
add esp, 0x10
mov byte [esi - 1], al
test al, al
jne 0x406e45
mov dword [ebp - 0x858], 0
mov byte [ebp - 0x858], al
mov byte [ebp - 4], al
lea eax, [ebp - 0x810]
mov dword [ebp - 0x848], 0
lea edx, [eax + 1]
mov dword [ebp - 0x844], 0xf
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406ea0
sub eax, edx
lea ecx, [ebp - 0x858]
push eax
lea eax, [ebp - 0x810]
push eax
call fcn.00406910
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x824]
cmp eax, dword [ebp - 0x820]
je 0x406f00
movups xmm0, xmmword [ebp - 0x858]
mov dword [eax], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x848]
movq qword [eax + 0x10], xmm0
add dword [ebp - 0x824], 0x18
mov ecx, 0xf
mov byte [ebp - 0x858], 0
jmp 0x406f19
lea ecx, [ebp - 0x858]
push ecx
push eax
lea ecx, [ebp - 0x828]
call fcn.0040ccb0
mov ecx, dword [ebp - 0x844]
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x406f51
mov edx, dword [ebp - 0x858]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406f47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406fdd
push ecx
push edx
call fcn.0041420c
add esp, 8
mov eax, dword [ebp - 0x83c]
inc eax
mov dword [ebp - 0x83c], eax
cmp eax, dword [ebp - 0x830]
jb 0x406db0
push edi
call fcn.00419372
mov esi, dword [ebp - 0x840]
mov edx, dword [ebp - 0x820]
mov ecx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x828]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x828], 0
mov byte [esi + 0xc], 1
add esp, 4
lea ecx, [ebp - 0x828]
call fcn.00408960
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413a7c
mov esp, ebp
pop ebp
ret
call fcn.0041a7a0
call fcn.00408950
int3