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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51714a
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x5750c8]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
push edi
mov eax, dword [0x5750c8]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov ebx, dword [0x5b308c]
mov esi, ecx
cmp dword [esi + 0xfc], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
jle 0x4a9fa2
mov byte [esi + 0x33], 1
jmp 0x4aa986
mov eax, dword [0x5b2ae0]
dec eax
cmp eax, 0xf
jl 0x4a9fb2
mov eax, 0xf
fldz
mov dword [esi + 0xb0], eax
fld1
test eax, eax
jle 0x4aa09f
cmp dword [0x5b3074], 1
jne 0x4aa09f
mov edi, dword [0x5768ec]
fld dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0xb4], edi
je 0x4aa04a
fld qword [0x554ef0]
lea edx, [esi + 0xb8]
jmp 0x4a9ff4
fxch st(3)
fxch st(3)
fcom dword [edx]
fnstsw ax
test ah, 5
jp 0x4aa02c
fld dword [edx]
fld st(2)
fmul st(5)
fsubp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [edx]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4aa01c
fst dword [edx]
inc ecx
add edx, 4
cmp ecx, 0x10
jl 0x4a9ff2
fstp st(3)
jmp 0x4aa16c
fstp st(3)
fxch st(2)
fst dword [esi + ecx*4 + 0xb8]
test ecx, ecx
jne 0x4aa16a
mov dword [esi + 0xb4], edi
jmp 0x4aa16a
test eax, eax
jle 0x4aa092
fld qword [0x554c30]
lea edx, [esi + 0xb8]
jmp 0x4aa05e
fxch st(2)
fxch st(2)
fcom dword [edx]
fnstsw ax
test ah, 0x41
jne 0x4aa084
fld st(1)
fmul st(3)
fadd dword [edx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [edx]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4aa084
fst dword [edx]
inc ecx
add edx, 4
cmp ecx, dword [esi + 0xb0]
jl 0x4aa05c
fstp st(2)
fxch st(2)
fst dword [0x5bcc38]
jmp 0x4aa16a
fld dword [0x554c40]
fld dword [0x5bcc38]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x4aa113
fld dword [ebp + 8]
lea ecx, [esi + 0xb8]
fld st(0)
mov edx, 0x10
faddp st(2)
fxch st(1)
fstp dword [0x5bcc38]
fld qword [0x554c30]
jmp 0x4aa0da
fxch st(2)
fxch st(2)
fcom dword [ecx]
fnstsw ax
test ah, 5
jp 0x4aa109
fcom dword [ecx]
fnstsw ax
test ah, 0x41
jne 0x4aa109
fld st(1)
fmul st(3)
fadd dword [ecx]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [ecx]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4aa109
fst dword [ecx]
add ecx, 4
dec edx
jne 0x4aa0d8
fstp st(2)
jmp 0x4aa16c
fstp st(0)
xor ecx, ecx
fld dword [ebp + 8]
lea edx, [esi + 0xb8]
fld qword [0x554ef0]
jmp 0x4aa12a
fxch st(3)
fxch st(3)
fcom dword [edx]
fnstsw ax
test ah, 5
jp 0x4aa15f
fld dword [edx]
fld st(2)
fmul st(5)
fsubp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [edx]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4aa152
fst dword [edx]
inc ecx
add edx, 4
cmp ecx, 0x10
jl 0x4aa128
fstp st(3)
jmp 0x4aa16c
fstp st(3)
fxch st(2)
fst dword [esi + ecx*4 + 0xb8]
fxch st(2)
cmp byte [esi + 0x7c], 0
je 0x4aa193
fild dword [esp + 0x1c]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fst dword [esi + 0x80]
call fcn.00513620
mov dword [esi + 0x84], eax
mov byte [esi + 0x7c], 0
mov edi, dword [esi + 0x84]
test ebx, ebx
jns 0x4aa1a5
fld dword [0x554fbc]
jmp 0x4aa1ab
fld dword [0x554d70]
mov ecx, dword [0x5b3074]
fstp dword [esp + 0x20]
fld dword [0x554e50]
cmp ecx, 2
jne 0x4aa1ca
fstp st(2)
fxch st(1)
fst dword [esp + 0x10]
jmp 0x4aa1d2
fxch st(2)
fstp dword [esp + 0x10]
fxch st(1)
fild dword [esp + 0x1c]
fstp dword [esp + 0x18]
fld dword [esp + 0x20]
fld dword [esp + 0x18]
fld st(0)
faddp st(2)
fld dword [esi + 0x80]
fsubp st(2)
fld qword [0x554e10]
fmul st(2), st(0)
fld dword [esp + 0x10]
fld qword [0x554f40]
fmul st(1), st(0)
fxch st(4)
fcompp
fnstsw ax
test ah, 5
jp 0x4aa239
fstp st(2)
fstp st(2)
test ebx, ebx
jns 0x4aa21d
fld dword [0x554fbc]
jmp 0x4aa223
fld dword [0x554d70]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
faddp st(2)
fld dword [esi + 0x80]
fsubp st(2)
fmulp st(1)
jmp 0x4aa252
fstp st(1)
fstp st(0)
cmp ecx, 2
jne 0x4aa246
fxch st(1)
jmp 0x4aa24a
fstp st(1)
fld1
fstp dword [esp + 0x10]
fmul dword [esp + 0x10]
fadd dword [esi + 0x80]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [esi + 0x80]
call fcn.00513620
fld dword [0x5bcc3c]
mov ecx, eax
fcom st(2)
mov dword [esi + 0x84], ecx
fnstsw ax
test ah, 0x41
jne 0x4aa290
fsub st(1)
fstp dword [0x5bcc3c]
fld dword [0x5bcc3c]
cmp ecx, edi
jle 0x4aa38f
fcomp st(2)
fnstsw ax
test ah, 0x41
jp 0x4aa384
cmp dword [0x5b3074], 2
jne 0x4aa384
mov eax, dword [0x5b31dc]
test eax, eax
je 0x4aa384
cmp dword [eax + 0x80], 0
jle 0x4aa384
fld dword [eax + 0x84]
fstp dword [esp + 0x10]
fxch st(1)
fcom dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4aa382
fstp st(1)
mov dword [esp + 0x20], vtable.Mortar::Delegate1_bool__class_Mortar::MortarSound__::Global.0
fstp st(0)
mov dword [esp + 0x24], 0x494d00
fld dword [0x554fb8]
fstp dword [0x5bcc3c]
sub esp, 0x24
mov dword [esp + 0x15c], 0
mov eax, esp
mov dword [esp + 0x4c], esp
mov dword [esp + 0x4c], eax
mov byte [eax + 0x20], 1
mov dword [eax], 0
mov byte [esp + 0x15c], 1
push eax
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x48]
call edx
mov byte [esp + 0x15c], 0
fld1
mov edi, dword [0x5b3200]
sub esp, 8
fst dword [esp + 4]
mov ebx, str.Bonus_count_up
fstp dword [esp]
call fcn.00494e50
mov dword [esp + 0x138], 0xffffffff
fldz
fld dword [ebp + 8]
mov ebx, dword [esp + 0x1c]
mov eax, 0x8000
mov word [esi + 0x7e], ax
jmp 0x4aa391
fxch st(1)
mov eax, 0x8000
mov word [esi + 0x7e], ax
jmp 0x4aa391
fstp st(0)
movzx ecx, word [esi + 0x7e]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fld qword [0x554fb0]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4aa3df
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
fxch st(1)
fmul qword [0x554fa8]
or eax, 0xc00
mov dword [esp + 0x10], eax
fsubp st(1)
fldcw word [esp + 0x10]
fistp dword [esp + 0x10]
mov ax, word [esp + 0x10]
mov word [esi + 0x7e], ax
fldcw word [esp + 0x18]
jmp 0x4aa439
test cx, cx
je 0x4aa435
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
fxch st(1)
fmul qword [0x554fa8]
or eax, 0xc00
mov dword [esp + 0x10], eax
fsubp st(1)
fldcw word [esp + 0x10]
fistp dword [esp + 0x10]
mov ax, word [esp + 0x10]
movzx ecx, ax
mov dword [esp + 0x10], ecx
fldcw word [esp + 0x18]
mov word [esi + 0x7e], ax
fild dword [esp + 0x10]
fcomp qword [0x554c48]
fnstsw ax
test ah, 0x41
jne 0x4aa439
xor edx, edx
mov word [esi + 0x7e], dx
jmp 0x4aa439
fstp st(0)
fstp st(0)
movzx eax, word [esi + 0x7e]
shr eax, 4
fld dword [eax*4 + 0x547b98]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul qword [0x554fa0]
fadd qword [0x554f98]
fstp dword [esp + 0x28]
fld dword [0x5b3080]
fcom st(1)
fnstsw ax
test ah, 0x41
jnp 0x4aa47f
fstp st(1)
fld1
fcom st(1)
fnstsw ax
test ah, 0x41
jp 0x4aa47f
fstp st(1)
jmp 0x4aa481
fstp st(0)
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld qword [0x554ed0]
fmul st(1), st(0)
faddp st(1)
fstp dword [esi + 0x90]
cmp byte [0x5b3078], 0
je 0x4aa4a6
test ebx, ebx
jne 0x4aa4e0
mov ecx, dword [0x5b3074]
cmp ecx, 3
ja 0x4aa4c2
mov eax, dword [0x5b30c0]
test eax, eax
je 0x4aa4c2
mov eax, dword [eax + ecx*4 + 0x3c]
test eax, eax
jne 0x4aa4ce
mov dword [esi + 0x88], 0
jmp 0x4aa4e0
mov ecx, dword [esi + 0x84]
cmp eax, ecx
jg 0x4aa4da
mov eax, ecx
mov dword [esi + 0x88], eax
fld dword [0x5b3080]
push ecx
fstp dword [esp]
call fcn.004037c0
mov ecx, dword [0x5b30b0]
fstp dword [esp + 0x14]
fld dword [ecx + 0x28]
add esp, 4
fld1
fsubrp st(1)
fadd dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [0x554f90]
fstp dword [esp + 0x90]
fldz
fst dword [esp + 0x94]
fstp dword [esp + 0x98]
call fcn.0048fe70
fmul qword [0x554b90]
fsubr qword [0x554f88]
fadd qword [0x554f80]
fstp dword [esp + 0x10]
call fcn.0048fdd0
fmul qword [0x554b90]
lea ecx, [esp + 0x1c]
lea eax, [esp + 0xcc]
lea edx, [esp + 0x90]
fsub qword [0x554f88]
fsub qword [0x554f78]
fstp dword [esp + 0x20]
fld dword [esp + 0x10]
fstp dword [esp + 0x6c]
fld dword [esp + 0x20]
fstp dword [esp + 0x70]
fldz
fstp dword [esp + 0x74]
call fcn.004037a0
mov ecx, eax
lea eax, [esp + 0x9c]
lea edx, [esp + 0x6c]
call fcn.00403710
fldz
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
lea edx, [esi + 8]
mov dword [edx + 4], ecx
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0xfc]
mov dword [edx + 8], eax
fcom dword [0x5b3080]
fnstsw ax
fld dword [0x554f70]
test ah, 5
jp 0x4aa7a2
mov edx, 8
fstp dword [esp + 0x54]
shl edx, cl
fst dword [esp + 0x58]
fstp dword [esp + 0x5c]
mov dword [esi + 0x34], edx
call fcn.0048fe70
fmul qword [0x554b90]
fsubr qword [0x554f88]
fadd qword [0x554f80]
fstp dword [esp + 0x10]
call fcn.0048fdd0
fmul qword [0x554b90]
lea ecx, [esp + 0x54]
lea eax, [esp + 0xd8]
lea edx, [esp + 0x84]
fsub qword [0x554f88]
fsub qword [0x554f78]
fstp dword [esp + 0x20]
fld dword [esp + 0x10]
fstp dword [esp + 0x84]
fld dword [esp + 0x20]
fstp dword [esp + 0x88]
fldz
fstp dword [esp + 0x8c]
call fcn.00403dd0
mov ecx, dword [eax]
lea edi, [esi + 0x94]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov eax, dword [eax + 8]
push ebx
push 0x54d0f4
lea edx, [esp + 0xec]
mov dword [edi + 8], eax
call fcn.004198f0
add esp, 8
lea ecx, [esp + 0x44]
mov ebx, vtable.Mortar::Utf8StringProxy.0
push ecx
lea eax, [esp + 0xe8]
mov dword [esp + 0x48], ebx
call fcn.00421200
mov dword [esp + 0x138], 2
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x44]
call eax
mov edx, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x44]
call eax
cmp dword [esp + 0x50], 0
mov dword [esp + 0x2c], eax
je 0x4aa6e3
mov eax, 1
lea esi, [esp + 0x2c]
call fcn.00421560
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
jmp 0x4aa6e5
xor ecx, ecx
mov dword [esp + 0x138], 0xffffffff
fldz
mov edx, dword [esp + 0x2c]
push 0
sub esp, 0x10
mov eax, esp
fstp dword [esp + 0xc]
mov dword [eax], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, dword [0x5b30d0]
push eax
mov dword [esp + 0x5c], ebx
call fcn.0041f760
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [esi + 0x90]
fmul qword [0x554f68]
fmul qword [0x554b90]
fstp dword [esp + 0x14]
call fcn.0048fe70
fmul qword [0x554b90]
mov ecx, edi
lea eax, [esp + 0xc0]
lea edx, [esp + 0x60]
fsubr qword [0x554e38]
fsub dword [esp + 0x14]
fstp dword [esp + 0x60]
fld dword [0x554f60]
fstp dword [esp + 0x64]
fldz
fstp dword [esp + 0x68]
call fcn.00403710
mov edx, eax
mov ecx, 0x5b3080
lea eax, [esp + 0xa8]
call fcn.004037a0
fld dword [edi]
fadd dword [eax]
fstp dword [edi]
fld dword [eax + 4]
fadd dword [edi + 4]
fstp dword [edi + 4]
fld dword [eax + 8]
fadd dword [edi + 8]
fstp dword [edi + 8]
jmp 0x4aa7e5
mov eax, 1
fstp dword [esp + 0x78]
shl eax, cl
fst dword [esp + 0x7c]
lea ecx, [esp + 0x78]
fstp dword [esp + 0x80]
mov dword [esi + 0x34], eax
lea eax, [esp + 0xb4]
call fcn.00403dd0
mov ecx, dword [eax]
mov dword [esi + 0x94], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x98], edx
mov eax, dword [eax + 8]
mov dword [esi + 0x9c], eax
fld dword [0x5b3080]
fcomp qword [0x554bf8]
fnstsw ax
test ah, 0x41
jne 0x4aa93c
mov ecx, dword [0x5b30c0]
cmp byte [ecx + 0x124], 0
je 0x4aa93c
fld dword [esi + 0xa8]
fstp dword [esp + 0x20]
fld dword [ebp + 8]
fld qword [0x554cf0]
fmul st(1)
fadd dword [esi + 0xa8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcom qword [0x554b68]
fnstsw ax
test ah, 0x41
jne 0x4aa843
fstp st(0)
fld1
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [esi + 0xa8]
fld st(0)
fld1
fucompp
fnstsw ax
test ah, 0x44
jp 0x4aa8a3
movzx edx, word [esi + 0xac]
fxch st(1)
fmul qword [0x554f58]
mov dword [esp + 0x14], edx
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
fild dword [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x14], eax
faddp st(1)
fldcw word [esp + 0x14]
fistp dword [esp + 0x14]
mov ax, word [esp + 0x14]
mov word [esi + 0xac], ax
fldcw word [esp + 0x18]
jmp 0x4aa8ae
xor ecx, ecx
fstp st(1)
mov word [esi + 0xac], cx
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x4aa97a
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 1
jne 0x4aa97c
mov dword [esp + 0x3c], vtable.Mortar::Delegate1_bool__class_Mortar::MortarSound__::Global.0
mov dword [esp + 0x40], 0x494d00
sub esp, 0x24
mov dword [esp + 0x15c], 3
mov eax, esp
mov dword [esp + 0x38], esp
mov dword [esp + 0x38], eax
mov byte [eax + 0x20], 1
mov dword [eax], 0
mov byte [esp + 0x15c], 4
mov edx, dword [esp + 0x60]
push eax
mov eax, dword [edx + 4]
lea ecx, [esp + 0x64]
call eax
mov byte [esp + 0x15c], 3
fld1
mov edi, dword [0x5b3200]
sub esp, 8
fst dword [esp + 4]
mov ebx, 0x54d0f8
fstp dword [esp]
call fcn.00494e50
jmp 0x4aa97c
fld dword [esi + 0xa8]
fld dword [ebp + 8]
fmul qword [0x554ee8]
fsubp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcom qword [0x554f50]
fnstsw ax
test ah, 5
jp 0x4aa96a
fstp st(0)
fld dword [0x554f4c]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [esi + 0xa8]
jmp 0x4aa97c
fstp st(0)
fld dword [esp + 0x28]
fst dword [esi + 0x20]
fstp dword [esi + 0x24]
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0045f06e
mov esp, ebp
pop ebp
ret 4