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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push esi
push edi
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push ecx
mov dword [esp + 0x18], esp
mov edi, esp
push ecx
mov esi, ecx
mov dword [esp + 0x1c], esp
mov dword [eax], 0x40400000
mov eax, dword [esi + 0x308]
mov ebx, esp
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.Wave__d
call fcn.00402110
mov ecx, dword [0x55cd0c]
push ebx
push ecx
call fcn.004a7680
add esp, 0x10
mov ecx, edi
call fcn.00456810
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push ecx
xor edi, edi
mov dword [eax], edi
mov eax, esp
mov ecx, esi
mov dword [esp + 0x20], esp
mov dword [eax], 1
call fcn.00456ba0
push ecx
mov dword [esp + 0x14], esp
mov eax, esp
push ecx
mov dword [esp + 0x18], esp
mov ebx, esp
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Were_surrounded_
mov dword [eax], 0x40400000
call fcn.00402110
mov ecx, ebx
call fcn.00456810
push ecx
mov eax, esp
mov dword [esp + 0x1c], esp
push ecx
mov dword [eax], edi
mov eax, esp
mov ecx, esi
mov dword [esp + 0x20], esp
mov dword [eax], 2
call fcn.00456ba0
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
mov byte [eax], 1
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
mov dword [eax], 0x42c80000
sub esp, 0xc
mov eax, esp
mov edx, edi
mov ecx, edi
mov dword [eax], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], esp
mov dword [eax + 4], ecx
mov ecx, esi
mov dword [eax + 8], edx
call fcn.004533a0
push 0x350
call fcn.004fd765
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0xfc], edi
je 0x459862
mov ecx, eax
call fcn.0046e930
mov ebx, eax
mov dword [esp + 0x30], ebx
jmp 0x459868
mov dword [esp + 0x30], edi
mov ebx, edi
mov eax, dword [0x55b9cc]
mov ecx, dword [eax + 0xcb0]
push edi
push ebx
mov dword [esp + 0x104], 0xffffffff
call fcn.00486190
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x14], esp
mov dword [eax], 1
call fcn.0046ea30
mov ecx, ebx
call fcn.004ab460
mov dword [esp + 0x34], edi
jmp 0x4598b0
xor edi, edi
jmp 0x4598b0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x34]
and edi, 0x80000001
jns 0x4598c5
dec edi
or edi, 0xfffffffe
inc edi
neg edi
sbb edi, edi
and edi, 0xfffffffe
inc edi
mov dword [esp + 0x44], edi
mov ecx, dword [esp + 0x2c]
and ecx, 0x80000001
jns 0x4598e2
dec ecx
or ecx, 0xfffffffe
inc ecx
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
push 0x368
mov dword [esp + 0x14], ecx
call fcn.004fd765
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0xfc], 1
je 0x45991d
mov ecx, eax
call fcn.0046e3d0
mov esi, eax
mov dword [esp + 0x28], esi
jmp 0x459929
mov dword [esp + 0x28], 0
mov esi, dword [esp + 0x28]
mov edx, dword [0x55b9cc]
mov ecx, dword [edx + 0xcb0]
push 0
push esi
mov dword [esp + 0x104], 0xffffffff
call fcn.00486190
sub esp, 8
mov eax, esp
mov dword [eax], 0
mov dword [esp + 0x1c], esp
mov ecx, 0x3fd00000
mov dword [eax + 4], ecx
sub esp, 8
mov eax, esp
mov dword [esp + 0x24], esp
mov dword [eax + 4], ecx
mov dword [eax], 0
sub esp, 8
mov eax, esp
mov ecx, esi
mov dword [esp + 0x2c], esp
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.0046e4d0
mov ecx, esi
call fcn.004ab460
push ecx
mov eax, esp
mov ecx, ebx
mov dword [esp + 0x18], esp
mov dword [eax], esi
call fcn.0046ed30
mov eax, dword [ebp + 8]
test eax, eax
jle 0x45a073
mov ecx, edi
imul ecx, ecx, 0x190
mov edx, edi
imul edx, edx, 0xfffffe70
mov dword [esp + 0x14], ecx
mov ecx, edi
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
imul ecx, ecx, 0x12c
fstp dword [esp + 0x48]
fild dword [esp + 0x14]
fstp dword [esp + 0xd8]
mov edx, edi
imul edx, edx, 0xfffffed4
imul edi, edi, 0xc8
mov dword [esp + 0x14], ecx
mov dword [esp + 0xac], 0
fild dword [esp + 0x14]
mov ebx, dword [esp + 0xac]
mov dword [esp + 0x14], edx
mov dword [esp + 0xa8], 0
fstp dword [esp + 0xc0]
mov dword [esp + 0xb0], 0
fild dword [esp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x68], 0
mov dword [esp + 0x4c], 0
fstp dword [esp + 0x6c]
mov dword [esp + 0x50], 0
fild dword [esp + 0x14]
mov dword [esp + 0x80], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
fstp dword [esp + 0x9c]
mov dword [esp + 0x98], 0
fild dword [esp + 0x10]
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov dword [esp + 0x5c], 0
fstp qword [esp + 0x38]
mov dword [esp + 0x70], 0
fild dword [esp + 0x44]
mov dword [esp + 0x74], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0xa0], 0
fstp qword [esp + 0x18]
mov dword [esp + 0xa4], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0x14], eax
jmp 0x459b30
mov esi, dword [esp + 0x28]
jmp 0x459b30
push 0x7a0
call fcn.004fd765
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xfc], 2
je 0x459b5b
mov ecx, eax
call fcn.004192b0
mov edi, eax
jmp 0x459b5d
xor edi, edi
mov eax, dword [0x55b9cc]
mov ecx, dword [eax + 0xcb0]
push 0
push edi
mov dword [esp + 0x104], 0xffffffff
call fcn.00486190
mov ecx, edi
call fcn.00418b10
mov ecx, edi
call fcn.004ab460
push ecx
mov eax, esp
mov byte [eax], 1
mov ecx, dword [edi + 0x290]
mov dword [esp + 0x14], esp
call fcn.0047f4b0
push ecx
mov eax, esp
mov ecx, esi
mov dword [esp + 0x14], esp
mov dword [eax], edi
call fcn.0046e8c0
push 0x1c0
call fcn.004fd765
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xfc], 3
je 0x459bd9
mov ecx, eax
call fcn.0047dae0
mov esi, eax
jmp 0x459bdb
xor esi, esi
mov ecx, dword [0x55b9cc]
mov ecx, dword [ecx + 0xcb0]
push 0
push esi
mov dword [esp + 0x104], 0xffffffff
call fcn.00486190
mov edx, dword [ebp + 0xc]
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
push ecx
mov byte [eax], 0
mov eax, esp
mov ecx, esi
mov dword [esp + 0x18], esp
mov dword [eax], edx
call fcn.0047d9b0
mov ecx, esi
call fcn.004ab460
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xb0]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], esp
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x38]
fild dword [esp + 0x1c]
cdq
sub eax, edx
fmul qword [esp + 0x44]
sar eax, 1
mov dword [esp + 0x1c], eax
sub esp, 0xc
fmul qword [0x529928]
mov eax, esp
fild dword [esp + 0x28]
mov dword [esp + 0x28], esp
fmul qword [esp + 0x30]
fmul qword [0x52b5d8]
fstp dword [esp + 0x78]
mov ecx, dword [esp + 0x78]
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0047dc40
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], esp
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov eax, dword [ecx + 0x38]
cdq
sub eax, edx
fmul qword [esp + 0x44]
sar eax, 1
fmul qword [0x529928]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
sub esp, 0xc
mov eax, esp
fmul qword [esp + 0x30]
mov dword [esp + 0x28], esp
fmul qword [0x523308]
fstp dword [esp + 0x90]
mov ecx, dword [esp + 0x90]
mov dword [eax], ecx
mov ecx, dword [esp + 0x98]
fstp dword [esp + 0x94]
mov edx, dword [esp + 0x94]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0047dc40
mov edx, dword [esp + 0xd8]
mov ecx, dword [esp + 0xdc]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xec]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], esp
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x38]
fild dword [esp + 0x1c]
cdq
sub eax, edx
fmul qword [esp + 0x44]
sar eax, 1
mov dword [esp + 0x1c], eax
sub esp, 0xc
fmul qword [0x52b828]
mov eax, esp
fild dword [esp + 0x28]
mov dword [esp + 0x28], esp
fmul qword [esp + 0x30]
fmul qword [0x523308]
fstp dword [esp + 0xa8]
mov ecx, dword [esp + 0xa8]
mov dword [eax], ecx
mov ecx, dword [esp + 0xb0]
fstp dword [esp + 0xac]
mov edx, dword [esp + 0xac]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0047dc40
mov edx, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xd4]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], esp
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov eax, dword [ecx + 0x38]
cdq
sub eax, edx
fmul qword [esp + 0x44]
sar eax, 1
mov dword [esp + 0x1c], eax
fmul qword [0x52b820]
fild dword [esp + 0x1c]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x28], esp
fmul qword [esp + 0x30]
fmul qword [0x523308]
fstp dword [esp + 0x6c]
mov ecx, dword [esp + 0x6c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
fstp dword [esp + 0x70]
mov edx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0047dc40
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x80]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], esp
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x38]
fild dword [esp + 0x1c]
cdq
sub eax, edx
fmul qword [esp + 0x44]
sar eax, 1
mov dword [esp + 0x1c], eax
sub esp, 0xc
fmul qword [0x52b818]
mov eax, esp
fild dword [esp + 0x28]
mov dword [esp + 0x28], esp
fmul qword [esp + 0x30]
fmul qword [0x523308]
fstp dword [esp + 0x9c]
mov ecx, dword [esp + 0x9c]
mov dword [eax], ecx
mov ecx, dword [esp + 0xa4]
fstp dword [esp + 0xa0]
mov edx, dword [esp + 0xa0]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0047dc40
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xb0]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], esp
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov eax, dword [ecx + 0x38]
cdq
sub eax, edx
fmul qword [esp + 0x44]
sar eax, 1
mov dword [esp + 0x1c], eax
fmul qword [0x51f670]
fild dword [esp + 0x1c]
fmul qword [esp + 0x24]
sub esp, 0xc
mov eax, esp
mov dword [esp + 0x28], esp
fmul qword [0x523308]
fstp dword [esp + 0xcc]
mov ecx, dword [esp + 0xcc]
mov dword [eax], ecx
mov ecx, dword [esp + 0xd4]
fstp dword [esp + 0xd0]
mov edx, dword [esp + 0xd0]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0047dc40
mov edx, dword [esp + 0xcc]
mov ecx, dword [esp + 0xd0]
sub esp, 0xc
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0xe0]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov eax, dword [0x55cd0c]
mov ecx, dword [eax + 0x868]
mov eax, dword [ecx + 0x3c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], esp
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x38]
fild dword [esp + 0x1c]
cdq
sub eax, edx
fmul qword [esp + 0x44]
sar eax, 1
mov dword [esp + 0x1c], eax
sub esp, 0xc
fmul qword [0x51f670]
mov eax, esp
fild dword [esp + 0x28]
mov dword [esp + 0x28], esp
fmul qword [esp + 0x30]
fmul qword [0x527a98]
fstp dword [esp + 0xfc]
mov ecx, dword [esp + 0xfc]
mov dword [eax], ecx
mov ecx, dword [esp + 0x104]
fstp dword [esp + 0x100]
mov edx, dword [esp + 0x100]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, esi
call fcn.0047dc40
push ecx
mov eax, esp
mov dword [eax], esi
mov ecx, dword [edi + 0x290]
mov dword [esp + 0x14], esp
call fcn.004ab980
dec dword [esp + 0x14]
jne 0x459b23
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, 2
mov dword [esp + 0x2c], eax
jl 0x4598d1
mov eax, dword [esp + 0x34]
inc eax
cmp eax, 2
mov dword [esp + 0x34], eax
jl 0x4598a6
mov ecx, dword [esp + 0xf4]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8