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

Disassembly:
push 0xffffffffffffffff
push 0x5dee57
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x9c]
push 1
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.00588120
lea edi, [esi + 0x2e0]
mov ecx, edi
mov dword [esp + 0x94], ebx
mov dword [esi], vtable.RollIntoBalls.2.0
mov dword [esi + 0x88], vtable.RollIntoBalls.1.0
mov dword [esi + fcn.0045f300], vtable.RollIntoBalls.0
mov dword [esi + 0x2dc], ebx
call fcn.005917e0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x2ec], ebx
mov dword [esi + 0x2f0], ebx
push 0xe0
mov byte [esp + 0x98], 1
mov dword [esi + 0x318], ebx
mov dword [esi + 0x31c], ebx
call fcn.005b2b20
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
cmp edi, ebx
mov byte [esp + 0x94], 2
lea ebp, [ebx + 0xf]
je 0x59205b
push 0xe
push str.bowl_large_top
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.0043df40
push 6
push str.bowl_y
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 3
mov dword [esp + 0x1c], 1
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.0043df40
push 6
push str.bowl_x
lea ecx, [esp + 0x40]
mov dword [esp + 0x9c], 4
mov dword [esp + 0x1c], 3
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
lea ecx, [esp + 0x70]
push ecx
mov ecx, 0x63e65c
mov dword [esp + 0x98], 5
mov dword [esp + 0x18], 7
call fcn.00520690
mov eax, dword [eax]
push ebx
push eax
lea edx, [esp + 0x5c]
push edx
mov ecx, esi
call fcn.00560e70
push eax
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.00560e70
push eax
mov ecx, edi
call fcn.00558a70
jmp 0x59205d
xor eax, eax
push eax
mov ecx, esi
mov dword [esp + 0x98], 8
mov dword [esi + 0x2d0], eax
call fcn.00585fc0
test byte [esp + 0x14], 4
mov edi, 0x10
je 0x5920a6
and dword [esp + 0x14], 0xfffffffb
cmp dword [esp + 0x50], edi
jb 0x59209a
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
test byte [esp + 0x14], 2
je 0x5920d1
and dword [esp + 0x14], 0xfffffffd
cmp dword [esp + 0x6c], edi
jb 0x5920c5
mov edx, dword [esp + 0x58]
push edx
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
test byte [esp + 0x14], 1
mov dword [esp + 0x94], 1
je 0x5920fe
and dword [esp + 0x14], 0xfffffffe
cmp dword [esp + 0x88], edi
jb 0x5920fe
mov eax, dword [esp + 0x74]
push eax
call fcn.005b28f2
add esp, 4
push 4
push str.food
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.0043df40
cmp dword [esi + 0x218], ebx
mov byte [esp + 0x94], 9
jne 0x592135
call fcn.005b2af7
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x21c]
cmp edx, dword [ecx + 4]
jne 0x59214b
call fcn.005b2af7
mov ecx, dword [esi + 0x21c]
lea eax, [esp + 0x70]
add ecx, 8
push eax
call fcn.004790c0
push eax
lea ecx, [esp + 0x58]
push str.ball_
push ecx
call fcn.00441e70
add esp, 0xc
push eax
mov ecx, 0x63e65c
mov byte [esp + 0x98], 0xa
call fcn.00520690
cmp dword [esp + 0x6c], edi
mov eax, dword [eax]
mov dword [esi + 0x2f4], eax
jb 0x59219f
mov edx, dword [esp + 0x58]
push edx
call fcn.005b28f2
add esp, 4
cmp dword [esp + 0x88], edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0x94], 1
jb 0x5921c9
mov eax, dword [esp + 0x74]
push eax
call fcn.005b28f2
add esp, 4
mov ecx, dword [esi + 0x2f4]
push 0x280
mov dword [ecx + 0x30], 2
call fcn.005b2b20
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
cmp edi, ebx
mov byte [esp + 0x94], 0xb
je 0x5922bf
push 0xe
push str.rollballs_hand
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.0043df40
or dword [esp + 0x14], 8
push 6
push str.hand_y
lea ecx, [esp + 0x40]
mov byte [esp + 0x9c], 0xc
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.0043df40
or dword [esp + 0x14], 0x10
push 6
push str.hand_x
lea ecx, [esp + 0x5c]
mov dword [esp + 0x9c], 0xd
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.0043df40
or dword [esp + 0x14], 0x20
lea edx, [esp + 0x70]
push edx
mov ecx, 0x63e65c
mov dword [esp + 0x98], 0xe
call fcn.00520690
fld1
mov eax, dword [eax]
push ebx
push ebx
sub esp, 8
fstp qword [esp]
push eax
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call fcn.00560e70
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.00560e70
push eax
mov ecx, edi
call fcn.00557ba0
jmp 0x5922c1
xor eax, eax
push eax
mov ecx, esi
mov dword [esp + 0x98], 0x11
mov dword [esi + 0x2d4], eax
call fcn.00585fc0
test byte [esp + 0x14], 0x20
mov edi, 0x10
je 0x59230a
and dword [esp + 0x14], 0xffffffdf
cmp dword [esp + 0x6c], edi
jb 0x5922fe
mov edx, dword [esp + 0x58]
push edx
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
test byte [esp + 0x14], 0x10
je 0x592335
and dword [esp + 0x14], 0xffffffef
cmp dword [esp + 0x50], edi
jb 0x592329
mov eax, dword [esp + 0x3c]
push eax
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
test byte [esp + 0x14], 8
mov dword [esp + 0x94], 1
je 0x592362
and dword [esp + 0x14], 0xfffffff7
cmp dword [esp + 0x88], edi
jb 0x592362
mov ecx, dword [esp + 0x74]
push ecx
call fcn.005b28f2
add esp, 4
push 7
push str.food_dy
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.0043df40
push 7
push str.food_dx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 0x12
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.0043df40
lea edx, [esp + 0x70]
push edx
mov ecx, esi
mov byte [esp + 0x98], 0x13
call fcn.00560e70
mov edi, eax
mov eax, dword [esi + 0x2d4]
add edi, dword [eax + 0x34]
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.00560e70
mov edx, dword [esi + 0x2d4]
add eax, dword [edx + 0x30]
mov dword [esi + 0x2f0], edi
mov edi, 0x10
cmp dword [esp + 0x6c], edi
mov dword [esi + 0x2ec], eax
jb 0x592400
mov eax, dword [esp + 0x58]
push eax
call fcn.005b28f2
add esp, 4
cmp dword [esp + 0x88], edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0x94], 1
jb 0x59242a
mov ecx, dword [esp + 0x74]
push ecx
call fcn.005b28f2
add esp, 4
push 5
push 0x5f7318
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.0043df40
lea edx, [esp + 0x54]
push edx
mov ecx, esi
mov byte [esp + 0x98], 0x14
call fcn.00569920
cmp dword [esp + 0x6c], 0x10
mov edi, eax
mov byte [esp + 0x94], 1
jb 0x592478
mov eax, dword [esp + 0x58]
push eax
call fcn.005b28f2
add esp, 4
push 0xe0
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.005b2b20
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebx
mov byte [esp + 0x94], 0x15
je 0x5924d8
push ebx
push edi
mov ecx, edi
call fcn.00427d10
mov ecx, dword [esi + 0x2f0]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
push ecx
mov ecx, edi
call fcn.00427d00
mov ecx, dword [esp + 0x24]
cdq
sub eax, edx
mov edx, dword [esi + 0x2ec]
sar eax, 1
sub edx, eax
push edx
call fcn.00558a70
jmp 0x5924da
xor eax, eax
push eax
mov ecx, esi
mov byte [esp + 0x98], 1
mov dword [esi + 0x2d8], eax
call fcn.00585fc0
mov ecx, dword [esi + 0x2d8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x7c]
push ebx
call edx
mov ecx, dword [esi + 0x2d0]
mov eax, dword [ecx + 0x38]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [ecx + 0x30]
mov ecx, dword [esi + 0x2f4]
call fcn.00427d30
mov ecx, dword [esi + 0x2d0]
cdq
sub eax, edx
sar eax, 1
sub edi, eax
mov eax, dword [ecx + 0x3c]
cdq
mov dword [esp + 0x1c], edi
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [ecx + 0x34]
mov ecx, dword [esi + 0x2f4]
call fcn.00427d20
cdq
sub eax, edx
sar eax, 1
sub edi, eax
mov dword [esp + 0x18], edi
mov edi, dword [esi + 0x218]
cmp edi, ebx
mov eax, dword [esi + 0x21c]
mov dword [esp + 0x2c], eax
jne 0x592569
call fcn.005b2af7
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [edi + 4]
jne 0x592577
call fcn.005b2af7
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x214]
mov ecx, dword [eax + 0x3c]
add eax, 0x38
cmp edi, eax
mov dword [esp + 0x34], ecx
je 0x59259a
call fcn.005b2af7
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x2c], edx
mov ecx, esi
je 0x592719
call fcn.005869b0
push 0x1b0
call fcn.005b2b20
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
cmp edi, ebx
mov byte [esp + 0x94], 0x16
je 0x592664
push 1
push 0x5f084c
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.0043df40
or dword [esp + 0x14], 0x40
push 1
push 0x5f0848
lea ecx, [esp + 0x5c]
mov byte [esp + 0x9c], 0x17
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.0043df40
mov eax, dword [esi + 0x2f4]
or dword [esp + 0x14], 0x80
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, esi
mov dword [esp + 0x9c], 0x18
call fcn.00560da0
add eax, dword [esp + 0x1c]
lea edx, [esp + 0x58]
push eax
push edx
mov ecx, esi
call fcn.00560da0
add eax, dword [esp + 0x24]
mov ecx, edi
push eax
call fcn.005a4910
mov edi, eax
jmp 0x592666
xor edi, edi
test byte [esp + 0x14], 0x80
mov dword [esp + 0x20], edi
je 0x592699
and dword [esp + 0x14], 0xffffff7f
cmp dword [esp + 0x6c], 0x10
jb 0x59268d
mov eax, dword [esp + 0x58]
push eax
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
test byte [esp + 0x14], 0x40
mov dword [esp + 0x94], 1
je 0x5926c7
and dword [esp + 0x14], 0xffffffbf
cmp dword [esp + 0x88], 0x10
jb 0x5926c7
mov ecx, dword [esp + 0x74]
push ecx
call fcn.005b28f2
add esp, 4
mov byte [edi + 0x150], 1
push edi
mov ecx, esi
mov byte [edi + 0x151], 1
call fcn.00585f70
mov edi, dword [esi + 0x2e4]
mov eax, dword [edi + 4]
lea ecx, [esi + 0x2e0]
lea edx, [esp + 0x20]
push edx
push eax
push edi
call fcn.005a7a10
push 1
lea ecx, [esi + 0x2e0]
mov ebp, eax
call fcn.00591e30
mov dword [edi + 4], ebp
mov ecx, dword [ebp + 4]
mov dword [ecx], ebp
mov ebp, 0xf
jmp 0x592550
mov edx, dword [esi + 0x2e8]
push edx
push 1
call fcn.005875e0
sub esp, 8
mov eax, esp
push 2
lea ecx, [esi + 0x1ec]
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.0056fb60
mov ecx, dword [esi + 0x2f4]
call fcn.00427d10
mov ecx, eax
add ecx, ecx
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esi + 0x28c], eax
mov eax, esi
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret 4