Function at 0x576a80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
push edi
lea ebp, [ebx + 0x3c]
mov dword [ebx + 0x38], 0
mov dword [ebp], 0
nop dword [eax]
mov eax, dword [ebx + 0x48]
test byte [eax], 8
je 0x576d15
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x576ac2
push 1
lea eax, [esp + 0x40]
push eax
push ebx
call ecx
add esp, 0xc
jmp 0x576ad6
push dword [eax + 0x38]
lea eax, [esp + 0x40]
push 1
push 1
push eax
call fcn.0058e4a6
add esp, 0x10
cmp eax, 1
jne 0x576d04
mov al, byte [esp + 0x3c]
cmp al, 0x21
je 0x576b01
cmp al, 0x2c
je 0x576afa
cmp al, 0x3b
jne 0x576ce6
mov eax, 4
jmp 0x576b06
mov eax, 2
jmp 0x576b06
mov eax, 3
mov ecx, eax
sub ecx, 2
je 0x576c02
sub ecx, 1
je 0x576b36
cmp eax, 4
jne 0x576aa0
cmp dword [ebx + 0x18], 0
jne 0x576cf7
pop edi
pop esi
pop ebp
mov dword [ebx + 0x40], 0x69
xor eax, eax
pop ebx
add esp, 0x28
ret
mov eax, dword [ebx + 0x48]
test byte [eax], 8
je 0x576d15
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x576b58
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call ecx
add esp, 0xc
jmp 0x576b6c
push dword [eax + 0x38]
lea eax, [esp + 0x17]
push 1
push 1
push eax
call fcn.0058e4a6
add esp, 0x10
cmp eax, 1
jne 0x576d04
movzx esi, byte [esp + 0x13]
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00576130
add esp, 8
test eax, eax
je 0x576d1c
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x576aa0
lea eax, [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
push esi
push ebp
lea esi, [ebx + 0x38]
push esi
call fcn.00576d90
add esp, 0x14
test eax, eax
je 0x576d1c
nop word [eax + eax]
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00576130
add esp, 8
test eax, eax
je 0x576d1c
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x576aa0
lea eax, [ecx + 1]
push eax
movzx eax, byte [ecx]
push eax
push 0
push ebp
push esi
call fcn.00576d90
add esp, 0x14
test eax, eax
jne 0x576bc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push ebx
call fcn.005761e0
add esp, 4
test eax, eax
je 0x576d1c
mov eax, dword [ebx + 0x18]
lea ecx, [eax + eax*8]
mov eax, dword [ebx + 0x34]
mov ebp, dword [eax + ecx*4 - 0x1c]
lea edi, [eax + ecx*4]
test ebp, ebp
jns 0x576c3e
mov ecx, dword [edi - 0x18]
test ecx, ecx
jns 0x576c3e
mov eax, closesocket
cdq
idiv ecx
cmp ebp, eax
jg 0x576d1c
mov esi, dword [edi - 0x18]
imul esi, ebp
push 1
push esi
push 0
call fcn.00576fe0
add esp, 0xc
mov dword [edi - 0xc], eax
test eax, eax
je 0x576d1c
cmp byte [edi - 0x14], 0
je 0x576cbb
movaps xmm0, xmmword [0x609140]
xor ebp, ebp
movups xmmword [esp + 0x18], xmm0
movaps xmm0, xmmword [0x609150]
movups xmmword [esp + 0x28], xmm0
nop dword [eax]
mov esi, dword [esp + ebp + 0x18]
cmp esi, dword [edi - 0x18]
jge 0x576cb1
nop dword [eax]
mov eax, dword [edi - 0x1c]
push eax
imul eax, esi
add eax, dword [edi - 0xc]
push eax
push ebx
call fcn.005764d0
add esp, 0xc
test eax, eax
je 0x576d1c
add esi, dword [esp + ebp + 0x28]
cmp esi, dword [edi - 0x18]
jl 0x576c90
add ebp, 4
cmp ebp, 0x10
jl 0x576c80
jmp 0x576cca
push esi
push eax
push ebx
call fcn.005764d0
add esp, 0xc
test eax, eax
je 0x576d1c
mov eax, dword [ebx + 0x3c]
lea ebp, [ebx + 0x3c]
test eax, eax
je 0x576aa0
mov dword [edi - 4], eax
mov eax, dword [ebx + 0x38]
mov dword [edi - 8], eax
jmp 0x576a8e
pop edi
pop esi
pop ebp
mov dword [ebx + 0x40], 0x6b
xor eax, eax
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
pop edi
pop esi
pop ebp
mov dword [ebx + 0x40], 0x66
xor eax, eax
pop ebx
add esp, 0x28
ret
mov dword [ebx + 0x40], 0x6f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret