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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x58
push esi
mov esi, dword [0x100a38c8]
push edi
mov dword [ebp - 8], esi
mov edx, dword [esi + 0x40bc]
sub edx, 1
js 0x100098e9
mov eax, dword [esi + 0x40c4]
lea ecx, [edx + edx*8]
lea eax, [eax + ecx*4]
add eax, 4
nop
mov edi, dword [eax]
test edi, edi
je 0x100098e1
test dword [edi + 8], 0x8000000
je 0x100098e1
cmp byte [edi + 0xc3], 0
je 0x100098e1
cmp byte [edi + 0xca], 0
je 0x100098eb
sub eax, 0x24
sub edx, 1
jns 0x100098c0
xor edi, edi
movss xmm1, dword [esi + 0x4288]
xorps xmm0, xmm0
comiss xmm0, xmm1
jb 0x10009908
comiss xmm0, dword [esi + 0x4280]
jae 0x10009df2
mov eax, dword [esi + 0x4274]
test eax, eax
je 0x1000991f
cmp byte [eax + 0xc3], 0
je 0x1000991f
mov al, 1
jmp 0x10009921
xor al, al
test edi, edi
jne 0x1000992d
test al, al
je 0x10009df2
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], ecx
test edi, edi
je 0x10009a11
mov eax, dword [0x100a38c8]
mov dword [ebp - 4], edi
mov edx, dword [eax + 0x3ec4]
mov ecx, edx
mov eax, dword [eax + 0x3ebc]
lea eax, [edx + eax*4]
cmp ecx, eax
jae 0x1000996b
nop word [eax + eax]
cmp dword [ecx], edi
je 0x1000996b
add ecx, 4
cmp ecx, eax
jb 0x10009960
sub ecx, edx
sar ecx, 2
test ecx, ecx
js 0x100099f2
lea edx, [edx + ecx*4]
mov dword [ebp - 0x14], edx
nop word [eax + eax]
mov edx, dword [edx]
mov dword [ebp - 0x24], edx
mov esi, dword [edx + 8]
test esi, 0x1000000
jne 0x100099e1
mov eax, edx
cmp dword [edx + 0x324], edi
je 0x100099b0
nop word [eax + eax]
cmp eax, edi
je 0x100099b0
mov eax, dword [eax + 0x320]
test eax, eax
jne 0x100099a0
jmp 0x100099ef
cmp byte [edx + 0xc3], 0
je 0x100099e1
cmp byte [edx + 0xca], 0
jne 0x100099e1
mov eax, dword [edi + 8]
and esi, 0x2000000
mov edx, dword [ebp - 4]
and eax, 0x2000000
cmp esi, eax
mov dword [ebp - 4], edx
mov eax, edx
cmovbe eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x14]
sub edx, 4
sub ecx, 1
mov dword [ebp - 0x14], edx
jns 0x10009980
mov esi, dword [ebp - 8]
mov ecx, 0x36
call fcn.10003a80
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.100094a0
mov ecx, dword [edi + 0x2c]
mov dword [ebp - 4], ecx
jmp 0x10009cd5
test al, al
je 0x10009cd5
mov ecx, 0x35
call fcn.10003a80
mov ecx, dword [esi + 0x4274]
mov edx, eax
call fcn.100094a0
mov eax, dword [esi + 0x4278]
test eax, eax
je 0x10009a6b
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x10009a6b
mov eax, dword [esi + 0x4274]
cmp edx, dword [eax + 0x2c]
je 0x10009a6b
movss xmm1, dword [esi + 0x4288]
mov ecx, 0x35
call fcn.10003a80
mov ecx, dword [esi + 0x4278]
mov edx, eax
call fcn.100094a0
mov eax, dword [esi + 0x4274]
mov ecx, dword [esi + 0x4278]
mov dword [ebp - 0x14], eax
mov edx, dword [eax + 0x2c]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x10009a8c
mov ecx, dword [ecx + 0x2c]
mov dword [ebp - 0x18], ecx
jmp 0x10009a93
mov dword [ebp - 0x18], 0
movss xmm2, dword [eax + 0x40]
movss xmm3, dword [esi + 0x3c98]
movaps xmm5, xmm2
addss xmm2, dword [eax + 0x48]
movss xmm1, dword [eax + 0x44]
subss xmm5, xmm3
movaps xmm4, xmm1
addss xmm1, dword [eax + 0x4c]
subss xmm4, xmm3
addss xmm2, xmm3
movss dword [ebp - 0x20], xmm5
addss xmm1, xmm3
movss dword [ebp - 0x24], xmm4
movaps xmm0, xmm2
movss dword [ebp - 0xc], xmm2
subss xmm0, xmm5
movss dword [ebp - 0x10], xmm1
comiss xmm0, dword [edx + 0x10]
jb 0x10009b26
movaps xmm0, xmm1
subss xmm0, xmm4
comiss xmm0, dword [edx + 0x14]
jb 0x10009b26
xorps xmm3, xmmword [0x100a03e0]
subss xmm3, dword [0x1009ff98]
subss xmm5, xmm3
subss xmm4, xmm3
addss xmm2, xmm3
addss xmm1, xmm3
movss dword [ebp - 0x20], xmm5
movss dword [ebp - 0x24], xmm4
movss dword [ebp - 0xc], xmm2
movss dword [ebp - 0x10], xmm1
mov ecx, dword [eax + 0x288]
cmp dword [ecx], 0
jne 0x10009b3c
call fcn.1002b190
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
movss xmm1, dword [edx + 8]
movss xmm2, dword [edx + 0xc]
movaps xmm0, xmm1
addss xmm0, dword [edx + 0x10]
mov eax, dword [eax + 0x288]
movss dword [ebp - 0x50], xmm1
lea ecx, [eax + 0x3c]
movss dword [ebp - 0x4c], xmm2
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 4]
maxss xmm1, xmm0
movaps xmm0, xmm2
mov dword [ebp - 0x1c], ecx
addss xmm0, dword [edx + 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x2c], eax
movss dword [ebp - 0x48], xmm1
maxss xmm2, xmm0
movss dword [ebp - 0x44], xmm2
cmp edx, eax
jne 0x10009bb4
lea ecx, [edx + 1]
test eax, eax
je 0x10009b9e
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x2c]
jmp 0x10009ba3
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.10022eb0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
movaps xmm0, xmmword [ebp - 0x50]
shl eax, 4
add eax, dword [ecx + 8]
movups xmmword [eax], xmm0
inc dword [ecx]
mov ecx, dword [ebp - 0x34]
movups xmmword [ecx + 0x60], xmm0
call fcn.1002b230
mov eax, dword [ebp - 0x14]
mov ecx, 0x34
movss xmm1, dword [esi + 0x4280]
mov edx, dword [eax + 0x288]
movss xmm7, dword [eax + 0x78]
mov dword [ebp - 0x1c], edx
call fcn.10003a80
mov dword [ebp - 0x34], eax
test eax, 0xff000000
je 0x10009c9f
test byte [edx + 0x24], 1
lea eax, [ebp - 0x30]
movss xmm0, dword [0x1009ff54]
movaps xmm3, xmm7
movss xmm2, dword [ebp - 0x24]
mov ecx, edx
movss xmm4, dword [ebp - 0x20]
addss xmm2, xmm0
movss xmm1, dword [ebp - 0xc]
addss xmm4, xmm0
push 0
push eax
lea eax, [ebp - 0x28]
movss dword [ebp - 0x24], xmm2
movss dword [ebp - 0x28], xmm4
push eax
je 0x10009c54
subss xmm1, xmm0
movss dword [ebp - 0x30], xmm1
movss xmm1, dword [ebp - 0x10]
subss xmm1, xmm0
jmp 0x10009c6e
subss xmm1, dword [0x1009ff50]
movss dword [ebp - 0x30], xmm1
movss xmm1, dword [ebp - 0x10]
subss xmm1, dword [0x1009ff50]
movss dword [ebp - 0x2c], xmm1
call fcn.1002cf90
mov eax, dword [ebp - 0x1c]
push ecx
mov dword [esp], 0x40400000
mov ecx, eax
push 1
push dword [ebp - 0x34]
push dword [eax + 0x54]
push dword [eax + 0x5c]
call fcn.1002b640
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x54], 0
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x288]
mov edx, dword [ecx + 0x3c]
sub edx, 1
mov dword [ecx + 0x3c], edx
jne 0x10009cbb
mov eax, dword [ecx + 0x2c]
add eax, 0x18
jmp 0x10009cc6
mov eax, dword [ecx + 0x44]
shl edx, 4
add eax, 0xfffffff0
add eax, edx
movups xmm0, xmmword [eax]
movups xmmword [ecx + 0x60], xmm0
call fcn.1002b230
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x40d8], 0
mov dword [ebp - 0x20], 0
jle 0x10009df2
xor edx, edx
mov dword [ebp - 0x1c], edx
nop
mov eax, dword [esi + 0x40e0]
mov edx, dword [edx + eax]
mov dword [ebp - 0x24], edx
cmp edx, ecx
je 0x10009dd6
cmp edx, dword [ebp - 0x18]
je 0x10009dd6
test edi, edi
je 0x10009d64
mov esi, dword [edx + 0x6c]
test esi, esi
je 0x10009d64
mov ecx, dword [esi + 8]
mov eax, dword [edi + 8]
mov edx, dword [0x100a38c8]
shr ecx, 0x19
shr eax, 0x19
and ecx, 1
and eax, 1
sub ecx, eax
je 0x10009d3e
test ecx, ecx
jg 0x10009dd0
jmp 0x10009d64
mov ecx, dword [edx + 0x3ebc]
sub ecx, 1
js 0x10009d64
mov eax, dword [edx + 0x3ec4]
lea eax, [eax + ecx*4]
mov edx, dword [eax]
cmp edx, esi
je 0x10009dd0
cmp edx, edi
je 0x10009d64
sub eax, 4
sub ecx, 1
jns 0x10009d52
mov ecx, dword [ebp - 0x24]
mov edx, 1
push str.Foreground
call fcn.10005f80
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x24]
movss xmm0, dword [eax + 8]
lea edx, [eax + 8]
push 0
addss xmm0, dword [eax + 0x10]
push ecx
xor ecx, ecx
mov dword [esp], 0
test edi, edi
movss dword [ebp - 0x30], xmm0
setne cl
movss xmm0, dword [edx + 4]
add ecx, 0x35
addss xmm0, dword [eax + 0x14]
mov eax, dword [ebp - 8]
movss xmm1, dword [eax + 0x4288]
movss dword [ebp - 0x2c], xmm0
call fcn.10003a80
push eax
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push edx
call fcn.1002d630
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
inc eax
add edx, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp eax, dword [esi + 0x40d8]
jl 0x10009cf0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret