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

Disassembly:
push 0xffffffffffffffff
push 0x5d99a7
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6396a8]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x7c], esi
mov eax, dword [esp + 0xa8]
push 1
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
call fcn.00588120
mov dword [esi], vtable.ArrangeFood.2.0
mov dword [esi + 0x88], vtable.ArrangeFood.1.0
mov dword [esi + fcn.0045f300], vtable.ArrangeFood.0
mov dword [esp + 0xa0], ebx
mov dword [esi + 0x2d8], ebx
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2e0], ebx
mov dword [esi + 0x2e8], ebx
mov dword [esi + 0x2ec], ebx
mov dword [esi + 0x2f0], ebx
mov dword [esi + 0x2f4], ebx
push 8
mov dword [esi + 0x2f8], 0xa2
mov dword [esi + 0x2fc], 0xac
mov dword [esi + 0x300], 0x1ba
mov dword [esi + 0x304], 0x13b
mov edi, 0xf
push str.max_food
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 2
mov byte [esi + 0x308], bl
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0043df40
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov byte [esp + 0xa4], 3
call fcn.00560e70
mov ebp, 0x10
cmp dword [esp + 0x34], ebp
mov dword [esi + 0x30c], eax
mov byte [esp + 0xa0], 2
jb 0x5659f4
mov edx, dword [esp + 0x20]
push edx
call fcn.005b28f2
add esp, 4
push 4
push str.Done
lea ecx, [esp + 0x24]
mov dword [esi + 0x1d8], 0xffffffff
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0043df40
lea eax, [esp + 0x1c]
push eax
push 0x1b8
push 0x46
mov ecx, esi
mov byte [esp + 0xac], 4
call fcn.00538120
cmp dword [esp + 0x34], ebp
mov dword [esi + 0x2d0], eax
mov byte [esp + 0xa0], 2
jb 0x565a56
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x3c], 0x87
mov edi, edi
mov edi, dword [esi + 0x218]
cmp edi, ebx
mov ebp, dword [esi + 0x21c]
jne 0x565a75
call fcn.005b2af7
cmp ebp, dword [edi + 4]
jne 0x565a7f
call fcn.005b2af7
mov eax, dword [esi + 0x214]
mov edx, dword [eax + 0x3c]
mov ebp, dword [ebp]
add eax, 0x38
cmp edi, eax
mov dword [esp + 0x84], edx
je 0x565a9e
call fcn.005b2af7
cmp ebp, dword [esp + 0x84]
je 0x566030
mov ecx, esi
call fcn.005869b0
push 3
mov ebp, 0xf
push 0x5f0798
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0043df40
cmp dword [esi + 0x218], ebx
mov byte [esp + 0xa0], 5
jne 0x565ae8
call fcn.005b2af7
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x21c]
cmp ecx, dword [eax + 4]
jne 0x565afe
call fcn.005b2af7
mov ecx, dword [esi + 0x21c]
lea edx, [esp + 0x1c]
add ecx, 8
push edx
call fcn.004790c0
mov edi, dword [eax + 0x14]
mov ecx, edi
cmp ecx, edi
jae 0x565b1a
cmp edi, 5
mov ecx, edi
jb 0x565b26
mov ecx, 5
cmp dword [eax + 0x18], 0x10
jb 0x565b31
mov eax, dword [eax + 4]
jmp 0x565b34
add eax, 4
push ecx
push str.param
push eax
call fcn.00401040
add esp, 0xc
cmp eax, ebx
jne 0x565b5b
cmp edi, 5
jae 0x565b51
or eax, 0xffffffff
jmp 0x565b59
xor eax, eax
cmp edi, 5
setne al
cmp eax, ebx
sete byte [esp + 0x1b]
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0xa0], 2
jb 0x565b7c
mov eax, dword [esp + 0x20]
push eax
call fcn.005b28f2
add esp, 4
cmp byte [esp + 0x1b], bl
je 0x565daf
push 0x1c8
call fcn.005b2b20
mov ebp, eax
add esp, 4
mov dword [esp + 0x38], ebp
cmp ebp, ebx
mov byte [esp + 0xa0], 6
je 0x565c6d
push 4
push str.food
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0043df40
or dword [esp + 0x14], 1
cmp dword [esi + 0x218], ebx
mov byte [esp + 0xa0], 7
jne 0x565be3
call fcn.005b2af7
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x21c]
cmp edx, dword [ecx + 4]
jne 0x565bf9
call fcn.005b2af7
mov ecx, dword [esi + 0x21c]
lea eax, [esp + 0x1c]
add ecx, 8
push eax
call fcn.004790c0
push eax
lea ecx, [esp + 0x48]
push str.plate_
push ecx
call fcn.00441e70
add esp, 0xc
mov ecx, dword [esi + 0x2d8]
or dword [esp + 0x14], 2
cmp ecx, ebx
mov dword [esp + 0xa0], 8
jne 0x565c3d
xor edi, edi
jmp 0x565c48
mov edi, dword [esi + 0x2dc]
sub edi, ecx
sar edi, 2
push eax
mov ecx, 0x63e65c
call fcn.00520690
mov eax, dword [eax]
mov edx, dword [esp + 0x3c]
push esi
push edi
push eax
push edx
push 0x2d0
mov ecx, ebp
call fcn.005a5390
mov edi, eax
jmp 0x565c6f
xor edi, edi
test byte [esp + 0x14], 2
mov dword [esp + 0x38], edi
je 0x565ca3
and dword [esp + 0x14], 0xfffffffd
cmp dword [esp + 0x5c], 0x10
jb 0x565c93
mov eax, dword [esp + 0x48]
push eax
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
test byte [esp + 0x14], 1
mov dword [esp + 0xa0], 2
je 0x565cce
and dword [esp + 0x14], 0xfffffffe
cmp dword [esp + 0x34], 0x10
jb 0x565cce
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005b28f2
add esp, 4
mov eax, dword [esp + 0x3c]
mov edx, dword [edi + 0x3c]
lea ecx, [eax + edx - 5]
mov eax, dword [esi + 0x2d8]
cmp eax, ebx
lea ebp, [esi + 0x2d4]
mov dword [esp + 0x3c], ecx
jne 0x565cf1
xor edx, edx
jmp 0x565cf9
mov edx, dword [ebp + 8]
sub edx, eax
sar edx, 2
cmp eax, ebx
je 0x565d16
mov ecx, dword [ebp + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x565d16
mov eax, dword [ebp + 8]
mov dword [eax], edi
add eax, 4
mov dword [ebp + 8], eax
jmp 0x565d40
mov ecx, dword [ebp + 8]
cmp eax, ecx
mov dword [esp + 0x40], ecx
jbe 0x565d2a
call fcn.005b2af7
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x38]
push edx
push ecx
push ebp
lea eax, [esp + 0x94]
push eax
mov ecx, ebp
call fcn.00565670
push edi
mov ecx, esi
call fcn.00585f70
mov eax, dword [esi + 0x2e8]
cmp eax, ebx
lea edi, [esi + 0x2e4]
mov dword [esp + 0x38], ebx
jne 0x565d60
xor edx, edx
jmp 0x565d68
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 2
cmp eax, ebx
je 0x565d88
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x565d88
mov eax, dword [edi + 8]
mov dword [eax], ebx
add eax, 4
mov dword [edi + 8], eax
jmp 0x565a60
mov ebp, dword [edi + 8]
cmp eax, ebp
jbe 0x565d94
call fcn.005b2af7
lea ecx, [esp + 0x38]
push ecx
push ebp
push edi
lea edx, [esp + 0x9c]
push edx
mov ecx, edi
call fcn.00466710
jmp 0x565a60
push 3
push 0x5f0798
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0043df40
cmp dword [esi + 0x218], ebx
mov byte [esp + 0xa0], 0xb
jne 0x565de0
call fcn.005b2af7
mov eax, dword [esi + 0x218]
mov ecx, dword [esi + 0x21c]
cmp ecx, dword [eax + 4]
jne 0x565df6
call fcn.005b2af7
mov ecx, dword [esi + 0x21c]
lea edx, [esp + 0x1c]
add ecx, 8
push edx
call fcn.004790c0
mov edi, dword [eax + 0x14]
mov ecx, edi
cmp ecx, edi
jae 0x565e12
cmp edi, 3
mov ecx, edi
jb 0x565e1e
mov ecx, 3
cmp dword [eax + 0x18], 0x10
jb 0x565e29
mov eax, dword [eax + 4]
jmp 0x565e2c
add eax, 4
push ecx
push 0x5f0930
push eax
call fcn.00401040
add esp, 0xc
cmp eax, ebx
jne 0x565e53
cmp edi, 3
jae 0x565e49
or eax, 0xffffffff
jmp 0x565e51
xor eax, eax
cmp edi, 3
setne al
cmp eax, ebx
sete byte [esp + 0x1b]
cmp dword [esp + 0x34], 0x10
mov byte [esp + 0xa0], 2
jb 0x565e74
mov eax, dword [esp + 0x20]
push eax
call fcn.005b28f2
add esp, 4
cmp byte [esp + 0x1b], bl
je 0x565a60
push 0xe0
call fcn.005b2b20
mov edi, eax
add esp, 4
mov dword [esp + 0x38], edi
cmp edi, ebx
mov byte [esp + 0xa0], 0xc
je 0x565f89
push 5
push str.image
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.0043df40
or dword [esp + 0x14], 4
push 1
push 0x5f084c
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 0xd
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.0043df40
or dword [esp + 0x14], 8
push 1
push 0x5f0848
lea ecx, [esp + 0x68]
mov dword [esp + 0xa8], 0xe
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.0043df40
or dword [esp + 0x14], 0x10
cmp dword [esi + 0x218], ebx
mov dword [esp + 0xa0], ebp
jne 0x565f2e
call fcn.005b2af7
mov ecx, dword [esi + 0x218]
mov edx, dword [esi + 0x21c]
cmp edx, dword [ecx + 4]
jne 0x565f44
call fcn.005b2af7
mov ecx, dword [esi + 0x21c]
lea eax, [esp + 0x44]
add ecx, 8
push eax
call fcn.004790c0
push eax
mov ecx, 0x63e65c
call fcn.00520690
mov eax, dword [eax]
push ebx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00560da0
push eax
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.00560da0
push eax
mov ecx, edi
call fcn.00558a70
jmp 0x565f8b
xor eax, eax
push eax
mov ecx, esi
mov dword [esp + 0xa4], 0x12
call fcn.00585fc0
test byte [esp + 0x14], 0x10
mov edi, 0x10
je 0x565fce
and dword [esp + 0x14], 0xffffffef
cmp dword [esp + 0x78], edi
jb 0x565fc2
mov eax, dword [esp + 0x64]
push eax
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
test byte [esp + 0x14], 8
je 0x565ff9
and dword [esp + 0x14], 0xfffffff7
cmp dword [esp + 0x34], edi
jb 0x565fed
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005b28f2
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
test byte [esp + 0x14], 4
mov dword [esp + 0xa0], 2
je 0x565a60
and dword [esp + 0x14], 0xfffffffb
cmp dword [esp + 0x5c], edi
jb 0x565a60
mov edx, dword [esp + 0x48]
push edx
call fcn.005b28f2
add esp, 4
jmp 0x565a60
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret 4