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

Disassembly:
sub esp, 0x40
mov eax, dword [0x100e6f58]
push esi
push edi
mov edi, dword [esp + 0x4c]
mov esi, dword [eax + 0x3e40]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x1c], esi
cmp dword [edi + 0x48], 0xffffffff
je 0x1004b9c9
push edi
call fcn.1004c096
mov eax, dword [esp + 0x50]
pop ecx
cmp byte [eax + 0x5a74], 0
je 0x1004b9e3
push 0
push 0x100c93a8
push 0
call fcn.1000f3e9
add esp, 0xc
mov eax, dword [edi + 0x54]
mov dword [esi + 0xf4], eax
movsx eax, word [edi + 0x1c8]
movss xmm1, dword [edi + 0x50]
movss xmm0, dword [edi + 0x54]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x44]
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x30], xmm0
lea ecx, [eax + 1]
mov dword [esp + 0x44], ecx
movsx ecx, word [edi + 0x1c6]
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x1004ba54
movsx eax, word [edi + 0x4c]
subss xmm0, xmm1
push eax
push edi
movss dword [esp + 0x54], xmm0
call fcn.1001cfec
movss xmm0, dword [esp + 0x54]
movss xmm1, dword [esp + 0x40]
pop ecx
movss dword [eax + 8], xmm0
movss xmm0, dword [esp + 0x34]
pop ecx
comiss xmm0, dword [edi + 0xf0]
movss xmm2, dword [0x100b4c90]
jb 0x1004be03
movss xmm0, dword [edi + 0xf8]
comiss xmm0, xmm1
jb 0x1004be03
and dword [esp + 0x40], 0
lea ecx, [edi + 4]
mov eax, dword [edi + 0x6c]
cmp eax, 0x1000000
jne 0x1004baad
test byte [ecx], 0x40
je 0x1004bab1
mov eax, dword [edi + 0x68]
push ecx
and eax, 1
mov dword [esp], 0x3f800000
add eax, 0x2d
push eax
call fcn.10007296
pop ecx
pop ecx
lea ecx, [edi + 4]
mov dword [esp + 0x40], eax
mov edx, dword [edi + 0x70]
xor eax, eax
cmp edx, 0x1000000
cmove edx, eax
and dword [esp + 0x3c], eax
mov dword [esp + 0x24], edx
cmp dword [edi + 0x44], eax
jg 0x1004bada
mov eax, dword [edi + 0x150]
cmp eax, dword [edi + 0x14c]
jne 0x1004baf4
test byte [ecx], 0x80
je 0x1004baf4
test dword [edi + 0x64], 0x10000
je 0x1004baed
mov eax, dword [edi + 0x74]
jmp 0x1004baf0
mov eax, dword [edi + 0x78]
mov dword [esp + 0x3c], eax
mov ax, word [edi + 0x1ce]
shr ax, 0xf
xor al, 1
mov word [esp + 0x4e], ax
mov eax, edx
or eax, dword [esp + 0x3c]
or eax, dword [esp + 0x40]
jne 0x1004bb23
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x44], eax
je 0x1004bb23
cmp byte [esp + 0x4e], 0
je 0x1004bb78
test dword [ecx], 0x100000
jne 0x1004bb61
mov ecx, dword [esi + 0x264]
movss xmm0, dword [edi + 0x110]
movss xmm1, dword [edi + 0x114]
movss xmm2, dword [edi + 0x118]
mov eax, dword [edi + 0x10c]
mov dword [ecx + 0x60], eax
movss dword [ecx + 0x64], xmm0
movss dword [ecx + 0x68], xmm1
movss dword [ecx + 0x6c], xmm2
mov ecx, dword [edi + 0x160]
push 0
push dword [esi + 0x264]
call fcn.10036c48
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x1004bb88
test edx, edx
je 0x1004bc38
movss xmm0, dword [edi + 0xdc]
movss xmm1, dword [edi + 0x100]
movss xmm2, dword [edi + 0x108]
maxss xmm0, dword [edi + 0xfc]
maxss xmm1, dword [esp + 0x38]
minss xmm2, dword [esp + 0x30]
movss dword [esp + 8], xmm0
movss xmm0, dword [edi + 0xe4]
movss dword [esp + 0xc], xmm1
movss dword [esp + 0x14], xmm2
minss xmm0, dword [edi + 0x104]
movss dword [esp + 0x10], xmm0
test eax, eax
je 0x1004bc0e
comiss xmm2, xmm1
jbe 0x1004bc0e
push 0
push ecx
and dword [esp], 0
mov ecx, dword [esi + 0x264]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10036fe9
movss xmm2, dword [esp + 0x14]
movss xmm1, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1004bc38
comiss xmm2, xmm1
jbe 0x1004bc38
push 0
push ecx
and dword [esp], 0
mov ecx, dword [esi + 0x264]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.10036fe9
cmp byte [esp + 0x4e], 0
je 0x1004bd1d
mov ecx, dword [edi + 0x20]
movsx eax, word [edi + 0x1ce]
lea eax, [ecx + eax*8]
mov dword [esp + 0x24], eax
cmp ecx, eax
jmp 0x1004bd13
movsx eax, word [ecx + 4]
imul esi, eax, 0x70
push eax
lea eax, [esp + 0xc]
push edi
push eax
add esi, dword [edi + 0x10]
call fcn.1004c124
movss xmm0, dword [edi + 0x100]
add esp, 0xc
maxss xmm0, dword [esp + 0xc]
movss xmm2, dword [edi + 0xfc]
maxss xmm2, dword [esp + 8]
movss xmm1, dword [edi + 0x104]
minss xmm1, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x14]
minss xmm0, dword [edi + 0x108]
movss dword [esp + 8], xmm2
movss dword [esp + 0x10], xmm1
push 0
push ecx
and dword [esp], 0
push dword [eax]
movss dword [esp + 0x20], xmm0
lea eax, [esp + 0x1c]
movss xmm0, dword [esi + 0x20]
maxss xmm0, xmm2
push eax
lea eax, [esp + 0x18]
push eax
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esi + 0xc]
mov esi, dword [esp + 0x30]
minss xmm0, xmm1
mov ecx, dword [esi + 0x264]
movss dword [esp + 0x24], xmm0
call fcn.10036fe9
mov ecx, dword [esp + 0x4c]
add ecx, 8
cmp ecx, dword [esp + 0x24]
mov dword [esp + 0x4c], ecx
jbe 0x1004bc5b
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1004bd84
movss xmm1, dword [esp + 0x38]
comiss xmm1, dword [edi + 0x100]
jb 0x1004bd84
movss xmm0, dword [edi + 0x108]
comiss xmm0, xmm1
jbe 0x1004bd84
movss xmm0, dword [edi + 0x80]
push ecx
mov ecx, dword [esi + 0x264]
mov dword [esp], 0x3f800000
push eax
lea eax, [esp + 0x28]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [edi + 0x7c]
push eax
lea eax, [esp + 0x40]
movss dword [esp + 0x30], xmm1
push eax
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x48], xmm1
call fcn.10036e5f
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x28]
jne 0x1004bf63
movss xmm1, dword [esp + 0x30]
comiss xmm1, dword [edi + 0x100]
jb 0x1004bf63
movss xmm0, dword [edi + 0x108]
comiss xmm0, xmm1
jbe 0x1004bf63
movss xmm0, dword [edi + 0x80]
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x264]
mov dword [esp], 0x3f800000
push dword [edi + 0x74]
movss dword [esp + 0x28], xmm0
movss xmm0, dword [edi + 0x7c]
push eax
lea eax, [esp + 0x38]
movss dword [esp + 0x30], xmm1
push eax
movss dword [esp + 0x3c], xmm0
movss dword [esp + 0x40], xmm1
call fcn.10036e5f
movss xmm2, dword [0x100b4c90]
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x18]
jne 0x1004be2b
xor edx, edx
cmp dword [edi + 0x40], edx
jle 0x1004be2b
xor ecx, ecx
mov eax, dword [edi + 0x10]
lea ecx, [ecx + 0x70]
inc edx
mov byte [ecx + eax - 6], 0
cmp edx, dword [edi + 0x40]
jl 0x1004be16
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x28]
jne 0x1004bf4d
movss xmm0, dword [edi + 0x54]
movsx eax, word [edi + 0x4c]
addss xmm0, xmm2
push eax
push edi
maxss xmm0, dword [esi + 0x1e4]
mov byte [edi + 0x1e1], 1
movss dword [esp + 0x20], xmm0
subss xmm0, dword [edi + 0xc0]
movss dword [esp + 0x54], xmm0
call fcn.1001cfec
movss xmm0, dword [esp + 0x54]
and dword [esp + 0x54], 0
pop ecx
movss dword [eax + 0xc], xmm0
movss xmm0, dword [esi + 0x1ec]
minss xmm0, dword [esp + 0x1c]
movss xmm1, dword [edi + 0x54]
mov ax, word [edi + 0x1d4]
pop ecx
movss dword [edi + 0x120], xmm0
movss dword [edi + 0x100], xmm0
movss xmm0, dword [esi + 0x1ec]
movss dword [edi + 0x128], xmm0
movss dword [edi + 0x108], xmm0
movaps xmm0, xmm1
addss xmm1, dword [edi + 0xe0]
subss xmm0, dword [edi + 0x50]
mov word [edi + 0x1d2], ax
subss xmm1, dword [edi + 0xc0]
movss dword [esi + 0xf4], xmm1
cmp dword [edi + 0x40], 0
movss dword [edi + 0x54], xmm1
subss xmm1, xmm0
movss dword [edi + 0x50], xmm1
jle 0x1004bf25
mov esi, dword [esp + 0x4c]
xor edx, edx
mov ecx, dword [edi + 0x10]
lea edx, [edx + 0x70]
inc esi
mov ax, word [ecx + edx - 0x10]
mov word [ecx + edx - 0x14], ax
mov eax, dword [edi + 0x120]
mov dword [ecx + edx - 0x4c], eax
cmp esi, dword [edi + 0x40]
jl 0x1004bf01
mov esi, dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
add eax, 0x20
push eax
push esi
call fcn.10047d20
mov eax, dword [edi + 0x10]
pop ecx
pop ecx
mov ecx, dword [edi + 0x160]
movzx eax, word [eax + 0x5c]
push eax
push dword [esi + 0x264]
call fcn.10036c48
test byte [edi + 0x64], 1
jne 0x1004bf56
inc dword [edi + 0x68]
mov byte [edi + 0x1d7], 0
pop edi
pop esi
add esp, 0x40
ret
movss xmm2, dword [0x100b4c90]
jmp 0x1004be07