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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x3e5]
fld dword [edi + 0x7c]
fdivr dword [esi + 0x18ac]
fmul dword [0x4f05b8]
fadd dword [0x4f0590]
call fcn.004ecc00
mov ecx, dword [esp + 0x68]
mov ebx, eax
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x1c]
push eax
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x30], ebx
call fcn.004afa10
mov edi, dword [eax]
mov dword [esp + 0x28], edi
mov ebp, dword [eax + 4]
lea ecx, [edi + ebx + 1]
mov edx, ebp
mov byte [esi + 0x188e], 1
lea eax, [ebx + ebp + 1]
sub edx, ebx
push eax
mov eax, edi
sub eax, ebx
dec edx
push ecx
dec eax
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
mov byte [esi + 0x188f], 0
mov dword [esi + 0x3dd], 0x3c
call fcn.004012b0
mov eax, dword [esi + 0x3e5]
lea ecx, [esp + 0x58]
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x74]
dec edx
dec eax
push edx
push eax
push 0
push 0
push ecx
call fcn.004012b0
lea edx, [esp + 0x6c]
lea eax, [esp + 0x7c]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.004011d0
add esp, 0x34
test eax, eax
je 0x46c0ad
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
cmp ebx, eax
jg 0x46c0ad
sub ebp, ebx
mov eax, ebp
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
cmp ebp, ecx
jg 0x46c09b
imul eax, eax
sub edi, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edi
jmp 0x46c01e
mov eax, dword [esp + 0x18]
mov edx, edi
imul edx, edi
add edx, eax
mov dword [esp + 0x1c], edx
fild dword [esp + 0x1c]
fsqrt
fadd qword [0x4f0458]
call fcn.004ecc00
mov ecx, dword [esp + 0x24]
inc ecx
cmp eax, ecx
jg 0x46c085
mov ecx, dword [esi + 0x3e9]
mov edi, 1
cmp dword [ecx + 0x5e28], edi
jle 0x46c06f
push 1
push edi
push ebx
push ebp
call fcn.004d2000
mov ecx, dword [esi + 0x3e9]
inc edi
cmp edi, dword [ecx + 0x5e28]
jl 0x46c056
mov ecx, dword [esi + 0x3e9]
push 0xff
push ebx
push ebp
call fcn.004d2140
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
inc ebp
dec edi
cmp ebp, eax
mov dword [esp + 0x10], edi
jle 0x46c01a
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
inc ebx
dec eax
cmp ebx, ecx
mov dword [esp + 0x14], eax
jle 0x46bffb
mov eax, dword [esi + 0x3e9]
mov ecx, dword [eax + 0x5f2b]
test ecx, ecx
je 0x46c107
mov edx, dword [eax + 0x5e9f]
push 0x457a0000
mov eax, dword [eax + 0x5e9b]
push 0x3f800000
lea edi, [esi + 0xf9]
sub esp, 0xc
mov ebx, esp
mov ebp, dword [edi]
push edx
mov dword [ebx], ebp
push eax
mov ebp, dword [edi + 4]
push str.SoundsTankExp.wav
mov dword [ebx + 4], ebp
push str.SoundsJSounds.pck
mov edi, dword [edi + 8]
mov dword [ebx + 8], edi
call fcn.00406030
test al, al
je 0x46c280
mov edx, dword [esi + 0x3e9]
push 3
push 0xffffffffffffffff
push 0
mov ecx, dword [edx + 0xa5]
mov edx, dword [esp + 0x74]
push 0
push 0
push 0x42c80000
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x90]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x94]
mov dword [eax + 8], edx
call fcn.004a0750
test al, al
je 0x46c280
fld dword [esp + 0x68]
mov eax, dword [esi + 0x3e9]
push 1
fst dword [esp + 0x18]
fstp dword [esp + 0x2c]
fld dword [esp + 0x70]
fadd dword [0x4f04d4]
mov ecx, dword [eax + 0xa1]
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0x43480000
push 0
sub esp, 0xc
fstp dword [esp + 0x48]
fld dword [esp + 0x8c]
mov edx, esp
fst dword [esp + 0x2c]
fstp dword [esp + 0x4c]
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 8], eax
call fcn.00478f90
test al, al
je 0x46c280
fld dword [esp + 0x6c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x3e9]
push 1
fadd dword [0x4f1d10]
push 0xffffffffffffffff
push 0x43480000
push 0
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0xa1]
mov eax, dword [esp + 0x38]
sub esp, 0xc
mov dword [esp + 0x4c], edx
mov edx, esp
fstp dword [esp + 0x48]
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 8], eax
call fcn.00478f90
test al, al
je 0x46c280
fld dword [esp + 0x6c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x3e9]
push 1
fadd dword [0x4f1d0c]
push 0xffffffffffffffff
push 0x43480000
push 0
mov dword [esp + 0x38], ecx
mov ecx, dword [eax + 0xa1]
mov eax, dword [esp + 0x38]
sub esp, 0xc
mov dword [esp + 0x4c], edx
mov edx, esp
fstp dword [esp + 0x48]
mov dword [edx], eax
mov eax, dword [esp + 0x48]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 8], eax
call fcn.00478f90
test al, al
je 0x46c280
mov ecx, dword [esi + 0x3e9]
push 0
push 0xffffffffffffffff
push 0xc8
mov ecx, dword [ecx + 0xad]
call fcn.004b2450
test al, al
jne 0x46c2a7
add esi, 4
push str.Explode__:_Error_occurs.
push esi
mov dword [0x8210d4], 1
call fcn.004331c0
add esp, 8
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0xc
mov edx, dword [esi + 0x3e9]
push 0x40b00000
push 0x3c
mov ecx, dword [edx + 0xb1]
call fcn.00477790
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x54
ret 0xc