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

Disassembly:
push 0xffffffffffffffff
push 0x5dd988
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x78], esi
mov eax, dword [esp + 0xb0]
push 1
push eax
call fcn.00588120
xor ebx, ebx
lea ebp, [esi + 0x2d8]
mov dword [esi], vtable.Mash.2.0
mov dword [esi + 0x88], vtable.Mash.1.0
mov dword [esi + fcn.0045f300], vtable.Mash.0
mov dword [esp + 0xa8], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
push 0xc
push str.masher_speed
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 1
mov dword [esi + 0x2e8], 0xffffffff
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov byte [esp + 0xac], 2
call fcn.00560f00
fstp qword [esi + 0x2f0]
mov edi, 0x10
cmp dword [esp + 0x2c], edi
mov byte [esp + 0xa8], 1
jb 0x585450
mov edx, dword [esp + 0x18]
push edx
call fcn.005b28f2
add esp, 4
push 0xc
push str.expand_speed
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0xac], 3
call fcn.00560f00
fstp qword [esi + 0x2f8]
cmp dword [esp + 0x2c], edi
mov byte [esp + 0xa8], 1
jb 0x5854a5
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005b28f2
add esp, 4
push 0xa
push str.hint_speed
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
lea edx, [esp + 0x14]
push edx
mov ecx, esi
mov byte [esp + 0xac], 4
call fcn.00560f00
fstp qword [esi + 0x300]
cmp dword [esp + 0x2c], edi
mov byte [esp + 0xa8], 1
jb 0x5854fa
mov eax, dword [esp + 0x18]
push eax
call fcn.005b28f2
add esp, 4
push 0xa
push str.hint_scale
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov byte [esp + 0xac], 5
call fcn.00560f00
fstp qword [esi + 0x308]
cmp dword [esp + 0x2c], edi
mov byte [esp + 0xa8], 1
jb 0x58554f
mov edx, dword [esp + 0x18]
push edx
call fcn.005b28f2
add esp, 4
push 0xb
push str.error_scale
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0xac], 6
call fcn.00560f00
fstp qword [esi + 0x310]
cmp dword [esp + 0x2c], edi
mov byte [esp + 0xa8], 1
jb 0x5855a4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005b28f2
add esp, 4
push 0xe
push str.correct_height
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
lea edx, [esp + 0x14]
push edx
mov ecx, esi
mov byte [esp + 0xac], 7
call fcn.00560e70
cmp dword [esp + 0x2c], edi
mov dword [esi + 0x318], eax
mov byte [esp + 0xa8], 1
jb 0x5855f9
mov eax, dword [esp + 0x18]
push eax
call fcn.005b28f2
add esp, 4
push 0xc
push str.error_height
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov byte [esp + 0xac], 8
call fcn.00560e70
cmp dword [esp + 0x2c], edi
mov dword [esi + 0x31c], eax
mov byte [esp + 0xa8], 1
jb 0x58564e
mov edx, dword [esp + 0x18]
push edx
call fcn.005b28f2
add esp, 4
push 0xb
push str.smash_sound
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov byte [esp + 0xac], 9
call fcn.00560fa0
cmp dword [esp + 0x2c], edi
mov dword [esi + 0x320], eax
mov byte [esp + 0xa8], 1
jb 0x5856a3
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005b28f2
add esp, 4
push 4
push str.food
lea ecx, [esp + 0x1c]
mov dword [esi + 0x324], 3
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
cmp dword [esi + 0x218], ebx
mov byte [esp + 0xa8], 0xa
jne 0x5856e2
call fcn.005b2af7
mov edx, dword [esi + 0x218]
mov eax, dword [esi + 0x21c]
cmp eax, dword [edx + 4]
jne 0x5856f8
call fcn.005b2af7
mov ecx, dword [esi + 0x21c]
lea edx, [esp + 0x14]
add ecx, 8
push edx
call fcn.004790c0
push eax
lea eax, [esp + 0x80]
push str.mash_
push eax
call fcn.00441e70
add esp, 0xc
push eax
mov ecx, 0x63e65c
mov byte [esp + 0xac], 0xb
call fcn.00520690
cmp dword [esp + 0x94], edi
mov ecx, dword [eax]
mov dword [esp + 0x3c], ecx
jb 0x585753
mov edx, dword [esp + 0x80]
push edx
call fcn.005b28f2
add esp, 4
cmp dword [esp + 0x2c], edi
mov eax, 0xf
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
mov byte [esp + 0xa8], 1
jb 0x58578d
mov eax, dword [esp + 0x18]
push eax
call fcn.005b28f2
add esp, 4
mov eax, 0xf
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
push 1
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov dword [ecx + 0x30], 2
push 0x5f0848
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.0043df40
lea edx, [esp + 0x40]
push edx
mov ecx, esi
mov byte [esp + 0xac], 0xc
call fcn.00560e70
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
call fcn.00427d30
mov ecx, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
cmp dword [esp + 0x58], edi
mov dword [esp + 0x38], ecx
mov byte [esp + 0xa8], 1
jb 0x58580b
mov edx, dword [esp + 0x44]
push edx
call fcn.005b28f2
add esp, 4
push 1
push 0x5f084c
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.0043df40
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov byte [esp + 0xac], 0xd
call fcn.00560e70
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
call fcn.00427d20
mov ecx, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
cmp dword [esp + 0x58], edi
mov dword [esp + 0x74], ecx
mov byte [esp + 0xa8], 1
jb 0x585876
mov edx, dword [esp + 0x44]
push edx
call fcn.005b28f2
add esp, 4
push 2
push 0x5f1104
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.0043df40
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov byte [esp + 0xac], 0xe
call fcn.00560e70
cmp dword [esp + 0x58], edi
mov dword [esp + 0x34], eax
mov byte [esp + 0xa8], 1
jb 0x5858c9
mov ecx, dword [esp + 0x44]
push ecx
call fcn.005b28f2
add esp, 4
push 2
push 0x5f1108
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.0043df40
lea edx, [esp + 0x40]
push edx
mov ecx, esi
mov byte [esp + 0xac], 0xf
call fcn.00560e70
cmp dword [esp + 0x58], edi
mov dword [esp + 0x64], eax
mov byte [esp + 0xa8], 1
jb 0x58591c
mov eax, dword [esp + 0x44]
push eax
call fcn.005b28f2
add esp, 4
push 4
push str.cols
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.0043df40
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
mov byte [esp + 0xac], 0x10
call fcn.00560e70
cmp dword [esp + 0x58], edi
mov dword [esp + 0x30], eax
mov byte [esp + 0xa8], 1
jb 0x58596f
mov edx, dword [esp + 0x44]
push edx
call fcn.005b28f2
add esp, 4
push 4
push str.rows
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.0043df40
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov byte [esp + 0xac], 0x11
call fcn.00560e70
cmp dword [esp + 0x58], edi
mov dword [esp + 0x6c], eax
mov byte [esp + 0xa8], 1
jb 0x5859c2
mov ecx, dword [esp + 0x44]
push ecx
call fcn.005b28f2
add esp, 4
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x30]
mov edi, dword [esp + 0x30]
sub eax, 1
imul eax, dword [esp + 0x6c]
imul eax, edi
push eax
push 1
mov ecx, esi
call fcn.005875e0
cmp edi, ebx
jle 0x585af3
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x30], edi
jmp 0x585a00
mov eax, dword [esp + 0x6c]
cmp eax, ebx
jle 0x585ae0
mov edx, dword [esp + 0x74]
mov dword [esp + 0x60], edx
mov dword [esp + 0x38], eax
push 0x1b0
call fcn.005b2b20
add esp, 4
mov dword [esp + 0x68], eax
cmp eax, ebx
mov byte [esp + 0xa8], 0x12
je 0x585a4f
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push ecx
mov ecx, eax
call fcn.005a4910
mov edi, eax
jmp 0x585a51
xor edi, edi
push edi
mov ecx, esi
mov byte [esp + 0xac], 1
mov dword [esp + 0x6c], edi
call fcn.00585f70
mov eax, dword [ebp + 4]
cmp eax, ebx
jne 0x585a70
xor edx, edx
jmp 0x585a78
mov edx, dword [ebp + 8]
sub edx, eax
sar edx, 2
cmp eax, ebx
je 0x585a95
mov ecx, dword [ebp + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x585a95
mov eax, dword [ebp + 8]
mov dword [eax], edi
add eax, 4
mov dword [ebp + 8], eax
jmp 0x585abf
mov ecx, dword [ebp + 8]
cmp eax, ecx
mov dword [esp + 0x70], ecx
jbe 0x585aa9
call fcn.005b2af7
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x68]
push edx
push ecx
push ebp
lea eax, [esp + 0xa4]
push eax
mov ecx, ebp
call fcn.00565670
mov edx, dword [edi]
mov eax, dword [edx + 0x94]
push 1
mov ecx, edi
call eax
mov ecx, dword [esp + 0x64]
add dword [esp + 0x60], ecx
sub dword [esp + 0x38], 1
jne 0x585a18
mov edx, dword [esp + 0x34]
add dword [esp + 0x5c], edx
sub dword [esp + 0x30], 1
jne 0x585a00
mov ecx, dword [ebp + 4]
cmp ecx, ebx
jne 0x585afe
xor eax, eax
jmp 0x585b06
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
shr eax, 1
cmp ecx, ebx
mov edi, eax
je 0x585b1a
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x585b1f
call fcn.005b2af7
mov eax, dword [ebp + 4]
mov ebp, dword [eax + edi*4]
push 6
push str.shadow
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 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 + 0xa8], 0x13
mov dword [esp + 0x34], ecx
je 0x585b84
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 0x585b8d
call fcn.005b2af7
mov ecx, dword [esp + 0x34]
mov edx, dword [edi + 4]
lea ecx, [ecx + ecx*2]
lea eax, [esp + 0x14]
lea ecx, [edx + ecx*4]
push eax
call fcn.004790c0
push eax
mov ecx, 0x63e65c
call fcn.00520690
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
mov byte [esp + 0xa8], 1
jb 0x585bcd
mov edx, dword [esp + 0x18]
push edx
call fcn.005b28f2
add esp, 4
push 0x280
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.005b2b20
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov byte [esp + 0xa8], 0x14
je 0x585c58
mov eax, dword [ebp + 0x3c]
fld qword [esi + 0x310]
mov ecx, dword [esp + 0x30]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp + 0x38]
cdq
push ebx
sub eax, edx
push ebx
sar edi, 1
add edi, dword [ebp + 0x34]
mov ebp, eax
mov eax, dword [esp + 0x40]
sub esp, 8
sar ebp, 1
add ebp, dword [eax + 0x30]
fstp qword [esp]
push ecx
call fcn.00427d10
mov ecx, dword [esp + 0x44]
cdq
sub eax, edx
sar eax, 1
sub edi, eax
push edi
call fcn.00427d00
mov ecx, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
sub ebp, eax
push ebp
call fcn.00557ba0
mov ebp, dword [esp + 0x38]
jmp 0x585c5a
xor eax, eax
push eax
mov ecx, esi
mov byte [esp + 0xac], 1
mov dword [esi + 0x2d4], eax
call fcn.00585fc0
fld qword [esi + 0x310]
mov ecx, dword [esi + 0x2d4]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esi + 0x310]
fstp qword [esp]
call fcn.005570d0
push 6
push 0x5f6308
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 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 + 0xa8], 0x15
mov dword [esp + 0x34], ecx
je 0x585cec
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 0x585cf5
call fcn.005b2af7
mov ecx, dword [esp + 0x34]
mov edx, dword [edi + 4]
lea ecx, [ecx + ecx*2]
lea eax, [esp + 0x14]
lea ecx, [edx + ecx*4]
push eax
call fcn.004790c0
push eax
mov ecx, 0x63e65c
call fcn.00520690
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov byte [esp + 0xa8], 1
jb 0x585d35
mov edx, dword [esp + 0x18]
push edx
call fcn.005b28f2
add esp, 4
push 0x280
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.005b2b20
add esp, 4
mov dword [esp + 0x64], eax
cmp eax, ebx
mov byte [esp + 0xa8], 0x16
je 0x585d96
fld1
mov ecx, dword [esp + 0x34]
mov edi, dword [ebp + 0x3c]
add edi, dword [ebp + 0x34]
push ebx
push ebx
sub esp, 8
fstp qword [esp]
push ecx
call fcn.00427d10
mov ecx, dword [esi + 0x31c]
mov edx, dword [esi + 0x38]
add ecx, edi
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x7c]
push edx
call fcn.00557ba0
jmp 0x585d98
xor eax, eax
push eax
mov ecx, esi
mov byte [esp + 0xac], 1
mov dword [esi + 0x2d0], eax
call fcn.00585fc0
fld qword [esi + 0x2f0]
mov ecx, dword [esi + 0x2d4]
mov eax, dword [ecx + 0x38]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x38]
sub esp, 8
cdq
fstp qword [esp]
push ebx
push ebx
sub eax, edx
push ebx
sar eax, 1
sar edi, 1
push ebx
sub eax, edi
push eax
call fcn.00557670
mov ecx, dword [esi + 0x2d0]
mov eax, dword [ecx + 0x38]
fld qword [esi + 0x2f0]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x38]
sub esp, 8
cdq
fstp qword [esp]
push ebx
push ebx
sub eax, edx
push ebx
sar edi, 1
sar eax, 1
push ebx
sub eax, edi
push eax
call fcn.00557670
mov eax, esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 4