Function at 0x580830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
cmp eax, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
ja case.default.0x580857
jmp dword [eax*4 + 0x580d30]
cmp ecx, 3
sete byte [esp + 0x17]
jmp 0x58087e
cmp ecx, 3
setne byte [esp + 0x17]
jmp 0x58087e
mov byte [esp + 0x17], 1
jmp 0x58087e
mov byte [esp + 0x17], 0
mov ecx, dword [0xa57930]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x34], eax
jle 0x580d26
jmp 0x580896
xor ebx, ebx
mov ecx, dword [0xa57924]
mov edi, dword [ecx + eax*4]
cmp dword [edi], ebx
je 0x580d0f
mov al, byte [esp + 0x17]
mov dword [esp + 0x2c], 0xffffffff
test al, al
je 0x5809dc
mov eax, dword [edi + 0x20]
xor bp, bp
cmp eax, ebx
jle 0x58090d
xor esi, esi
test eax, eax
jle 0x5808f9
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x44]
lea eax, [esi + edx]
push eax
push ecx
mov ecx, dword [0xa255a0]
call fcn.00659fe0
mov eax, dword [eax]
mov dword [esp + 0x50], eax
add bp, word [esp + 0x52]
add bx, ax
mov eax, dword [edi + 0x20]
inc esi
cmp esi, eax
jl 0x5808cb
mov ecx, dword [edi + 0x20]
movsx eax, bx
cdq
idiv ecx
mov bx, ax
movsx eax, bp
cdq
idiv ecx
jmp 0x58095f
mov esi, dword [edi + 0x38]
mov dword [esp + 0x6c], ebx
dec esi
lea edx, [esi + 1]
mov dword [esp + 0x68], edx
fild qword [esp + 0x68]
fstp qword [esp + 0x38]
mov ecx, 0xa581b8
call fcn.0062fc90
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
fild qword [esp + 0x70]
fmul qword [esp + 0x38]
fmul qword [0x790db8]
call fcn.0076a6b0
cmp eax, esi
ja 0x580924
mov ecx, dword [edi + 0x2c]
mov edx, dword [ecx + eax*4]
mov dword [esp + 0x20], edx
mov ax, word [esp + 0x22]
mov bx, dx
mov ecx, dword [edi]
xor esi, esi
mov dword [esp + 0x20], 0x7a120
mov edx, dword [ecx + 0x10]
test edx, edx
jle 0x5809d8
movsx ebx, bx
movsx ebp, ax
mov eax, dword [ecx + 4]
sub esp, 8
mov eax, dword [eax + esi*4]
mov dword [esp + 0x40], eax
movsx ecx, word [esp + 0x42]
movsx eax, ax
sub ecx, ebp
sub eax, ebx
mov edx, ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fstp qword [esp]
call fcn.004b9f30
fild dword [esp + 0x28]
fld st(1)
add esp, 8
fcompp
fnstsw ax
test ah, 1
je 0x5809ce
call fcn.0076a6b0
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], esi
jmp 0x5809d0
fstp st(0)
mov ecx, dword [edi]
inc esi
cmp esi, dword [ecx + 0x10]
jl 0x580978
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x2bc]
mov edx, dword [esi + 0x2c0]
fild dword [esi + 0x54]
sub edx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], edx
fmul qword [0x787518]
fild dword [esp + 0x38]
fmulp st(1)
fiadd dword [esp + 0x20]
call fcn.0076a6b0
fild dword [edi + 0x20]
fld qword [0x785728]
mov dword [esp + 0x38], eax
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x580a28
fstp st(0)
fld qword [0x785728]
fild dword [esp + 0x38]
fmul st(1)
call fcn.0076a6b0
mov ecx, dword [edi]
fstp st(0)
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x580d0f
test eax, eax
je 0x580d0f
cdq
idiv ecx
xor ebx, ebx
xor esi, esi
cmp ecx, ebx
mov dword [esp + 0x38], eax
jle 0x580aca
mov ecx, 0xa57948
call fcn.005764d0
fmul qword [0x788b68]
fst qword [esp + 0x20]
fcomp qword [0x790fb8]
fnstsw ax
test ah, 1
jne 0x580a59
fld qword [esp + 0x20]
fcomp qword [0x7867f0]
fnstsw ax
test ah, 0x41
je 0x580a59
fild dword [esp + 0x38]
fadd qword [esp + 0x20]
call fcn.0076a6b0
cmp eax, ebx
jl 0x580ac2
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
cmp esi, edx
sete dl
push edx
lea edx, [esi + ecx + 1]
push edx
push eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea edx, [ecx + esi*4]
mov ecx, dword [esp + 0x28]
push edx
call fcn.00580d50
mov eax, dword [edi]
inc esi
cmp esi, dword [eax + 0x10]
jl 0x580a59
push ebx
push ebx
lea ecx, [esp + 0x80]
call fcn.0058bf80
mov dword [esp + 0x78], vtable.DynamicVectorClass_double_.0
mov dword [esp + 0x8c], 0xa
mov dword [esp + 0x88], ebx
mov eax, dword [edi + 0x20]
cmp eax, ebx
mov dword [esp + 0x2c], ebx
jle 0x580c0f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea edx, [ebx + ecx]
mov ecx, dword [0xa255a0]
push edx
push eax
call fcn.00659fe0
mov ecx, dword [edi]
mov eax, dword [eax]
xor esi, esi
mov dword [esp + 0x38], eax
mov edx, dword [ecx + 0x10]
test edx, edx
jle 0x580b90
movsx ebx, word [esp + 0x3a]
movsx ebp, ax
mov ecx, dword [ecx + 4]
sub esp, 8
mov eax, dword [ecx + esi*4]
mov dword [esp + 0x40], eax
movsx ecx, word [esp + 0x42]
movsx eax, ax
sub ecx, ebx
sub eax, ebp
mov edx, ecx
imul edx, ecx
mov ecx, eax
imul ecx, eax
add edx, ecx
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fstp qword [esp]
call fcn.004b9f30
mov ecx, dword [edi]
add esp, 8
fadd qword [esp + 0x60]
mov eax, dword [ecx + 0x10]
inc esi
cmp esi, eax
fstp qword [esp + 0x60]
jl 0x580b42
mov ebx, dword [esp + 0x2c]
mov edx, dword [edi]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
fild dword [edx + 0x10]
cmp ecx, eax
fdivr qword [esp + 0x60]
fstp qword [esp + 0x38]
jl 0x580be3
mov cl, byte [esp + 0x85]
test cl, cl
jne 0x580bbe
test eax, eax
jne 0x580bff
mov ecx, dword [esp + 0x8c]
test ecx, ecx
jle 0x580bff
add eax, ecx
push 0
push eax
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x80]
call dword [eax + 8]
test al, al
je 0x580bff
mov ecx, dword [esp + 0x88]
fld qword [esp + 0x38]
mov eax, ecx
inc ecx
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x7c]
fstp qword [ecx + eax*8]
mov eax, dword [edi + 0x20]
inc ebx
cmp ebx, eax
mov dword [esp + 0x2c], ebx
jl 0x580b01
mov ebx, dword [edi + 0x20]
mov edx, dword [esp + 0x7c]
test ebx, ebx
mov dword [esp + 0x58], 0xe0000000
mov dword [esp + 0x5c], 0x416312cf
jle 0x580c4e
mov ecx, edx
mov esi, ebx
fld qword [ecx]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 1
je 0x580c48
mov eax, dword [ecx]
mov ebp, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebp
add ecx, 8
dec esi
jne 0x580c2e
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x40], 3
jne 0x580c71
mov eax, dword [eax + 0x3c]
cmp eax, 1
je 0x580c6a
cmp eax, 3
je 0x580c6a
cmp eax, 4
jne 0x580c71
mov byte [esp + 0x30], 1
jmp 0x580c76
mov byte [esp + 0x30], 0
xor esi, esi
test ebx, ebx
jle 0x580cc9
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x30]
fld qword [edx + esi*8]
fsub qword [esp + 0x58]
fmul qword [0x790cd0]
call fcn.0076a6b0
lea ecx, [ebp + 1]
push ebx
add eax, 0x1f4
push ecx
mov ecx, dword [0xa255a0]
push eax
lea edx, [esp + 0x58]
push ebp
push edx
call fcn.00659fe0
mov ecx, dword [esp + 0x28]
push eax
call fcn.00580d50
mov eax, dword [edi + 0x20]
mov edx, dword [esp + 0x7c]
inc esi
inc ebp
cmp esi, eax
jl 0x580c84
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x18]
xor esi, esi
add ecx, eax
cmp edx, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x78], vtable.VectorClass_double_.0
je 0x580cfc
mov al, byte [esp + 0x85]
test al, al
je 0x580cfc
push edx
call fcn.0076d2d5
add esp, 4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov esi, dword [esp + 0x1c]
mov byte [esp + 0x85], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [0xa57930]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x580894
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret