Function at 0x407b50
Capabilities:
Packed with generic packer

Disassembly:
push 0xffffffffffffffff
push 0x64e23a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
xor ebx, ebx
push ebp
mov esi, ecx
mov dword [esp + 0x24], ebx
call fcn.005396f0
mov dword [esp + 0x64], ebx
mov dword [ebp + 0x88], vtable.Sexy::ButtonListener.0
mov dword [ebp], 0x656ca8
mov dword [ebp + 0x88], 0x656dc0
mov edi, 1
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x94], ebx
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa0], ebx
mov dword [ebp + 0xa4], edi
mov dword [ebp + 0xa8], ebx
mov dword [ebp + 0xac], ebx
mov dword [ebp + 0xb0], ebx
mov dword [ebp + 0xb4], ebx
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xbc], ebx
mov dword [ebp + 0xc0], edi
mov dword [ebp + 0xc4], ebx
mov dword [ebp + 0xc8], ebx
mov dword [ebp + 0xcc], ebx
mov dword [ebp + 0xd0], ebx
mov dword [ebp + 0xd4], ebx
mov dword [ebp + 0xd8], ebx
mov dword [ebp + 0xdc], edi
mov dword [ebp + 0xe0], ebx
mov dword [ebp + 0xe4], ebx
mov dword [ebp + 0xe8], ebx
mov dword [ebp + 0xec], ebx
mov dword [ebp + 0xf0], ebx
mov dword [ebp + 0xf4], ebx
mov dword [ebp + 0xf8], edi
mov dword [ebp + 0xfc], ebx
mov dword [ebp + 0x100], ebx
mov dword [ebp + 0x104], ebx
mov dword [ebp + 0x108], ebx
mov dword [ebp + 0x10c], ebx
mov dword [ebp + 0x110], ebx
mov dword [ebp + 0x114], edi
mov dword [ebp + 0x118], ebx
mov dword [ebp + 0x11c], ebx
mov dword [ebp + 0x120], ebx
mov dword [ebp + 0x124], ebx
mov dword [ebp + 0x128], ebx
mov dword [ebp + 0x12c], ebx
mov dword [ebp + 0x130], edi
mov dword [ebp + 0x134], ebx
mov byte [esp + 0x64], 6
mov dword [ebp + 0x8c], esi
push 0x57000
mov dword [esi + 0x768], ebp
call fcn.0060ae9b
add esp, 4
mov esi, 0x400
push 0x53000
mov dword [ebp + 0x90], eax
mov dword [ebp + 0x98], esi
mov dword [ebp + 0xa8], str.zombies
mov dword [ebp + 0xa4], 0xdf6d
call fcn.0060ae9b
add esp, 4
mov dword [ebp + 0xac], eax
mov dword [ebp + 0xb4], esi
mov dword [ebp + 0xc4], str.plants
push 0x25000
mov dword [ebp + 0xc0], 0xdc61
call fcn.0060ae9b
add esp, 4
push 0x36000
mov dword [ebp + 0xc8], eax
mov dword [ebp + 0xd0], esi
mov dword [ebp + 0xe0], str.projectiles
mov dword [ebp + 0xdc], 0xd26f
call fcn.0060ae9b
add esp, 4
push 0x900
mov dword [ebp + 0xe4], eax
mov dword [ebp + 0xec], esi
mov dword [ebp + 0xfc], str.coins
mov dword [ebp + 0xf8], 0xdf69
call fcn.0060ae9b
add esp, 4
push 0x7600
mov dword [ebp + 0x100], eax
mov dword [ebp + 0x108], 0x20
mov dword [ebp + 0x118], str.lawnmowers
mov dword [ebp + 0x114], 0xd177
call fcn.0060ae9b
mov dword [ebp + 0x11c], eax
mov dword [ebp + 0x124], 0x80
mov dword [ebp + 0x134], str.griditems
mov dword [ebp + 0x130], 0xd269
mov eax, dword [ebp + 0x8c]
mov ecx, dword [eax + 0x820]
add esp, 4
push ecx
call fcn.004455e0
mov eax, dword [ebp + 0x8c]
mov edx, dword [eax + 0x870]
mov dword [ebp + 0x561c], edx
mov eax, dword [eax + 0x7f8]
cmp eax, edi
jl 0x407e08
cmp eax, 0xf
jg 0x407e08
call fcn.005af3f0
mov dword [ebp + 0x561c], eax
push 0x4c
mov dword [ebp + 0x55f4], ebx
mov dword [ebp + 0x5550], ebx
call fcn.0061c130
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x64], 7
je 0x407e34
mov edi, eax
call fcn.00438640
jmp 0x407e36
xor eax, eax
mov byte [esp + 0x64], 6
push 0x2c
mov dword [ebp + 0x138], eax
call fcn.0061c130
add esp, 4
cmp eax, ebx
je 0x407e56
call fcn.00438d50
jmp 0x407e58
xor eax, eax
push 0x350
mov dword [ebp + 0x13c], eax
call fcn.0061c130
add esp, 4
cmp eax, ebx
je 0x407e78
mov ecx, eax
call fcn.00489000
jmp 0x407e7a
xor eax, eax
push 0x4c
mov dword [ebp + 0x144], eax
call fcn.0061c130
add esp, 4
cmp eax, ebx
je 0x407e95
call fcn.004390e0
jmp 0x407e97
xor eax, eax
mov dword [ebp + 0x15c], eax
or eax, 0xffffffff
mov dword [ebp + 0x5c8], eax
mov dword [ebp + 0x5cc], eax
lea edi, [ebp + 0x4c8]
lea esi, [ebp + 0x240]
lea eax, [ebp + 0x318]
mov dword [esp + 0x1c], 9
jmp 0x407ed0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 6
lea esp, [esp]
mov eax, 0x14
mov dword [esi - 0xd8], 1
call fcn.005af400
mov dword [esi], eax
mov eax, 0xa
call fcn.005af400
mov ecx, dword [esp + 0x14]
sub eax, 5
mov dword [ecx], eax
mov eax, 0xa
call fcn.005af400
mov edx, eax
mov eax, dword [esp + 0x14]
sub edx, 5
mov dword [eax + 4], edx
add eax, 8
add esi, 4
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x407ee0
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
add edi, 0x1c
sub dword [esp + 0x1c], 1
jne 0x407ed0
jmp 0x795640