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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf0
cmp byte [0xa43088], 1
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x4c], ebx
je 0x53babc
mov esi, ebx
mov edi, 0x3c
lea ebx, [ebx]
test byte [esi], 1
je 0x53af3c
mov ecx, esi
call fcn.0053a570
add esi, 0x28
dec edi
jne 0x53af30
call fcn.00441c10
test al, al
je 0x53b17e
mov eax, 0x10624dd3
mul dword [0xb7cb78]
mov ecx, edx
mov eax, 0x10624dd3
mul dword [0xb7cb84]
shr ecx, 5
shr edx, 5
cmp edx, ecx
je 0x53b17e
call fcn.00821b1e
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul dword [0x858c7c]
fmul dword [0x858cbc]
fstp dword [esp + 0x24]
call fcn.00821b1e
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
mov eax, dword [0xb6f03c]
test eax, eax
mov dword [esp + 0x20], 0x41200000
fmul dword [0x858c7c]
fmul dword [0x858fe8]
fadd dword [0x85f070]
fld dword [esp + 0x24]
fsin
fmul st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x24]
fcos
fmul st(1)
fstp dword [esp + 0x1c]
fstp st(0)
je 0x53afe1
add eax, 0x30
jmp 0x53afe6
mov eax, 0xb6f02c
fld dword [esp + 0x18]
lea edx, [esp + 0x28]
fadd dword [eax]
push edx
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fadd dword [eax + 4]
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
fld dword [eax + 8]
lea eax, [esp + 0x33]
fadd dword [0x85862c]
push eax
mov eax, dword [esp + 0x20]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
push ecx
push edx
push eax
call fcn.005696c0
fstp dword [esp + 0x34]
mov eax, dword [0xb6f03c]
add esp, 0x14
test eax, eax
je 0x53b03b
add eax, 0x30
jmp 0x53b040
mov eax, 0xb6f02c
fld dword [esp + 0x20]
lea ecx, [esp + 0x40]
fsub dword [eax + 8]
fld dword [esp + 0x1c]
fsub dword [eax + 4]
fld dword [esp + 0x18]
fsub dword [eax]
fstp dword [esp + 0x40]
fstp dword [esp + 0x44]
fstp dword [esp + 0x48]
call fcn.0059c910
mov eax, dword [0xb6f03c]
test eax, eax
je 0x53b08b
add eax, 0x10
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
jmp 0x53b0ad
fld dword [0xb6f038]
mov dword [esp + 0x3c], 0
fsin
fchs
fstp dword [esp + 0x34]
fld dword [0xb6f038]
fcos
fstp dword [esp + 0x38]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x53b17e
test byte [eax + 0x1e], 1
je 0x53b17e
mov al, byte [esp + 0x2f]
test al, al
je 0x53b17e
fld dword [esp + 0x20]
fcomp dword [0x858b8c]
fnstsw ax
test ah, 0x41
jne 0x53b17e
fld dword [esp + 0x3c]
fmul dword [esp + 0x48]
fld dword [esp + 0x38]
fmul dword [esp + 0x44]
faddp st(1)
fld dword [esp + 0x34]
fmul dword [esp + 0x40]
faddp st(1)
fcomp qword [0x862d08]
fnstsw ax
test ah, 0x41
je 0x53b15b
call fcn.00821b1e
cmp eax, 0x3fff
jl 0x53b15b
push 1
push 5
push 0x7530
push 0
push 1
push 0x40200000
push 0x3f000000
call fcn.0041bd90
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub esp, 8
fstp dword [esp + 0xc]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov ecx, ebx
call fcn.00539f00
jmp 0x53b17e
push 1
push 0
lea eax, [esp + 0x20]
push eax
push str.riot_smoke
mov ecx, 0xa9ae80
call fcn.004a9be0
test eax, eax
je 0x53b17e
mov ecx, eax
call fcn.004aa3d0
xor esi, esi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], esi
mov edx, ebx
mov eax, 0x3c
jmp 0x53b1a0
test byte [edx], 1
je 0x53b1a6
inc esi
add edx, 0x28
dec eax
jne 0x53b1a0
test esi, esi
mov dword [esp + 0x24], esi
jle 0x53babc
lea edx, [esp + 0xa1]
mov eax, 3
sub eax, edx
mov dword [esp + 0x88], eax
lea ecx, [esp + 0xa1]
mov ebp, 2
sub ebp, ecx
lea ecx, [esp + 0xa1]
mov eax, 4
sub eax, ecx
mov dword [esp + 0x80], eax
lea edx, [esp + 0xa1]
mov eax, 5
sub eax, edx
mov dword [esp + 0x90], eax
lea ecx, [esp + 0xa1]
mov eax, 6
sub eax, ecx
mov dword [esp + 0x8c], eax
lea edx, [esp + 0xa1]
mov eax, 7
sub eax, edx
mov dword [esp + 0x60], eax
mov eax, 8
lea ecx, [esp + 0xa1]
sub eax, ecx
mov dword [esp + 0x5c], eax
mov eax, 9
lea edx, [esp + 0xa1]
sub eax, edx
mov dword [esp + 0x84], ebp
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
jmp 0x53b280
mov ebp, dword [esp + 0x84]
mov ebx, dword [esp + 0x4c]
lea esp, [esp]
fld dword [0x858c1c]
or edi, 0xffffffff
xor esi, esi
lea ecx, [ebx + 0x1c]
mov edi, edi
mov al, byte [esp + esi + 0xa0]
test al, al
lea edx, [esp + esi + 0xa1]
jne 0x53b2b7
test byte [ecx - 0x1c], 1
je 0x53b2b7
fcom dword [ecx]
fnstsw ax
test ah, 5
jp 0x53b2b7
fstp st(0)
mov edi, esi
fld dword [ecx]
cmp byte [edx], 0
jne 0x53b2d4
test byte [ecx + 0xc], 1
je 0x53b2d4
fcom dword [ecx + 0x28]
fnstsw ax
test ah, 5
jp 0x53b2d4
fstp st(0)
lea edi, [esi + 1]
fld dword [ecx + 0x28]
mov al, byte [edx + 1]
test al, al
jne 0x53b2f3
test byte [ecx + 0x34], 1
je 0x53b2f3
fcom dword [ecx + 0x50]
fnstsw ax
test ah, 5
jp 0x53b2f3
fstp st(0)
lea edi, [edx + ebp]
fld dword [ecx + 0x50]
mov al, byte [edx + 2]
test al, al
jne 0x53b319
test byte [ecx + 0x5c], 1
je 0x53b319
fcom dword [ecx + 0x78]
fnstsw ax
test ah, 5
jp 0x53b319
mov eax, dword [esp + 0x88]
fstp st(0)
fld dword [ecx + 0x78]
lea edi, [eax + edx]
mov al, byte [edx + 3]
test al, al
jne 0x53b348
test byte [ecx + 0x84], 1
je 0x53b348
fcom dword [ecx + 0xa0]
fnstsw ax
test ah, 5
jp 0x53b348
mov eax, dword [esp + 0x80]
fstp st(0)
fld dword [ecx + 0xa0]
lea edi, [eax + edx]
mov al, byte [edx + 4]
test al, al
jne 0x53b377
test byte [ecx + 0xac], 1
je 0x53b377
fcom dword [ecx + 0xc8]
fnstsw ax
test ah, 5
jp 0x53b377
mov eax, dword [esp + 0x90]
fstp st(0)
fld dword [ecx + 0xc8]
lea edi, [eax + edx]
mov al, byte [edx + 5]
test al, al
jne 0x53b3a6
test byte [ecx + 0xd4], 1
je 0x53b3a6
fcom dword [ecx + 0xf0]
fnstsw ax
test ah, 5
jp 0x53b3a6
mov eax, dword [esp + 0x8c]
fstp st(0)
fld dword [ecx + 0xf0]
lea edi, [eax + edx]
mov al, byte [edx + 6]
test al, al
jne 0x53b3d2
test byte [ecx + 0xfc], 1
je 0x53b3d2
fcom dword [ecx + 0x118]
fnstsw ax
test ah, 5
jp 0x53b3d2
mov eax, dword [esp + 0x60]
fstp st(0)
fld dword [ecx + 0x118]
lea edi, [eax + edx]
mov al, byte [edx + 7]
test al, al
jne 0x53b3fe
test byte [ecx + 0x124], 1
je 0x53b3fe
fcom dword [ecx + 0x140]
fnstsw ax
test ah, 5
jp 0x53b3fe
mov eax, dword [esp + 0x5c]
fstp st(0)
fld dword [ecx + 0x140]
lea edi, [eax + edx]
mov al, byte [edx + 8]
test al, al
jne 0x53b42a
test byte [ecx + 0x14c], 1
je 0x53b42a
fcom dword [ecx + 0x168]
fnstsw ax
test ah, 5
jp 0x53b42a
mov eax, dword [esp + 0x70]
fstp st(0)
fld dword [ecx + 0x168]
lea edi, [eax + edx]
add esi, 0xa
add ecx, 0x190
cmp esi, 0x3c
jl 0x53b290
mov ecx, dword [esp + 0x64]
fstp st(0)
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x4c]
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
add esi, 8
lea esp, [esp]
mov al, byte [esp + ebp + 0xa0]
test al, al
jne 0x53b53b
test byte [esi - 8], 1
je 0x53b53b
mov edx, dword [esp + 0x4c]
fld dword [esi - 4]
lea ecx, [edi + edi*4]
fsub dword [edx + ecx*8 + 4]
lea eax, [edx + ecx*8 + 4]
fld dword [esi]
fsub dword [eax + 4]
fld st(1)
fmulp st(2)
fld st(0)
fmul st(1)
faddp st(2)
fxch st(1)
fsqrt
fstp st(1)
fcomp dword [0x858b44]
fnstsw ax
test ah, 5
jp 0x53b53b
fld dword [esp + 0x28]
sub esp, 8
fadd dword [esi + 0x14]
fstp dword [esp + 0x30]
fld dword [esi + 0x14]
fstp qword [esp]
call fcn.00823820
add esp, 8
call fcn.00821b40
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
add ebx, eax
mov eax, dword [esp + 0x24]
dec eax
fld st(0)
mov byte [esp + ebp + 0xa0], 1
fmul dword [esi - 4]
mov dword [esp + 0x24], eax
fld st(1)
fmul dword [esi]
fstp dword [esp + 0x98]
fxch st(1)
fmul dword [esi + 4]
fstp dword [esp + 0x9c]
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fadd dword [esp + 0x98]
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fadd dword [esp + 0x9c]
fstp dword [esp + 0x48]
inc ebp
add esi, 0x28
cmp ebp, 0x3c
jl 0x53b470
fld dword [esp + 0x28]
fcomp dword [0x858b90]
fnstsw ax
test ah, 0x41
jne 0x53bab0
test ebx, ebx
je 0x53bab0
fld dword [esp + 0x28]
fsub dword [0x858b44]
fadd dword [0x858b3c]
fld dword [0x858f48]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x53b590
fstp st(0)
mov dword [esp + 0x30], 0x40e00000
jmp 0x53b594
fstp dword [esp + 0x30]
call fcn.00821b1e
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
lea eax, [edi + edi*4]
lea esi, [ecx + eax*8]
lea edi, [esi + 4]
fmul dword [0x858c7c]
mov edx, edi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
fmul dword [0x862d50]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x74], eax
movzx eax, byte [0x8ccff2]
push 0
fadd dword [0x858cc8]
mov dword [esp + 0x14], eax
push 0
push 0x42200000
fstp dword [esp + 0x20]
push 0x3f800000
fld dword [esp + 0x8c]
mov dword [esp + 0x88], ecx
fadd dword [0x858c80]
push 0x41200000
fstp dword [esp + 0x90]
fild dword [esp + 0x24]
fmul dword [esp + 0x28]
call fcn.00821b40
movzx ecx, byte [0x8ccff1]
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
push eax
fmul dword [esp + 0x2c]
call fcn.00821b40
movzx edx, byte [0x8ccff0]
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
push eax
fmul dword [esp + 0x30]
call fcn.00821b40
fld dword [esp + 0x4c]
fmul dword [0x863a50]
push eax
push 0
push ecx
fstp dword [esp]
push 0
fld dword [esp + 0x5c]
push 0
fmul dword [0x858f08]
push ecx
mov ecx, dword [0xc403f4]
lea eax, [esp + 0xa8]
fstp dword [esp]
push eax
push ecx
push 2
push esi
call fcn.0070ba00
fld dword [esp + 0x6c]
fcomp dword [0x858b44]
add esp, 0x44
fnstsw ax
test ah, 0x41
jne 0x53bab0
fld dword [esp + 0x14]
mov ecx, dword [edi + 8]
fmul dword [0x858c98]
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov dword [esp + 0x20], ecx
fstp dword [esp + 0x14]
mov dword [esp + 0x1c], eax
fld dword [esp + 0x20]
mov eax, dword [0xb6f03c]
test eax, eax
fadd dword [0x863a4c]
mov dword [esp + 0x18], edx
fstp dword [esp + 0x20]
je 0x53b6de
add eax, 0x30
jmp 0x53b6e3
mov eax, 0xb6f02c
fld dword [eax + 8]
lea ecx, [esp + 0x50]
fsub dword [esp + 0x20]
fld dword [eax + 4]
fsub dword [esp + 0x1c]
fld dword [eax]
fsub dword [esp + 0x18]
fstp dword [esp + 0x50]
fstp dword [esp + 0x54]
fstp dword [esp + 0x58]
call fcn.0059c910
fld dword [esp + 0x50]
movzx eax, byte [0x8ccff2]
fmul dword [0x859028]
push 0
fld dword [esp + 0x58]
push 0
fmul dword [0x859028]
push 0x41700000
fld dword [esp + 0x64]
push 0
fmul dword [0x859028]
push 0x3fc00000
push 0
fstp dword [esp + 0x114]
push 0
fxch st(1)
push 0
fadd dword [esp + 0x38]
push 0
push 0
push 2
fstp dword [esp + 0x44]
push 1
push 0x428c0000
fadd dword [esp + 0x50]
lea edx, [esp + 0x4c]
fstp dword [esp + 0x50]
fld dword [esp + 0x130]
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fld dword [esp + 0x64]
fmul dword [0x858b8c]
fstp dword [esp + 0x44]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x44], eax
fild dword [esp + 0x44]
push edi
push edx
push 0xff
fmul dword [esp + 0x54]
call fcn.00821b40
movzx ecx, byte [0x8ccff1]
mov dword [esp + 0x50], ecx
fild dword [esp + 0x50]
push eax
fmul dword [esp + 0x58]
call fcn.00821b40
movzx edx, byte [0x8ccff0]
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
push eax
fmul dword [esp + 0x5c]
call fcn.00821b40
push eax
push 0
push esi
call fcn.006fc580
fld dword [esp + 0x74]
fadd dword [0x858ca0]
push 0
push 0
push 0x41700000
push 0
fstp dword [esp + 0x84]
push 0x3fc00000
push 0
push 0
push 0
movzx ecx, byte [0x8ccff2]
push 0
push 0
push 0
push 1
mov dword [esp + 0x94], ecx
push 0x428c0000
push edi
fild dword [esp + 0x9c]
lea eax, [esp + 0xa4]
push eax
push 0xff
fmul dword [esp + 0xa8]
call fcn.00821b40
movzx edx, byte [0x8ccff1]
mov dword [esp + 0xa4], edx
fild dword [esp + 0xa4]
push eax
fmul dword [esp + 0xac]
call fcn.00821b40
push eax
movzx eax, byte [0x8ccff0]
mov dword [esp + 0xac], eax
fild dword [esp + 0xac]
fmul dword [esp + 0xb0]
call fcn.00821b40
lea ecx, [esi + 1]
push eax
push 0
push ecx
call fcn.006fc580
fld dword [esp + 0xc8]
mov ecx, dword [0xb6f9a4]
fsub dword [0x858ca0]
mov edx, dword [0xb6f99c]
mov eax, dword [0xb6f9a0]
mov dword [esp + 0xe4], ecx
fstp dword [esp + 0xc8]
add esp, 0xa8
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
call fcn.0059c910
fld dword [esp + 0x34]
fadd st(0), st(0)
push 0
fld dword [esp + 0x3c]
push 0
fadd st(0), st(0)
push 0x41700000
fld dword [esp + 0x48]
movzx eax, byte [0x8ccff2]
fadd st(0), st(0)
push 0
push 0x3fc00000
push 0
push 0
push 0
fstp dword [esp + 0x104]
push 0
fxch st(1)
push 0
fadd dword [esp + 0x40]
push 0
push 1
push 0x428c0000
fstp dword [esp + 0x4c]
push edi
lea edx, [esp + 0x50]
fadd dword [esp + 0x54]
push edx
mov dword [esp + 0x4c], eax
fstp dword [esp + 0x58]
push 0xff
fld dword [esp + 0x124]
fadd dword [esp + 0x60]
fstp dword [esp + 0x60]
fild dword [esp + 0x50]
fmul dword [esp + 0x54]
call fcn.00821b40
movzx ecx, byte [0x8ccff1]
mov dword [esp + 0x50], ecx
fild dword [esp + 0x50]
push eax
fmul dword [esp + 0x58]
call fcn.00821b40
movzx edx, byte [0x8ccff0]
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
push eax
fmul dword [esp + 0x5c]
call fcn.00821b40
push eax
lea eax, [esi + 2]
push 0
push eax
call fcn.006fc580
fld dword [esp + 0x88]
fmul dword [0x858b90]
movzx edx, byte [0x8ccff2]
fld dword [esp + 0x8c]
push 0
fmul dword [0x858b90]
push 0
fld dword [esp + 0x98]
push 0x41700000
fmul dword [0x858b90]
push 0
push 0x3fc00000
fstp dword [esp + 0x158]
push 0
fld dword [esp + 0x84]
push 0
fsub st(2)
push 0
push 0
push 0
fstp dword [esp + 0x94]
push 0
fld dword [esp + 0x9c]
push 1
fsub st(1)
mov dword [esp + 0x94], edx
push 0x428c0000
push edi
fstp dword [esp + 0xa8]
lea ecx, [esp + 0xa4]
push ecx
fstp st(0)
fstp st(0)
push 0xff
fld dword [esp + 0xb4]
fsub dword [esp + 0x184]
fstp dword [esp + 0xb4]
fild dword [esp + 0xa4]
fmul dword [esp + 0xa8]
call fcn.00821b40
push eax
movzx eax, byte [0x8ccff1]
mov dword [esp + 0xa8], eax
fild dword [esp + 0xa8]
fmul dword [esp + 0xac]
call fcn.00821b40
movzx ecx, byte [0x8ccff0]
mov dword [esp + 0xa8], ecx
fild dword [esp + 0xa8]
push eax
fmul dword [esp + 0xb0]
call fcn.00821b40
add esi, 3
push eax
push 0
push esi
call fcn.006fc580
add esp, 0xa8
mov eax, dword [esp + 0x24]
test eax, eax
jg 0x53b271
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret