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

Disassembly:
push 0xffffffffffffffff
push 0x5de052
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x6396a8]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [esp + 0x98]
push 1
mov esi, ecx
push eax
mov dword [esp + 0x54], esi
call fcn.00588120
xor ebx, ebx
push 9
mov edi, 0xf
push str.tolerance
lea ecx, [esp + 0x58]
mov dword [esp + 0x98], ebx
mov dword [esi], vtable.Peel.2.0
mov dword [esi + 0x88], vtable.Peel.1.0
mov dword [esi + fcn.0045f300], vtable.Peel.0
mov byte [esi + 0x2d4], bl
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.0043df40
lea eax, [esp + 0x50]
push eax
mov ecx, esi
mov byte [esp + 0x94], 1
call fcn.00560e70
mov ebp, 0x10
cmp dword [esp + 0x68], ebp
mov dword [esi + 0x2d8], eax
mov byte [esp + 0x90], bl
jb 0x589c1d
mov ecx, dword [esp + 0x54]
push ecx
call fcn.005b28f2
add esp, 4
push 0xa
push str.spin_speed
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.0043df40
lea edx, [esp + 0x50]
push edx
mov ecx, esi
mov byte [esp + 0x94], 2
call fcn.00560e70
cmp dword [esp + 0x68], ebp
mov dword [esi + 0x2dc], eax
jb 0x589c66
mov eax, dword [esp + 0x54]
push eax
call fcn.005b28f2
add esp, 4
mov dword [esi + 0x2e4], ebx
mov dword [esi + 0x2e8], ebx
mov dword [esi + 0x2ec], ebx
lea edi, [esi + 0x2f0]
mov eax, 0xf
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov dword [esi + 0x314], ebx
mov dword [esi + 0x318], ebx
mov dword [esi + 0x31c], ebx
push 1
push 0x5f084c
lea ecx, [esp + 0x58]
mov byte [esp + 0x98], 5
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.0043df40
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
mov byte [esp + 0x94], 6
call fcn.00560da0
cmp dword [esp + 0x68], ebp
mov dword [esi + 0x320], eax
mov byte [esp + 0x90], 5
jb 0x589cf7
mov edx, dword [esp + 0x54]
push edx
call fcn.005b28f2
add esp, 4
push 5
push str.count
lea ecx, [esp + 0x58]
mov dword [esi + 0x324], 0xffffffff
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.0043df40
lea eax, [esp + 0x50]
push eax
mov ecx, esi
mov byte [esp + 0x94], 7
call fcn.00560da0
cmp dword [esp + 0x68], ebp
mov dword [esi + 0x328], eax
mov byte [esp + 0x90], 5
jb 0x589d56
mov ecx, dword [esp + 0x54]
push ecx
call fcn.005b28f2
add esp, 4
push 5
push str.sound
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.0043df40
lea edx, [esp + 0x50]
push edx
mov ecx, esi
mov byte [esp + 0x94], 8
call fcn.00560fa0
cmp dword [esp + 0x68], ebp
mov dword [esi + 0x32c], eax
mov byte [esp + 0x90], 5
jb 0x589dab
mov eax, dword [esp + 0x54]
push eax
call fcn.005b28f2
add esp, 4
push 0xb
push str.sound_delay
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.0043df40
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
mov byte [esp + 0x94], 9
call fcn.00560e70
cmp dword [esp + 0x68], ebp
mov dword [esi + 0x330], eax
mov byte [esp + 0x90], 5
jb 0x589e00
mov edx, dword [esp + 0x54]
push edx
call fcn.005b28f2
add esp, 4
push 4
push str.food
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.0043df40
cmp dword [esi + 0x218], ebx
mov byte [esp + 0x90], 0xa
jne 0x589e35
call fcn.005b2af7
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x21c]
cmp ecx, dword [eax + 4]
jne 0x589e4b
call fcn.005b2af7
mov ecx, dword [esi + 0x21c]
lea edx, [esp + 0x50]
add ecx, 8
push edx
call fcn.004790c0
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.0043b440
cmp dword [esp + 0x68], ebp
mov byte [esp + 0x90], 5
jb 0x589e84
mov eax, dword [esp + 0x54]
push eax
call fcn.005b28f2
add esp, 4
push 5
push str.sides
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.0043df40
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
mov byte [esp + 0x94], 0xb
call fcn.00560da0
cmp dword [esp + 0x68], ebp
mov dword [esi + 0x30c], eax
mov byte [esp + 0x90], 5
jb 0x589ed9
mov edx, dword [esp + 0x54]
push edx
call fcn.005b28f2
add esp, 4
push 3
push 0x5f5f3c
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.0043df40
lea eax, [esp + 0x50]
push eax
mov ecx, esi
mov byte [esp + 0x94], 0xc
call fcn.00560da0
cmp dword [esp + 0x68], ebp
mov dword [esp + 0x44], eax
mov byte [esp + 0x90], 5
jb 0x589f2c
mov ecx, dword [esp + 0x54]
push ecx
call fcn.005b28f2
add esp, 4
push edi
lea edx, [esp + 0x18]
push str.icon_
push edx
call fcn.00441e70
add esp, 0xc
push eax
mov ecx, 0x63e65c
mov byte [esp + 0x94], 0xd
call fcn.00520690
mov eax, dword [eax]
push 1
push eax
mov eax, dword [esi + 0x328]
push eax
mov ecx, esi
call fcn.005876b0
cmp dword [esp + 0x2c], ebp
mov byte [esp + 0x90], 5
jb 0x589f80
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005b28f2
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00441630
mov dword [esp + 0x34], eax
mov byte [eax + 0x2d], 1
mov eax, dword [esp + 0x34]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x34]
mov dword [eax], eax
mov eax, dword [esp + 0x34]
mov dword [eax + 8], eax
mov dword [esp + 0x38], ebx
mov ecx, esi
mov byte [esp + 0x90], 0xe
call fcn.00560920
test al, al
jne 0x58a2c2
add dword [esi + 0x2c0], 1
push 5
push str.image
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 ebp, dword [esi + 0x2c0]
add edi, 0x1c
cmp eax, ebx
mov byte [esp + 0x90], 0xf
je 0x58a01e
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x58a023
call fcn.005b2af7
mov eax, dword [edi + 4]
lea edx, [ebp + ebp*2]
lea ecx, [eax + edx*4]
lea edx, [esp + 0x14]
push edx
call fcn.004790c0
push eax
mov ecx, 0x63e65c
call fcn.00520690
cmp dword [esp + 0x2c], 0x10
mov eax, dword [eax]
mov dword [esp + 0x50], eax
mov byte [esp + 0x90], 0xe
jb 0x58a064
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005b28f2
add esp, 4
push 2
mov edi, 0xf
push 0x5f1104
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
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 + 0x94], 0x10
call fcn.00560e70
mov ebp, 0x10
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x54], eax
mov byte [esp + 0x90], 0xe
jb 0x58a0bd
mov eax, dword [esp + 0x18]
push eax
call fcn.005b28f2
add esp, 4
push 2
push 0x5f1108
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
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 + 0x94], 0x11
call fcn.00560e70
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x58], eax
mov byte [esp + 0x90], 0xe
jb 0x58a10c
mov edx, dword [esp + 0x18]
push edx
call fcn.005b28f2
add esp, 4
push 7
push str.default
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
mov edi, dword [esi + 0x2bc]
mov eax, dword [edi + 0x20]
mov ebp, dword [esi + 0x2c0]
add edi, 0x1c
cmp eax, ebx
mov byte [esp + 0x90], 0x12
je 0x58a15f
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x58a164
call fcn.005b2af7
mov ecx, dword [edi + 4]
lea eax, [ebp + ebp*2]
lea edx, [esp + 0x14]
lea ecx, [ecx + eax*4]
push edx
call fcn.004790c0
mov edi, dword [eax + 0x14]
mov ecx, edi
cmp ecx, edi
jae 0x58a181
cmp edi, 4
mov ecx, edi
jb 0x58a18d
mov ecx, 4
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x58a19c
mov eax, dword [eax + 4]
jmp 0x58a19f
add eax, 4
push ecx
push str.true
push eax
call fcn.00401040
add esp, 0xc
cmp eax, ebx
jne 0x58a1c6
cmp edi, 4
jae 0x58a1bc
or eax, 0xffffffff
jmp 0x58a1c4
xor eax, eax
cmp edi, 4
setne al
cmp eax, ebx
sete al
cmp dword [esp + 0x2c], ebp
mov byte [esp + 0x5c], al
mov byte [esp + 0x90], 0xe
jb 0x58a1e8
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005b28f2
add esp, 4
push 4
push str.name
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
mov eax, dword [esi + 0x2e4]
cmp eax, ebx
mov byte [esp + 0x90], 0x13
jne 0x58a220
mov dword [esp + 0x3c], ebx
jmp 0x58a22f
mov ecx, dword [esi + 0x2e8]
sub ecx, eax
sar ecx, 4
mov dword [esp + 0x3c], ecx
mov edi, dword [esi + 0x2bc]
mov eax, dword [edi + 0x20]
mov ebp, dword [esi + 0x2c0]
add edi, 0x1c
cmp eax, ebx
je 0x58a25e
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x58a263
call fcn.005b2af7
mov eax, dword [edi + 4]
lea edx, [ebp + ebp*2]
lea ecx, [eax + edx*4]
lea edx, [esp + 0x14]
push edx
call fcn.004790c0
push eax
lea ecx, [esp + 0x34]
call fcn.004795e0
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
cmp dword [esp + 0x2c], 0x10
mov byte [esp + 0x90], 0xe
jb 0x58a2a3
mov edx, dword [esp + 0x18]
push edx
call fcn.005b28f2
add esp, 4
lea eax, [esp + 0x50]
push eax
lea ecx, [esi + 0x2e0]
call fcn.005892c0
mov ecx, esi
call fcn.00560920
test al, al
je 0x589fc0
mov edi, dword [esi + 0x218]
cmp edi, ebx
mov ebp, dword [esi + 0x21c]
jne 0x58a2d7
call fcn.005b2af7
cmp ebp, dword [edi + 4]
jne 0x58a2e1
call fcn.005b2af7
mov eax, dword [esi + 0x214]
mov ecx, dword [eax + 0x3c]
mov ebp, dword [ebp]
add eax, 0x38
cmp edi, eax
mov dword [esp + 0x40], ecx
je 0x58a2fd
call fcn.005b2af7
cmp ebp, dword [esp + 0x40]
mov ecx, esi
je 0x58a5ec
call fcn.005869b0
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
mov ebp, 0x10
cmp dword [esi + 0x308], ebp
mov byte [esp + 0x90], 0x14
jb 0x58a33b
mov edi, dword [esi + 0x2f4]
jmp 0x58a341
lea edi, [esi + 0x2f4]
mov eax, dword [esi + 0x314]
cmp eax, ebx
jne 0x58a34f
xor eax, eax
jmp 0x58a368
mov ecx, dword [esi + 0x318]
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
add eax, 1
push eax
lea edx, [esp + 0x1c]
push 0x5f6758
push edx
call fcn.00471f90
add esp, 0x10
push eax
mov ecx, 0x63e65c
mov byte [esp + 0x94], 0x15
call fcn.00520690
cmp dword [esp + 0x2c], ebp
mov eax, dword [eax]
mov dword [esp + 0x50], eax
mov byte [esp + 0x90], 0x14
jb 0x58a3b3
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005b28f2
add esp, 4
push 4
push str.type
lea ecx, [esp + 0x1c]
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 + 0x90], 0x16
jne 0x58a3e8
call fcn.005b2af7
mov edx, dword [esi + 0x218]
mov eax, dword [esi + 0x21c]
cmp eax, dword [edx + 4]
jne 0x58a3fe
call fcn.005b2af7
mov ecx, dword [esi + 0x21c]
lea edx, [esp + 0x14]
add ecx, 8
push edx
call fcn.004790c0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x70]
call fcn.0043b440
cmp dword [esp + 0x2c], ebp
mov byte [esp + 0x90], 0x14
jb 0x58a439
mov eax, dword [esp + 0x18]
push eax
call fcn.005b28f2
add esp, 4
mov edi, dword [esp + 0x78]
cmp edi, 5
mov eax, edi
jb 0x58a449
mov eax, 5
cmp dword [esp + 0x7c], ebp
mov ecx, dword [esp + 0x68]
jae 0x58a457
lea ecx, [esp + 0x68]
push eax
push str.first
push ecx
call fcn.00401040
add esp, 0xc
cmp eax, ebx
jne 0x58a47e
cmp edi, 5
jae 0x58a474
or eax, 0xffffffff
jmp 0x58a47c
xor eax, eax
cmp edi, 5
setne al
cmp eax, ebx
sete cl
push 4
mov byte [esp + 0x64], cl
mov edi, 0xf
push str.left
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
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 + 0x94], 0x17
call fcn.00560da0
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x54], eax
mov byte [esp + 0x90], 0x14
jb 0x58a4d9
mov eax, dword [esp + 0x18]
push eax
call fcn.005b28f2
add esp, 4
push 5
push str.right
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], edi
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 + 0x94], 0x18
call fcn.00560da0
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x58], eax
mov byte [esp + 0x90], 0x14
jb 0x58a528
mov edx, dword [esp + 0x18]
push edx
call fcn.005b28f2
add esp, 4
mov eax, dword [esp + 0x44]
push 6
push str.peeler
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0043df40
cmp dword [esi + 0x218], ebx
mov byte [esp + 0x90], 0x19
jne 0x58a561
call fcn.005b2af7
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x21c]
cmp edx, dword [ecx + 4]
jne 0x58a577
call fcn.005b2af7
mov ecx, dword [esi + 0x21c]
lea eax, [esp + 0x14]
add ecx, 8
push eax
call fcn.004790c0
push eax
lea ecx, [esp + 0x34]
call fcn.004795e0
cmp dword [esp + 0x2c], ebp
mov ecx, dword [eax]
mov dword [esp + 0x80], ecx
mov byte [esp + 0x90], 0x14
jb 0x58a5b8
mov edx, dword [esp + 0x18]
push edx
call fcn.005b28f2
add esp, 4
lea eax, [esp + 0x50]
push eax
lea ecx, [esi + 0x310]
call fcn.00589ab0
cmp dword [esp + 0x7c], ebp
mov byte [esp + 0x90], 0xe
jb 0x58a2c2
mov ecx, dword [esp + 0x68]
push ecx
call fcn.005b28f2
add esp, 4
jmp 0x58a2c2
call fcn.00588b50
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x34]
push ecx
push edx
mov edi, ecx
push edi
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0xa4], 5
call fcn.00458c50
mov eax, dword [esp + 0x34]
push eax
call fcn.005b28f2
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005b2f9b
add esp, 0x80
ret 4