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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5dfec3
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 8]
push 1
push eax
call fcn.00588120
xor ebx, ebx
push 0xd
push str.spread_butter
lea ecx, [esp + 0x24]
mov dword [esp + 0x68], ebx
mov dword [esi], vtable.SpreadButter.2.0
mov dword [esi + 0x88], vtable.SpreadButter.1.0
mov dword [esi + fcn.0045f300], vtable.SpreadButter.0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0043df40
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x63e65c
mov byte [esp + 0x64], 1
call fcn.00520690
mov eax, dword [eax]
mov edi, 0x10
cmp dword [esp + 0x34], edi
mov dword [esi + 0x2d0], eax
mov byte [esp + 0x60], bl
jb 0x59bba5
mov edx, dword [esp + 0x20]
push edx
call fcn.005b28f2
add esp, 4
mov dword [esi + 0x2d4], ebx
mov dword [esi + 0x2d8], ebx
push 0xa
push str.melt_speed
lea ecx, [esp + 0x24]
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2e0], ebx
mov byte [esi + 0x2e5], bl
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0043df40
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x64], 2
call fcn.00560e70
cmp dword [esp + 0x34], edi
mov dword [esi + 0x2e8], eax
mov byte [esp + 0x60], bl
jb 0x59bc11
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005b28f2
add esp, 4
push 0xc
push str.pan_center_y
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
push 0xc
push str.pan_center_x
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 3
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0043df40
lea edx, [esp + 0x38]
push edx
mov ecx, esi
mov byte [esp + 0x64], 4
call fcn.00560e70
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00560e70
cmp dword [esp + 0x34], edi
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x2ec], eax
mov dword [esi + 0x2f0], ecx
jb 0x59bc9a
mov edx, dword [esp + 0x20]
push edx
call fcn.005b28f2
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0x60], bl
jb 0x59bcc1
mov eax, dword [esp + 0x3c]
push eax
call fcn.005b28f2
add esp, 4
push 0xa
push str.pan_radius
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
mov ecx, dword [esi + 0x2d0]
mov byte [esp + 0x60], 5
call fcn.00427d10
cdq
sub eax, edx
lea ecx, [esp + 0x38]
sar eax, 1
push ecx
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.00560e70
sub eax, dword [esp + 0x14]
cmp dword [esp + 0x50], edi
mov dword [esi + 0x2f4], eax
mov byte [esp + 0x60], bl
jb 0x59bd27
mov edx, dword [esp + 0x3c]
push edx
call fcn.005b28f2
add esp, 4
push edi
push str.interpolate_rate
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov byte [esp + 0x64], 6
call fcn.00560f00
fstp qword [esi + 0x2f8]
cmp dword [esp + 0x50], edi
mov byte [esp + 0x60], bl
jb 0x59bd74
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.005b28f2
add esp, 4
push 8
push str.butter_y
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
push 8
push str.butter_x
lea ecx, [esp + 0x24]
mov byte [esp + 0x68], 7
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0043df40
lea edx, [esp + 0x38]
push edx
mov ecx, esi
mov byte [esp + 0x64], 8
call fcn.00560e70
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00560e70
cmp dword [esp + 0x34], edi
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x300], eax
mov dword [esi + 0x304], ecx
jb 0x59bdfd
mov edx, dword [esp + 0x20]
push edx
call fcn.005b28f2
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0x60], bl
jb 0x59be24
mov eax, dword [esp + 0x3c]
push eax
call fcn.005b28f2
add esp, 4
push 0x12
push str.spread_butter_mask
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x63e65c
mov byte [esp + 0x64], 9
call fcn.00520690
cmp dword [esp + 0x50], edi
mov eax, dword [eax]
mov dword [esi + 0x308], eax
mov byte [esp + 0x60], bl
jb 0x59be77
mov edx, dword [esp + 0x3c]
push edx
call fcn.005b28f2
add esp, 4
push 1
push ebx
mov ecx, esi
call fcn.005875e0
push 0xa
push str.max_target
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov byte [esp + 0x64], 0xa
call fcn.00560f00
fstp qword [esi + 0x248]
cmp dword [esp + 0x50], edi
mov byte [esp + 0x60], bl
jb 0x59becf
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.005b28f2
add esp, 4
mov edx, dword [esi + 0x2d0]
mov dword [edx + 0x30], 4
mov eax, dword [esi + 0x2f4]
push 0xa
push str.pan_butter
lea ecx, [esp + 0x40]
mov dword [esi + 0x28c], eax
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x63e65c
mov byte [esp + 0x64], 0xb
call fcn.00520690
cmp dword [esp + 0x50], edi
mov eax, dword [eax]
mov dword [esi + 0x30c], eax
mov byte [esp + 0x60], bl
jb 0x59bf3b
mov edx, dword [esp + 0x3c]
push edx
call fcn.005b28f2
add esp, 4
mov eax, dword [esi + 0x30c]
mov ecx, dword [0x63e5a0]
push eax
call fcn.00454060
push ebx
push 0xff
push 0xff
push 0xff
lea ecx, [esp + 0x2c]
mov dword [esi + 0x314], eax
call fcn.004049b0
mov ecx, dword [esi + 0x314]
push eax
push ecx
mov ecx, dword [0x63e5a0]
call fcn.00453dc0
mov ecx, dword [esi + 0x314]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
push 1
call eax
push 0x6c
call fcn.005b2b20
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x60], 0xc
je 0x59bfb1
mov ecx, eax
call fcn.0042e410
jmp 0x59bfb3
xor eax, eax
mov ecx, dword [esi + 0x30c]
mov dword [esi + 0x310], eax
mov edi, dword [ecx + 0x28]
mov ecx, dword [ecx + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x78]
push edi
push ecx
mov ecx, eax
mov byte [esp + 0x68], bl
call edx
mov ecx, dword [esi + 0x310]
mov eax, dword [ecx]
mov edx, dword [eax + 0x70]
call edx
mov ecx, dword [esi + 0x30c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x7c]
call edx
fldz
mov edx, dword [esi + 0x310]
mov ecx, dword [edx + 0x28]
imul ecx, dword [edx + 0x24]
fstp qword [esi + 0x318]
cmp ecx, ebx
jle 0x59c030
jmp 0x59c010
movzx edx, byte [eax + 3]
mov dword [esp + 0x14], edx
add eax, 4
sub ecx, 1
fild dword [esp + 0x14]
fadd qword [esi + 0x318]
fstp qword [esi + 0x318]
jne 0x59c010
mov ecx, dword [esi + 0x2f0]
mov edx, dword [esi + 0x2ec]
sub esp, 8
mov eax, esp
mov dword [esp + 0x1c], esp
push ecx
push edx
push eax
mov ecx, esi
call fcn.0059b6c0
mov ecx, esi
call fcn.0059b410
push 5
push str.sound
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
mov edi, dword [esi + 0x2bc]
mov eax, dword [edi + 0x20]
mov ecx, dword [esi + 0x2c0]
add edi, 0x1c
cmp eax, ebx
mov byte [esp + 0x60], 0xd
mov dword [esp + 0x14], ecx
je 0x59c0ae
mov edx, dword [edi + 8]
sub edx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x59c0b7
call fcn.005b2af7
mov ecx, dword [esp + 0x14]
lea eax, [ecx + ecx*2]
mov ecx, dword [edi + 4]
lea edx, [esp + 0x38]
lea ecx, [ecx + eax*4]
push edx
call fcn.004790c0
push eax
mov ecx, 0x63e674
call fcn.004795e0
mov eax, dword [eax]
mov ecx, dword [0x63e5a0]
push eax
call fcn.005214f0
cmp dword [esp + 0x50], 0x10
jb 0x59c0f7
mov eax, dword [esp + 0x3c]
push eax
call fcn.005b28f2
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4