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

Disassembly:
sub esp, 0x11c
fldz
push ebx
fst dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x130]
fst dword [esp + 0x3c]
fst dword [esp + 0x2c]
xor ebx, ebx
fst dword [esp + 0x1c]
push esi
fst dword [esp + 0x28]
mov dword [esp + 0x5c], ecx
fstp dword [esp + 0x24]
push edi
fld dword [0x5ae230]
mov ecx, ebp
fstp dword [esp + 0x40]
mov byte [esp + 0x50], 1
fld1
mov byte [esp + 0x48], 0
fstp dword [esp + 0x30]
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x3c], ebx
call fcn.0054c8d0
cmp eax, 1
je 0x54d268
mov eax, dword [ebp]
cmp eax, 3
je 0x54d264
cmp eax, 2
je 0x54d254
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x108]
push eax
push str.TYPE
mov ecx, ebp
call fcn.0054bfb0
push 0x639024
mov ecx, ebp
call fcn.0054bca0
test eax, eax
je 0x54ceef
mov eax, dword [ebp + 0x80c]
lea ecx, [esp + 0x20]
add eax, 1
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.00590ffc
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x28]
add eax, 1
push edx
push eax
call fcn.00590ffc
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
add eax, 1
push ecx
push eax
call fcn.00590ffc
fstp dword [esp + 0x3c]
add esp, 0x18
push 0x639018
mov ecx, ebp
call fcn.0054bca0
test eax, eax
je 0x54cf4a
mov eax, dword [ebp + 0x80c]
lea edx, [esp + 0x1c]
add eax, 1
push edx
push eax
mov dword [esp + 0x24], eax
call fcn.00590ffc
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
add eax, 1
push ecx
push eax
call fcn.00590ffc
fstp dword [esp + 0x54]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
add eax, 1
push edx
push eax
call fcn.00590ffc
fstp dword [esp + 0x64]
add esp, 0x18
push ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x48]
push edx
push str.COLOR
mov ecx, ebp
call fcn.0054c2f0
push str.RANGE
mov ecx, ebp
call fcn.0054bca0
test eax, eax
je 0x54cfa9
mov eax, dword [ebp + 0x80c]
lea ecx, [esp + 0x38]
add eax, 1
push ecx
push eax
mov dword [esp + 0x40], eax
call fcn.00590ffc
fstp st(0)
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x40]
add eax, 1
push edx
push eax
call fcn.00590ffc
fstp dword [esp + 0x50]
add esp, 0x10
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x128]
push eax
push str.ATTENUATE
mov ecx, ebp
call fcn.0054bfb0
push str.HOTSPOT
mov ecx, ebp
call fcn.0054bca0
test eax, eax
je 0x54d002
cmp byte [ebp + 0x814], 0
mov ecx, 1
jne 0x54cfe4
xor ecx, ecx
mov eax, dword [ebp + 0x80c]
add eax, ecx
lea ecx, [esp + 0x64]
push ecx
push eax
mov dword [esp + 0x6c], eax
call fcn.00590ffc
fstp dword [esp + 0x64]
add esp, 8
push str.INTENSITY
mov ecx, ebp
call fcn.0054bca0
test eax, eax
je 0x54d040
cmp byte [ebp + 0x814], 0
mov ecx, 1
jne 0x54d022
xor ecx, ecx
mov eax, dword [ebp + 0x80c]
lea edx, [esp + 0x68]
add eax, ecx
push edx
push eax
mov dword [esp + 0x70], eax
call fcn.00590ffc
fstp dword [esp + 0x38]
add esp, 8
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0xe8]
push eax
push str.ACTIVE
mov ecx, ebp
call fcn.0054bfb0
test eax, eax
je 0x54d098
mov edi, str.TRUE
lea esi, [esp + 0xcc]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x54d07d
mov byte [esp + 0x50], 1
jmp 0x54d098
mov edi, str.FALSE
lea esi, [esp + 0xcc]
mov ecx, 6
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x54d098
mov byte [esp + 0x50], al
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xe8]
push ecx
push str.CASTSHADOW
mov ecx, ebp
call fcn.0054bfb0
test eax, eax
je 0x54d0f7
mov edi, str.TRUE
lea esi, [esp + 0xcc]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x54d0dc
mov byte [esp + 0x48], 1
jmp 0x54d0f7
mov edi, str.FALSE
lea esi, [esp + 0xcc]
mov ecx, 6
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x54d0f7
mov byte [esp + 0x48], al
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xe8]
push ecx
push str.MOVEABLE
mov ecx, ebp
call fcn.0054bfb0
test eax, eax
je 0x54d156
mov edi, str.TRUE
lea esi, [esp + 0xcc]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x54d13b
mov byte [esp + 0x17], 1
jmp 0x54d156
mov edi, str.FALSE
lea esi, [esp + 0xcc]
mov ecx, 6
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x54d156
mov byte [esp + 0x17], al
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x78]
push ecx
push str.PLANE0
mov ecx, ebp
call fcn.0054c3e0
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x88]
push edx
push str.PLANE1
mov ecx, ebp
call fcn.0054c3e0
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x98]
push eax
push str.PLANE2
mov ecx, ebp
call fcn.0054c3e0
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xa8]
push ecx
push str.PLANE3
mov ecx, ebp
call fcn.0054c3e0
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0xb8]
push edx
push str.PLANE4
mov ecx, ebp
call fcn.0054c3e0
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0xc8]
push edx
lea eax, [esp + 0xc8]
push eax
push str.PLANE5
mov ecx, ebp
call fcn.0054c3e0
xor ebx, ebx
mov ecx, ebp
call fcn.0054c8d0
cmp eax, 1
jne 0x54ce64
mov ebx, dword [esp + 0x3c]
mov edi, str.DIRECTIONAL
lea esi, [esp + 0xec]
mov ecx, 0xc
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x54d289
mov dword [esp + 0x18], 2
jmp 0x54d2ea
mov edi, str.OMNI
lea esi, [esp + 0xec]
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x54d2aa
mov dword [esp + 0x18], 3
jmp 0x54d2ea
mov edi, str.VOLUME
lea esi, [esp + 0xec]
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x54d2cb
mov dword [esp + 0x18], 4
jmp 0x54d2ea
mov edi, str.SPOT
lea esi, [esp + 0xec]
mov ecx, 5
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x54d2ea
mov dword [esp + 0x18], 5
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x130]
push 0
push esi
push ecx
mov ecx, dword [esp + 0x6c]
lea edx, [esp + 0x1c]
push edx
call fcn.00557ff0
test eax, eax
je 0x54d31b
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x11c
ret 0xc
lea eax, [esi - 2]
cmp eax, 3
ja case.default.0x54d327
jmp dword [eax*4 + 0x54d540]
fld dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x50]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
call fcn.00557ac0
mov ecx, dword [esp + 0x10]
push 1
call fcn.00557ca0
jmp case.default.0x54d327
fld dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.00557bd0
fld dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x14]
fstp dword [esp]
call fcn.00557610
jmp case.default.0x54d327
fld dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.00557bd0
fld dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x50]
fstp dword [esp + 4]
fld dword [esp + 0x40]
fstp dword [esp]
call fcn.00557ac0
fld dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x14]
fstp dword [esp]
call fcn.00557610
fld dword [esp + 0x5c]
fmul dword [0x638fb4]
push ecx
mov ecx, dword [esp + 0x14]
fstp dword [esp]
call fcn.00557620
jmp case.default.0x54d327
fld dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esp + 0x34]
fstp dword [esp]
call fcn.00557bd0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
push eax
call fcn.00557ca0
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x14]
push 0
call fcn.00557630
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x7c]
push edx
push 1
call fcn.00557630
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x8c]
push eax
push 2
call fcn.00557630
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x14]
push 3
call fcn.00557630
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xac]
push edx
push 4
call fcn.00557630
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xbc]
push eax
push 5
call fcn.00557630
mov ecx, dword [esp + 0x10]
shl ebx, 8
or ebx, dword [esp + 0x58]
shl ebx, 8
or ebx, dword [esp + 0x54]
push ebx
push 2
call fcn.00557a60
fld dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
fstp dword [esp]
push 1
call fcn.00557a80
fld dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
fstp dword [esp]
push 2
call fcn.00557a80
fld dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
fstp dword [esp]
push 3
call fcn.00557a80
cmp byte [esp + 0x17], 0
je 0x54d50e
mov eax, dword [esp + 0x10]
or dword [eax], 0x80
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.005578d0
mov eax, dword [esp + 0x134]
test eax, eax
je 0x54d531
mov edx, dword [esp + 0x10]
mov dword [edx + 0xc8], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11c
ret 0xc