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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x100a4040]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x100be9bc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x1a6c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov byte [eax + 0x8c], 1
mov eax, dword [ecx + 0x1a6c]
push edi
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], ecx
cmp byte [eax + 0x8f], 0
je 0x1005a89a
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.1008a073
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x1005a8ac
mov eax, edx
shl eax, 4
mov edi, dword [eax + 0x100973f0]
push edi
push esi
push edx
mov edx, 0x40
lea ecx, [esp + 0x4c]
call fcn.10057cf0
mov ecx, dword [ebp + 0x18]
add esp, 0xc
mov edx, ecx
xor bl, bl
or edx, 1
test ecx, 0x20002
cmovne edx, ecx
or edx, 0x200010
cmp dword [esp + 0x24], 0
mov dword [esp + 0x18], edx
je 0x1005adae
mov eax, dword [0x100be9bc]
movss xmm0, dword [eax + 0x1554]
addss xmm0, xmm0
addss xmm0, dword [eax + 0x1930]
movss dword [esp + 0x30], xmm0
call fcn.10035c40
mov ecx, dword [esp + 0x1c]
call fcn.100353f0
mov edx, dword [0x100be9bc]
mov ecx, dword [edx + 0x1b50]
mov eax, dword [edx + 0x1a6c]
mov dword [esp + 0x10], ecx
lea ecx, [edx + 0x1b54]
test byte [esp + 0x10], 1
je 0x1005a93e
movss xmm0, dword [ecx]
jmp 0x1005a946
movss xmm0, dword [eax + 0x1b4]
movss xmm2, dword [0x1009a1b4]
xorps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1005a98b
cmp dword [eax + 0x198], 0
movss xmm1, dword [eax + 0x24c]
jne 0x1005a970
cmp dword [edx + 0x1efc], 0
je 0x1005a978
movss xmm1, dword [eax + 0x21c]
subss xmm1, dword [eax + 0xcc]
addss xmm1, xmm0
movaps xmm0, xmm2
maxss xmm0, xmm1
mov edx, dword [esp + 0xc]
movss xmm1, dword [esp + 0x30]
mov eax, dword [0x100be9bc]
push 0
addss xmm1, dword [edx + 0x1568]
mov edx, dword [esp + 0x14]
or edx, 1
mov dword [esp + 0x2c], 0
mov dword [eax + 0x1b50], edx
xor edx, edx
cvttss2si eax, xmm0
mov dword [esp + 0x30], 0
push 0
addss xmm1, xmm1
push dword [esp + 0x20]
movd xmm0, eax
lea eax, [esp + 0x34]
cvtdq2ps xmm0, xmm0
push eax
lea eax, [esp + 0x50]
push 0x40
push eax
subss xmm0, xmm1
maxss xmm2, xmm0
movss dword [ecx], xmm2
mov ecx, 0x10091711
call fcn.1005cd00
add esp, 0x18
test al, al
je 0x1005aa21
push edi
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x44]
push esi
push dword [esp + 0x28]
mov edx, dword [edi + 0x1fac]
call fcn.10058430
add esp, 0xc
mov bl, al
jmp 0x1005aa25
mov edi, dword [esp + 0xc]
movss xmm0, dword [edi + 0x1550]
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x1554]
and eax, 0x4000
movss xmm1, dword [edi + 0x1568]
or eax, 0x2400
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [edi + 0x1554]
movss dword [esp + 0x28], xmm0
xorps xmm0, xmm0
mov dword [edi + 0x1550], ecx
mov dword [esp + 0x18], eax
call fcn.10035810
movss xmm0, dword [esp + 0x30]
lea edx, [esp + 0x10]
push dword [esp + 0x18]
mov ecx, 0x10099298
movss dword [esp + 0x14], xmm0
movss dword [esp + 0x18], xmm0
call fcn.100548e0
add esp, 4
test al, al
je 0x1005acce
cmp byte [edi + 0xfc], 0
je 0x1005aaaf
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x1005aab3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp ecx, 9
ja case.default.0x1005aac0
jmp dword [ecx*4 + 0x1005ae38]
mov dl, byte [eax]
mov cl, byte [esi]
movsx eax, dl
movsx ebx, cl
test dl, dl
jle 0x1005aae5
add eax, 0xffffff80
cmp ebx, eax
jge 0x1005aaf7
mov cl, 0x80
mov byte [esi], cl
jmp case.default.0x1005aac0
jns 0x1005aaf7
add eax, 0x7f
cmp ebx, eax
jle 0x1005aaf7
mov cl, 0x7f
mov byte [esi], cl
jmp case.default.0x1005aac0
sub cl, dl
mov byte [esi], cl
jmp case.default.0x1005aac0
mov cl, byte [eax]
mov al, byte [esi]
test cl, cl
je 0x1005ab15
cmp al, cl
jae 0x1005ab15
xor al, al
mov byte [esi], al
jmp case.default.0x1005aac0
sub al, cl
mov byte [esi], al
jmp case.default.0x1005aac0
movzx edx, word [eax]
movzx ecx, word [esi]
movsx eax, dx
movsx ebx, cx
test dx, dx
jle 0x1005ab45
add eax, 0xffff8000
cmp ebx, eax
jge 0x1005ab5d
mov eax, 0xffff8000
mov word [esi], ax
jmp case.default.0x1005aac0
jns 0x1005ab5d
add eax, 0x7fff
cmp ebx, eax
jle 0x1005ab5d
mov eax, 0x7fff
mov word [esi], ax
jmp case.default.0x1005aac0
sub ecx, edx
movzx eax, cx
mov word [esi], ax
jmp case.default.0x1005aac0
movzx ecx, word [eax]
movzx eax, word [esi]
test cx, cx
je 0x1005ab84
cmp ax, cx
jae 0x1005ab84
xor eax, eax
mov word [esi], ax
jmp case.default.0x1005aac0
sub eax, ecx
movzx eax, ax
mov word [esi], ax
jmp case.default.0x1005aac0
mov edx, dword [eax]
mov ecx, dword [esi]
test edx, edx
jle 0x1005abaf
lea eax, [edx - 0x80000000]
cmp ecx, eax
jge 0x1005abc7
mov ecx, 0x80000000
mov dword [esi], ecx
jmp case.default.0x1005aac0
jns 0x1005abc7
lea eax, [edx + 0x7fffffff]
cmp ecx, eax
jle 0x1005abc7
mov ecx, 0x7fffffff
mov dword [esi], ecx
jmp case.default.0x1005aac0
sub ecx, edx
mov dword [esi], ecx
jmp case.default.0x1005aac0
mov ecx, dword [eax]
mov eax, dword [esi]
test ecx, ecx
je 0x1005abe5
cmp eax, ecx
jae 0x1005abe5
xor eax, eax
mov dword [esi], eax
jmp case.default.0x1005aac0
sub eax, ecx
mov dword [esi], eax
jmp case.default.0x1005aac0
mov ebx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0xc], eax
test eax, eax
jl 0x1005ac3b
jg 0x1005ac06
test ebx, ebx
je 0x1005ac31
mov dword [esp + 0x10], ebx
add dword [esp + 0x10], 0
adc eax, 0x80000000
cmp edx, eax
jg 0x1005ac64
jl 0x1005ac20
cmp ecx, dword [esp + 0x10]
jae 0x1005ac64
xor ecx, ecx
mov edx, 0x80000000
mov dword [esi], ecx
mov dword [esi + 4], edx
jmp case.default.0x1005aac0
test eax, eax
jg 0x1005ac68
jl 0x1005ac3b
test ebx, ebx
jae 0x1005ac68
mov dword [esp + 0x10], ebx
add dword [esp + 0x10], 0xffffffff
adc eax, 0x7fffffff
cmp edx, eax
jl 0x1005ac64
jg 0x1005ac55
cmp ecx, dword [esp + 0x10]
jbe 0x1005ac64
or ecx, 0xffffffff
mov edx, 0x7fffffff
mov dword [esi], ecx
mov dword [esi + 4], edx
jmp case.default.0x1005aac0
mov eax, dword [esp + 0xc]
sub ecx, ebx
mov dword [esi], ecx
sbb edx, eax
mov dword [esi + 4], edx
jmp case.default.0x1005aac0
mov ebx, dword [eax + 4]
mov edx, dword [eax]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
test ebx, ebx
jne 0x1005ac85
test edx, edx
je 0x1005aca7
cmp eax, ebx
ja 0x1005aca7
jb 0x1005ac8f
cmp ecx, edx
jae 0x1005aca7
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp case.default.0x1005aac0
sub ecx, edx
mov dword [esi], ecx
sbb eax, ebx
mov dword [esi + 4], eax
jmp case.default.0x1005aac0
movss xmm0, dword [esi]
subss xmm0, dword [eax]
movss dword [esi], xmm0
jmp case.default.0x1005aac0
movsd xmm0, qword [esi]
subsd xmm0, qword [eax]
movsd qword [esi], xmm0
mov bl, 1
movss xmm1, dword [edi + 0x1568]
xorps xmm0, xmm0
call fcn.10035810
movss xmm0, dword [esp + 0x30]
lea edx, [esp + 0x30]
push dword [esp + 0x18]
mov ecx, 0x1009929c
movss dword [esp + 0x34], xmm0
movss dword [esp + 0x38], xmm0
call fcn.100548e0
add esp, 4
test al, al
je 0x1005ad34
cmp byte [edi + 0xfc], 0
je 0x1005ad1a
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x1005ad1e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, 0x2b
push eax
push esi
push esi
call fcn.10057e00
add esp, 0xc
mov bl, 1
mov edx, dword [esp + 0x1c]
mov esi, edx
cmp edx, 0xffffffff
jae 0x1005ad7a
nop
mov cl, byte [esi]
test cl, cl
je 0x1005ad56
cmp cl, 0x23
jne 0x1005ad50
cmp byte [esi + 1], cl
je 0x1005ad56
inc esi
cmp esi, 0xffffffff
jb 0x1005ad40
cmp edx, esi
je 0x1005ad7a
movss xmm1, dword [edi + 0x1568]
xorps xmm0, xmm0
call fcn.10035810
mov ecx, dword [esp + 0x1c]
mov edx, esi
push 0
call fcn.10053a80
add esp, 4
movss xmm0, dword [esp + 0x3c]
mov eax, dword [0x100be9bc]
movss dword [edi + 0x1550], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [edi + 0x1554], xmm0
mov eax, dword [eax + 0x1a6c]
dec dword [eax + 0xc0]
call fcn.10035d60
jmp 0x1005adff
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push 0
push 0
push edx
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x38], 0
push 0x40
push eax
xor edx, edx
mov dword [esp + 0x44], 0
call fcn.1005cd00
add esp, 0x18
test al, al
je 0x1005ae1e
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x40]
push edi
push esi
push dword [esp + 0x28]
mov edx, dword [edx + 0x1fac]
call fcn.10058430
add esp, 0xc
mov bl, al
test bl, bl
je 0x1005ae1e
mov eax, dword [0x100be9bc]
mov word [eax + 0x1ab4], 0x101
mov eax, dword [eax + 0x1a6c]
or dword [eax + 0x11c], 4
mov ecx, dword [esp + 0x84]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008a073
mov esp, ebp
pop ebp
ret