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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
movss xmm1, dword [ebp + 0xc]
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
push esi
push edi
jp 0x5382bc
mov eax, dword [ebp + 0x10]
movss dword [ebx + 8], xmm0
movss dword [ebx + 4], xmm0
movss dword [ebx], xmm0
movss dword [eax], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x178]
mov eax, 1
mov dword [edi + 0x16c], eax
mov dword [edi + 0x17c], eax
mov eax, dword [edi + 0x188]
inc ecx
inc eax
lea esi, [edi + 0x100]
mov dword [edi + 0x178], ecx
mov dword [edi + 0x188], eax
mov dword [esp + 0x5c], esi
call fcn.004dadd0
mov esi, eax
movsx ecx, word [esi + 0x70]
xor eax, eax
cdq
idiv ecx
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x1c], esi
add esi, 0x88
mov dword [esp + 0x18], esi
mov eax, edx
and edx, 0x1f
mov dword [esp + 0xc], edx
movsx edx, word [esi + 6]
sar eax, 5
cmp eax, edx
jne 0x53833a
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x53833a
dec eax
mov dword [esp + 0xc], 0x20
movsx esi, word [esi + 8]
add esi, eax
mov eax, dword [ecx + 0x94]
imul esi, esi, 0x1c
add esi, eax
push ecx
push esi
call fcn.0059c610
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xb0]
push ecx
movsx ecx, byte [esi + 0x18]
push edx
push eax
call fcn.0059c4d0
mov esi, dword [esp + 0x1c]
movsx ecx, word [esi + 0x70]
lea eax, [ecx - 1]
cdq
idiv ecx
mov ecx, dword [esi + 0x30]
mov esi, dword [esp + 0x18]
mov eax, edx
and edx, 0x1f
mov dword [esp + 0xc], edx
movsx edx, word [esi + 6]
sar eax, 5
cmp eax, edx
jne 0x5383a3
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x5383a3
dec eax
mov dword [esp + 0xc], 0x20
movsx esi, word [esi + 8]
add esi, eax
mov eax, dword [ecx + 0x94]
imul esi, esi, 0x1c
add esi, eax
push ecx
push esi
call fcn.0059c610
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x70]
push ecx
movsx ecx, byte [esi + 0x18]
push edx
push eax
call fcn.0059c4d0
mov esi, dword [esp + 0x1c]
movsx ecx, word [esi + 0x70]
fld dword [edi + 0x110]
dec ecx
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x30]
push eax
fild dword [esp + 0x14]
push 0
call fcn.006dab4a
mov edx, dword [esi + 0x30]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x20]
movss xmm0, dword [esp + 0x18]
call fcn.0059c850
lea eax, [edi + 0x14c]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 8
lea ebx, [ebx]
mov ecx, dword [eax]
test ecx, ecx
je 0x538437
mov eax, ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add eax, 4
dec ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
jne 0x538420
xorps xmm0, xmm0
mov edx, dword [ebp + 0x10]
movss dword [ebx + 8], xmm0
movss dword [ebx + 4], xmm0
movss dword [ebx], xmm0
movss dword [edx], xmm0
mov ecx, dword [edi + 0x120]
mov eax, dword [edi + 0x114]
cmp ecx, eax
je 0x5385f8
sub eax, ecx
mov dword [esp + 0x10], eax
jmp 0x538480
movss xmm3, dword [ebx]
movss xmm1, dword [esp + 0x80]
subss xmm1, dword [esp + 0x40]
movss xmm2, dword [esp + 0x84]
subss xmm2, dword [esp + 0x44]
movss xmm0, dword [esp + 0x88]
subss xmm0, dword [esp + 0x48]
addss xmm3, xmm1
movss dword [ebx], xmm3
movss xmm1, dword [ebx + 4]
addss xmm1, xmm2
movss dword [ebx + 4], xmm1
addss xmm0, dword [ebx + 8]
lea esi, [esp + 0x60]
lea eax, [esp + 0x30]
movss dword [ebx + 8], xmm0
call fcn.0043ef80
movss xmm0, dword [eax + 4]
lea esi, [esp + 0x20]
lea eax, [esp + 0x70]
movss dword [esp + 0x14], xmm0
call fcn.0043ef80
movss xmm0, dword [eax + 4]
subss xmm0, dword [esp + 0x14]
addss xmm0, dword [0x738a68]
comiss xmm0, dword [0x738bec]
movss dword [esp + 0xc], xmm0
ja 0x538525
movss xmm1, dword [0x738be8]
comiss xmm1, xmm0
jbe 0x53853e
fld dword [esp + 0xc]
fld qword [0x738be0]
call fcn.006dab4a
fstp dword [esp + 0xc]
movss xmm0, dword [esp + 0xc]
movss xmm1, dword [0x738bb8]
comiss xmm0, xmm1
jb 0x538559
jmp 0x538550
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x538550
xorps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x53856a
addss xmm0, xmm1
comiss xmm2, xmm0
ja 0x538561
subss xmm0, dword [0x738a68]
mov eax, dword [ebp + 0x10]
addss xmm0, dword [eax]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc8]
movss dword [eax], xmm0
mov eax, dword [esp + 0xc0]
movss xmm0, dword [esp + 0xb0]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xcc]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0xb4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x10]
movss dword [esp + 0x34], xmm0
movss xmm0, dword [esp + 0xb8]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0xbc]
dec eax
movss dword [esp + 0x3c], xmm0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x10], eax
jne 0x538480
mov esi, dword [esp + 0x1c]
movsx ecx, word [esi + 0x70]
fld dword [edi + 0x110]
dec ecx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
call fcn.006dab4a
mov edx, dword [esi + 0x30]
fld st(0)
mov dword [esp + 0x10], edx
call fcn.00686364
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov ecx, eax
and eax, 0x1f
mov esi, eax
mov eax, dword [esp + 0x18]
fsubr st(1)
movsx edx, word [eax + 6]
sar ecx, 5
cmp ecx, edx
fstp dword [esp + 0x14]
fstp st(0)
jne 0x53864e
test esi, esi
jne 0x53864e
dec ecx
mov esi, 0x20
movsx edi, word [eax + 8]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x94]
add edi, ecx
imul edi, edi, 0x1c
add edi, edx
push eax
push edi
call fcn.0059c610
mov edx, dword [esp + 0x14]
movsx edi, byte [edi + 0x18]
lea ecx, [esp + 0x70]
push ecx
push edx
mov ecx, eax
call fcn.0059c560
movss xmm3, dword [ebx]
movss xmm1, dword [esp + 0x80]
subss xmm1, dword [esp + 0x40]
movss xmm2, dword [esp + 0x84]
subss xmm2, dword [esp + 0x44]
movss xmm0, dword [esp + 0x88]
subss xmm0, dword [esp + 0x48]
addss xmm3, xmm1
movss dword [ebx], xmm3
movss xmm1, dword [ebx + 4]
addss xmm1, xmm2
movss dword [ebx + 4], xmm1
addss xmm0, dword [ebx + 8]
lea esi, [esp + 0x20]
lea eax, [esp + 0x30]
movss dword [ebx + 8], xmm0
call fcn.0043ef80
movss xmm0, dword [eax + 4]
lea esi, [esp + 0x60]
lea eax, [esp + 0x70]
movss dword [esp + 0x14], xmm0
call fcn.0043ef80
movss xmm0, dword [eax + 4]
subss xmm0, dword [esp + 0x14]
addss xmm0, dword [0x738a68]
comiss xmm0, dword [0x738bec]
movss dword [esp + 0x18], xmm0
ja 0x538724
movss xmm1, dword [0x738be8]
comiss xmm1, xmm0
jbe 0x53873d
fld dword [esp + 0x18]
fld qword [0x738be0]
call fcn.006dab4a
fstp dword [esp + 0x18]
movss xmm0, dword [esp + 0x18]
movss xmm1, dword [0x738bb8]
comiss xmm0, xmm1
jb 0x538759
lea ebx, [ebx]
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x538750
xorps xmm2, xmm2
comiss xmm2, xmm0
jbe 0x53876a
addss xmm0, xmm1
comiss xmm2, xmm0
ja 0x538761
subss xmm0, dword [0x738a68]
mov edi, dword [ebp + 0x10]
addss xmm0, dword [edi]
mov esi, dword [ebp + 8]
movss dword [edi], xmm0
movss xmm0, dword [esi + 0x3c]
movss xmm1, dword [ebx]
mulss xmm1, xmm0
movss dword [ebx], xmm1
movss xmm1, dword [ebx + 4]
mulss xmm1, xmm0
movss dword [ebx + 4], xmm1
movss xmm1, dword [ebx + 8]
mulss xmm1, xmm0
push esi
lea eax, [esp + 0x74]
movss dword [ebx + 8], xmm1
call fcn.00539470
movss xmm0, dword [ebx]
mulss xmm0, dword [esp + 0x70]
movss xmm1, dword [esp + 0x90]
mulss xmm1, dword [ebx + 8]
addss xmm0, xmm1
movss xmm1, dword [ebx + 4]
mulss xmm1, dword [esp + 0x80]
addss xmm0, xmm1
addss xmm0, dword [esp + 0xa0]
movss xmm1, dword [ebx + 4]
mulss xmm1, dword [esp + 0x84]
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esp + 0x94]
mulss xmm0, dword [ebx + 8]
mov ecx, dword [esp + 0x20]
addss xmm0, xmm1
movss xmm1, dword [esp + 0x74]
mulss xmm1, dword [ebx]
movss xmm3, dword [ebp + 0xc]
addss xmm0, xmm1
addss xmm0, dword [esp + 0xa4]
movss xmm1, dword [ebx + 4]
mulss xmm1, dword [esp + 0x88]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [esp + 0x98]
mulss xmm0, dword [ebx + 8]
mov edx, dword [esp + 0x24]
addss xmm0, xmm1
movss xmm1, dword [esp + 0x78]
mulss xmm1, dword [ebx]
addss xmm0, xmm1
addss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x28], xmm0
mov eax, ebx
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
movss xmm2, dword [esi + 0x64]
movss xmm0, dword [esi + 0x68]
movaps xmm1, xmm3
mulss xmm1, dword [esi + 0x60]
mulss xmm2, xmm3
mulss xmm0, xmm3
movss xmm3, dword [ebx]
addss xmm3, xmm1
movss dword [ebx], xmm3
movss xmm1, dword [ebx + 4]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
addss xmm1, xmm2
movss dword [ebx + 4], xmm1
addss xmm0, dword [ebx + 8]
push ecx
push esi
lea edx, [esp + 0x3c]
mov eax, ebx
movss dword [ebx + 8], xmm0
call fcn.005395a0
xorps xmm0, xmm0
movss dword [ebx + 8], xmm0
movss dword [ebx + 4], xmm0
movss dword [ebx], xmm0
mov eax, dword [esi + 8]
test eax, eax
je 0x538924
movss xmm1, dword [esp + 0x20]
movss dword [ebx], xmm1
movaps xmm1, xmm0
addss xmm1, dword [esp + 0x24]
movss dword [ebx + 4], xmm1
movss xmm1, dword [esp + 0x28]
addss xmm1, dword [ebx + 8]
movss dword [ebx + 8], xmm1
mov eax, dword [esi + 0xc]
test eax, eax
je 0x538987
movss xmm1, dword [ebx]
addss xmm1, dword [esp + 0x60]
movss dword [ebx], xmm1
movss xmm1, dword [ebx + 4]
addss xmm1, dword [esp + 0x64]
movss dword [ebx + 4], xmm1
movss xmm1, dword [esp + 0x68]
addss xmm1, dword [ebx + 8]
movss dword [ebx + 8], xmm1
movss xmm1, dword [ebx]
addss xmm1, dword [esp + 0x30]
movss dword [ebx], xmm1
movss xmm1, dword [ebx + 4]
addss xmm1, dword [esp + 0x34]
movss dword [ebx + 4], xmm1
movss xmm1, dword [esp + 0x38]
addss xmm1, dword [ebx + 8]
movss dword [ebx + 8], xmm1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x5389c6
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x5389c6
movss xmm1, dword [esi + 0x110]
comiss xmm1, dword [esi + 0x74]
jbe 0x5389c6
movss xmm1, dword [esi + 0x78]
comiss xmm1, dword [esi + 0x110]
jbe 0x5389c6
movss xmm1, dword [esi + 0x70]
mulss xmm1, dword [ebp + 0xc]
addss xmm1, dword [edi]
movss dword [edi], xmm1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x538a0a
mov esi, dword [esp + 0x5c]
cmp dword [esi + 8], 0xffffffff
je 0x538a06
call fcn.004dadd0
lea esi, [eax + 0x3c]
push str.turn
push esi
call fcn.00625e20
add esp, 8
test eax, eax
jne 0x538a0a
push str.blend
push esi
call fcn.00625e20
add esp, 8
test eax, eax
jne 0x538a0a
xorps xmm0, xmm0
movss dword [edi], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc