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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x1030e040]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov edi, dword [0x10317358]
mov dword [esp + 0x1c], edi
mov edx, dword [edi + 0x48b8]
sub edx, 1
js 0x100539dd
mov eax, dword [edi + 0x48c0]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*8]
add eax, 4
nop word [eax + eax]
mov esi, dword [eax]
mov dword [esp + 0x18], esi
test esi, esi
je 0x100539d5
test dword [esi + 0xc], 0x8000000
je 0x100539d5
cmp byte [esi + 0xdf], 0
je 0x100539d5
cmp byte [esi + 0xe6], 0
je 0x100539e3
sub eax, 0x28
sub edx, 1
jns 0x100539b0
xor esi, esi
mov dword [esp + 0x18], esi
movss xmm1, dword [edi + 0x4abc]
xorps xmm0, xmm0
comiss xmm0, xmm1
jb 0x10053a00
comiss xmm0, dword [edi + 0x4aa4]
jae 0x10053e98
mov eax, dword [edi + 0x4a98]
test eax, eax
je 0x10053a17
cmp byte [eax + 0xdf], 0
je 0x10053a17
mov al, 1
jmp 0x10053a19
xor al, al
test esi, esi
jne 0x10053a25
test al, al
je 0x10053e98
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
test esi, esi
je 0x10053b02
mov edx, dword [edi + 0x3ef4]
mov ecx, edx
mov eax, dword [edi + 0x3eec]
mov dword [esp + 0xc], esi
lea eax, [edx + eax*4]
cmp ecx, eax
jae 0x10053a5b
cmp dword [ecx], esi
je 0x10053a5b
add ecx, 4
cmp ecx, eax
jb 0x10053a50
sub ecx, edx
sar ecx, 2
test ecx, ecx
js 0x10053ae1
lea eax, [edx + ecx*4]
mov edi, esi
mov dword [esp + 0x10], eax
nop dword [eax]
mov edx, dword [eax]
mov eax, dword [edx + 0xc]
mov dword [esp + 0xc], eax
test eax, 0x1000000
jne 0x10053ac9
mov eax, edx
cmp dword [edx + 0x340], esi
je 0x10053aa0
nop word [eax + eax]
cmp eax, esi
je 0x10053aa0
mov eax, dword [eax + 0x33c]
test eax, eax
jne 0x10053a90
jmp 0x10053ad9
cmp byte [edx + 0xdf], 0
je 0x10053ac9
cmp byte [edx + 0xe6], 0
jne 0x10053ac9
mov eax, dword [esi + 0xc]
and dword [esp + 0xc], 0x2000000
and eax, 0x2000000
cmp dword [esp + 0xc], eax
cmovbe edi, edx
mov eax, dword [esp + 0x10]
sub eax, 4
sub ecx, 1
mov dword [esp + 0x10], eax
jns 0x10053a70
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x36
call fcn.1004d9d0
mov ecx, dword [esp + 0xc]
mov edx, eax
call fcn.10053470
mov edx, dword [esi + 0x30]
mov dword [esp + 0x10], edx
jmp 0x10053db3
test al, al
je 0x10053db3
mov ecx, 0x35
call fcn.1004d9d0
mov ecx, dword [edi + 0x4a98]
mov edx, eax
call fcn.10053470
mov eax, dword [edi + 0x4a9c]
test eax, eax
je 0x10053b5c
mov edx, dword [eax + 0x30]
test edx, edx
je 0x10053b5c
mov eax, dword [edi + 0x4a98]
cmp edx, dword [eax + 0x30]
je 0x10053b5c
movss xmm1, dword [edi + 0x4abc]
mov ecx, 0x35
call fcn.1004d9d0
mov ecx, dword [edi + 0x4a9c]
mov edx, eax
call fcn.10053470
mov ecx, dword [edi + 0x4a98]
mov edx, dword [edi + 0x4a9c]
mov dword [esp + 0xc], ecx
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x10], eax
test edx, edx
je 0x10053b80
mov edx, dword [edx + 0x30]
mov dword [esp + 0x14], edx
jmp 0x10053b88
mov dword [esp + 0x14], 0
movss xmm5, dword [ecx + 0x44]
movss xmm1, dword [edi + 0x3c9c]
movaps xmm3, xmm5
addss xmm5, dword [ecx + 0x4c]
movss xmm4, dword [ecx + 0x48]
subss xmm3, xmm1
movaps xmm2, xmm4
addss xmm4, dword [ecx + 0x50]
subss xmm2, xmm1
addss xmm5, xmm1
movss dword [esp + 0x6c], xmm3
addss xmm4, xmm1
movss dword [esp + 0x70], xmm2
movaps xmm0, xmm5
movss dword [esp + 0x74], xmm5
subss xmm0, xmm3
movss dword [esp + 0x78], xmm4
comiss xmm0, dword [eax + 0x10]
jb 0x10053c26
movaps xmm0, xmm4
subss xmm0, xmm2
comiss xmm0, dword [eax + 0x14]
jb 0x10053c26
xorps xmm1, xmmword [0x102f3f60]
subss xmm1, dword [0x102f38f4]
movaps xmm0, xmm1
subss xmm3, xmm1
subss xmm2, xmm1
addss xmm0, xmm5
addss xmm1, xmm4
movss dword [esp + 0x6c], xmm3
movss dword [esp + 0x70], xmm2
movss dword [esp + 0x74], xmm0
movss dword [esp + 0x78], xmm1
mov ecx, dword [ecx + 0x2a4]
cmp dword [ecx], 0
jne 0x10053c7a
mov eax, dword [ecx + 0x70]
xorps xmm0, xmm0
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x74]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0xc]
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x60], xmm0
movups xmm0, xmmword [ecx + 0x60]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x6c], 0
movups xmmword [esp + 0x48], xmm0
call fcn.100e06c0
mov eax, dword [esp + 0x10]
movss xmm2, dword [eax + 8]
movss xmm1, dword [eax + 0xc]
movaps xmm0, xmm2
addss xmm0, dword [eax + 0x10]
mov ecx, dword [esp + 0xc]
movaps xmm3, xmm1
addss xmm3, dword [eax + 0x14]
movss dword [esp + 0x30], xmm2
movss dword [esp + 0x34], xmm1
comiss xmm2, xmm0
mov ecx, dword [ecx + 0x2a4]
mov dword [esp + 0x20], ecx
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x3c], xmm3
jb 0x10053cc5
movss dword [esp + 0x38], xmm2
comiss xmm1, xmm3
jb 0x10053cd0
movss dword [esp + 0x3c], xmm1
mov eax, dword [ecx + 0x40]
add ecx, 0x3c
mov dword [esp + 0x24], ecx
mov edx, dword [ecx]
cmp edx, eax
jne 0x10053d0b
inc edx
mov dword [esp + 0x2c], edx
test eax, eax
je 0x10053cf7
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
add eax, dword [ecx + 4]
jmp 0x10053cfc
mov eax, 8
cmp eax, edx
cmovg edx, eax
push edx
call fcn.100e1130
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
movaps xmm0, xmmword [esp + 0x30]
shl eax, 4
add eax, dword [ecx + 8]
movups xmmword [eax], xmm0
inc dword [ecx]
mov ecx, dword [esp + 0x20]
movups xmmword [ecx + 0x60], xmm0
call fcn.10084200
mov eax, dword [esp + 0xc]
movss xmm1, dword [edi + 0x4aa4]
push ecx
mov dword [esp], 0x40400000
mov ecx, 0x34
movss xmm0, dword [eax + 0x7c]
push 0
sub esp, 8
movss dword [esp + 4], xmm0
call fcn.1004d9d0
add esp, 4
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x2a4]
call fcn.10086b20
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x2a4]
mov edx, dword [ecx + 0x3c]
sub edx, 1
mov dword [ecx + 0x3c], edx
jne 0x10053d98
mov eax, dword [ecx + 0x2c]
add eax, 0x18
jmp 0x10053da3
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.10084200
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp dword [edi + 0x48d4], ecx
jle 0x10053e98
nop word [eax + eax]
mov eax, dword [edi + 0x48dc]
mov edi, dword [eax + ecx*4]
mov dword [esp + 0x20], edi
cmp edi, edx
je 0x10053e83
cmp edi, dword [esp + 0x14]
je 0x10053e83
test esi, esi
je 0x10053e05
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x10053e05
mov edx, esi
call fcn.1005bb30
test al, al
jne 0x10053e7b
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.10051220
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x20]
movss xmm0, dword [eax + 8]
lea esi, [eax + 8]
push 0
addss xmm0, dword [eax + 0x10]
push ecx
xor ecx, ecx
mov dword [esp], 0
cmp dword [esp + 0x20], ecx
movss dword [esp + 0x2c], xmm0
setne cl
movss xmm0, dword [esi + 4]
add ecx, 0x35
addss xmm0, dword [eax + 0x14]
mov eax, dword [esp + 0x24]
movss xmm1, dword [eax + 0x4abc]
movss dword [esp + 0x30], xmm0
call fcn.1004d9d0
push eax
lea eax, [esp + 0x30]
mov ecx, edi
push eax
push esi
call fcn.10086c10
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, dword [edi + 0x48d4]
jl 0x10053dd0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
xor ecx, esp
call fcn.1013cfec
mov esp, ebp
pop ebp
ret