Function at 0x4064e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
mov eax, dword [0x52de04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x66864c]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x14]
push edi
imul edi, eax, 0x168
cmp dword [edi + edx + 0x140], 0
mov dword [ebp - 0x910], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x914], ecx
mov dword [ebp - 0x90c], esi
lea ecx, [edi + edx]
jne 0x4066a5
lea edx, [ebp - 0x108]
sub edx, ecx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x406540
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406556
movq xmm0, qword [str.annotation]
sub ecx, edx
push 0x4fda68
movq qword [ebp + ecx - 0x10b], xmm0
mov ax, word [0x4fe134]
mov word [ebp + ecx - 0x103], ax
mov al, byte [0x4fe136]
mov byte [ebp + ecx - 0x101], al
lea eax, [ebp - 0x108]
push eax
call fcn.0041d3a0
mov esi, eax
add esp, 8
test esi, esi
je 0x4065e8
push esi
push 1
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.004c37de
push esi
call fcn.004c35d5
mov ecx, dword [0x66864c]
add esp, 0x14
mov eax, dword [ebp - 0x8f8]
mov dword [edi + ecx + 0x144], eax
mov eax, dword [0x66864c]
mov ecx, dword [ebp - 0x8e4]
mov dword [edi + eax + 0x148], ecx
jmp 0x4065f8
mov eax, dword [0x66864c]
mov dword [edi + eax + 0x144], 0
test ebx, ebx
je 0x406645
mov esi, dword [0x66864c]
call fcn.00402fb0
mov dword [esi + edi + 0x140], eax
mov eax, dword [0x66864c]
push dword [edi + eax + 0x140]
call fcn.004049c0
push 1
call fcn.00404a80
lea eax, [ebp - 0x918]
push eax
lea eax, [ebp - 0x91c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00403010
add esp, 0x14
jmp 0x406689
mov eax, dword [0x66864c]
add eax, 0x140
add eax, edi
push 0
push eax
call fcn.00417660
mov eax, dword [0x66864c]
push 1
push dword [edi + eax + 0x140]
call fcn.00418480
lea eax, [ebp - 0x920]
push eax
lea eax, [ebp - 0x924]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00418520
add esp, 0x1c
mov eax, dword [0x66864c]
mov esi, dword [ebp - 0x90c]
mov dword [edi + eax + 0x14c], 0
mov edx, dword [0x66864c]
mov eax, dword [edi + edx + 0x140]
test eax, eax
jle 0x406804
test ebx, ebx
je 0x4066ee
push eax
call fcn.004049c0
mov eax, dword [ebp - 0x910]
push dword [ebp - 0x914]
mov ecx, dword [0x66864c]
mov eax, dword [eax + esi*4]
add eax, 2
push eax
push esi
push dword [ecx + edi + 0x14c]
call fcn.00403a60
add esp, 0x14
mov ebx, eax
jmp 0x40679b
mov eax, dword [edi + edx + 0x108]
lea esi, [eax*2 + 0x40]
cmp dword [0x668890], esi
jge 0x406736
mov eax, dword [0x66888c]
test eax, eax
je 0x406716
push eax
call fcn.00417300
add esp, 4
lea eax, [esi + 0x100]
push eax
call fcn.00417230
mov edx, dword [0x66864c]
add esp, 4
mov dword [0x66888c], eax
mov dword [0x668890], esi
push 1
push dword [edi + edx + 0x140]
call fcn.00418480
mov ecx, dword [0x66864c]
xor eax, eax
mov edx, dword [ebp - 0x90c]
push dword [0x66888c]
cmp edx, dword [ecx + edi + 0x144]
cmovl eax, edx
push eax
push dword [ecx + edi + 0x14c]
call fcn.004187d0
mov ebx, eax
mov eax, dword [ebp - 0x910]
cmp ebx, esi
cmovl esi, ebx
push esi
mov esi, dword [ebp - 0x90c]
push dword [0x66888c]
mov eax, dword [eax + esi*4]
add eax, dword [ebp - 0x914]
push eax
call fcn.004b8680
add esp, 0x20
test ebx, ebx
jne 0x4067e5
cmp dword [ebp + 0x20], ebx
je 0x4067bf
mov eax, dword [0x66864c]
push dword [edi + eax + 0x140]
call fcn.004049c0
add esp, 4
call fcn.00403e00
jmp 0x4067c4
call fcn.00418960
mov eax, dword [0x66864c]
mov dword [edi + eax + 0x140], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3f28
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x66864c]
cmp dword [ecx + edi + 0x148], 1
je 0x4067fd
mov eax, dword [ebp + 0x18]
dec eax
cmp esi, eax
jne 0x406804
inc dword [ecx + edi + 0x14c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3f28
mov esp, ebp
pop ebp
ret