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 0x5a5500
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
fldz
or esi, 0xffffffff
push ebx
fstp dword [ebp + 0x5d0]
mov dword [ebp + 0x5538], ebx
mov dword [ebp + 0x5540], ebx
mov dword [ebp + 0x5544], ebx
mov dword [ebp + 0x5548], ebx
mov byte [ebp + 0x164], bl
mov byte [ebp + 0x560c], bl
mov dword [ebp + 0x5614], ebx
mov dword [ebp + 0x5618], ebx
mov byte [ebp + 0x55fc], bl
mov dword [ebp + 0x5600], esi
mov dword [ebp + 0x5604], ebx
mov dword [ebp + 0x5608], ebx
mov dword [ebp + 0x5610], ebx
mov dword [ebp + 0x5620], ebx
mov dword [ebp + 0x5d4], ebx
mov dword [ebp + 0x5744], ebx
mov dword [ebp + 0x5748], ebx
mov dword [ebp + 0x5754], ebx
mov dword [ebp + 0x5758], ebx
mov dword [ebp + 0x575c], ebx
mov byte [ebp + 0x574c], bl
mov dword [ebp + 0x608], ebx
mov byte [ebp + 0x5c4], bl
mov dword [ebp + 0x55ec], esi
mov dword [ebp + 0x556c], ebx
mov dword [ebp + 0x5570], ebx
mov dword [ebp + 0x5574], ebx
mov dword [ebp + 0x5750], ebx
mov byte [ebp + 0x5760], bl
mov dword [ebp + 0x576c], ebx
mov dword [ebp + 0x5770], ebx
mov dword [ebp + 0x5774], ebx
mov dword [ebp + 0x5778], ebx
mov dword [ebp + 0x577c], ebx
mov dword [ebp + 0x5780], ebx
mov dword [ebp + 0x5784], ebx
mov dword [ebp + 0x578c], ebx
call fcn.0061c64f
fld dword [0x6794b4]
mov dword [ebp + 0x5790], eax
fstp dword [ebp + 0x5788]
mov dword [ebp + 0x5794], ebx
mov dword [ebp + 0x5798], ebx
mov dword [ebp + 0x579c], ebx
mov dword [ebp + 0x57a0], ebx
mov dword [ebp + 0x57a4], ebx
mov dword [ebp + 0x57a8], ebx
mov dword [ebp + 0x57ac], ebx
xor eax, eax
lea edi, [ebp + 0x5624]
mov ecx, 0x48
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x8c]
mov dword [ebp + 0x5558], esi
mov dword [ebp + 0x555c], esi
mov byte [ebp + 0x55f0], bl
movzx ecx, byte [eax + 0x8b8]
mov byte [ebp + 0x5761], cl
movzx edx, byte [eax + 0x8b9]
mov byte [ebp + 0x5762], dl
movzx ecx, byte [eax + 0x8ba]
mov byte [ebp + 0x5763], cl
movzx edx, byte [eax + 0x8bb]
mov byte [ebp + 0x5764], dl
movzx ecx, byte [eax + 0x8bc]
mov byte [ebp + 0x5765], cl
movzx edx, byte [eax + 0x8bd]
mov byte [ebp + 0x5766], dl
mov al, byte [eax + 0x8be]
add esp, 4
push 0x78
mov byte [ebp + 0x5767], al
mov byte [ebp + 0x55f1], bl
call fcn.0061c130
add esp, 4
cmp eax, ebx
je 0x408156
mov dword [eax + 0x14], ebx
mov ecx, 0xf
mov dword [eax + 0x18], ecx
mov byte [eax + 4], bl
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], ebx
mov byte [eax + 0x20], bl
mov dword [eax + 0x50], ecx
mov dword [eax + 0x4c], ebx
mov byte [eax + 0x3c], bl
mov dword [eax + 0x54], ebx
mov dword [eax + 0x58], ebx
mov dword [eax + 0x5c], ebx
mov dword [eax + 0x60], ebx
mov byte [eax + 0x64], 1
mov byte [eax + 0x65], bl
mov dword [eax + 0x68], ebx
mov dword [eax + 0x6c], 0x258
mov dword [eax + 0x70], ebx
mov dword [eax + 0x74], ebx
jmp 0x408158
xor eax, eax
push 0x20
mov dword [ebp + 0x154], eax
call fcn.0061c130
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
cmp edi, ebx
mov byte [esp + 0x64], 8
je 0x4081b6
push 0x10
push str.Arial_Unicode_MS
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404330
push ebx
push ebx
push 1
lea ecx, [esp + 0x30]
push ecx
mov edx, 0xa
mov eax, edi
mov dword [esp + 0x30], 1
call fcn.00599c30
jmp 0x4081b8
xor eax, eax
mov byte [esp + 0x64], 6
test byte [esp + 0x20], 1
mov dword [ebp + 0x158], eax
je 0x4081de
cmp dword [esp + 0x3c], 0x10
jb 0x4081de
mov edx, dword [esp + 0x28]
push edx
call fcn.0061c19a
add esp, 4
push 0x31c
call fcn.0061c130
mov edx, eax
add esp, 4
cmp edx, ebx
je 0x40822f
mov eax, dword [ebp + 0x8c]
mov dword [edx], eax
lea edi, [edx + 0x90]
mov ecx, 0x80
xor eax, eax
mov dword [edx + 0x88], ebx
mov byte [edx + 4], bl
mov dword [edx + 0x8c], ebx
mov byte [edx + 0x298], bl
mov dword [edx + 0x318], ebx
mov dword [edx + 0x294], 0x64
rep stosd dword es:[edi], eax
jmp 0x408231
xor edx, edx
push 0xbc
mov dword [ebp + 0x140], edx
mov dword [ebp + 0x554c], ebx
mov dword [ebp + 0x5568], ebx
mov dword [ebp + 0x5584], ebx
mov dword [ebp + 0x558c], esi
mov dword [ebp + 0x5588], ebx
call fcn.0061c130
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, ebx
mov byte [esp + 0x64], 9
je 0x408278
mov edi, eax
call fcn.0041f1b0
jmp 0x40827a
xor eax, eax
mov byte [esp + 0x64], 6
push 0x130
mov dword [ebp + 0x160], eax
mov byte [ebp + 0x41], bl
mov dword [ebp + 0x55f8], ebx
call fcn.0061c130
add esp, 4
cmp eax, ebx
je 0x4082a9
push ebx
mov esi, eax
call fcn.00447c60
jmp 0x4082ab
xor eax, eax
mov dword [ebp + 0x148], eax
mov byte [eax + 0x118], 1
mov ecx, dword [ebp + 0x8c]
mov dword [ebp + 0x14c], ebx
mov byte [ebp + 0x150], bl
mov eax, dword [ecx + 0x7f8]
cmp eax, 0x2b
je 0x408385
cmp eax, 0x32
je 0x408385
push 0xd
push str._MENU_BUTTON_
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404330
mov byte [esp + 0x64], 0xc
mov esi, dword [ebp + 0x148]
lea edx, [esp + 0x24]
lea edi, [esp + 0x40]
call fcn.00519520
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x80]
mov byte [esp + 0x70], 0xd
call fcn.00403e20
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x408346
mov edx, dword [esp + 0x44]
push edx
call fcn.0061c19a
add esp, 4
mov byte [esp + 0x64], 6
cmp dword [esp + 0x3c], esi
jb 0x40835e
mov eax, dword [esp + 0x28]
push eax
call fcn.0061c19a
add esp, 4
mov eax, dword [ebp + 0x148]
mov dword [eax + 8], 0x2a9
mov dword [eax + 0xc], 0xfffffff6
mov dword [eax + 0x10], 0x75
mov dword [eax + 0x14], 0x2e
jmp 0x4084a6
push 0x12
push str._MAIN_MENU_BUTTON_
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404330
mov byte [esp + 0x64], 0xa
mov esi, dword [ebp + 0x148]
lea edx, [esp + 0x24]
lea edi, [esp + 0x40]
call fcn.00519520
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x80]
mov byte [esp + 0x70], 0xb
call fcn.00403e20
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x4083e9
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0061c19a
add esp, 4
mov byte [esp + 0x64], 6
cmp dword [esp + 0x3c], esi
jb 0x408401
mov edx, dword [esp + 0x28]
push edx
call fcn.0061c19a
add esp, 4
mov eax, dword [ebp + 0x148]
push 0x130
mov dword [eax + 8], 0x274
mov dword [eax + 0xc], 0xfffffff6
mov dword [eax + 0x10], 0xa3
mov dword [eax + 0x14], 0x2e
call fcn.0061c130
add esp, 4
cmp eax, ebx
je 0x40843f
push 1
mov esi, eax
call fcn.00447c60
jmp 0x408441
xor eax, eax
mov dword [ebp + 0x14c], eax
mov ecx, dword [0x6a7abc]
mov dword [eax + 0xa4], ecx
mov edx, dword [ebp + 0x14c]
mov eax, dword [0x6a7a5c]
mov dword [edx + 0xa8], eax
mov ecx, dword [ebp + 0x14c]
mov edx, dword [0x6a7a5c]
mov dword [ecx + 0xac], edx
mov eax, dword [ebp + 0x14c]
mov dword [eax + 4], ebp
mov ecx, dword [0x6a72e0]
mov ecx, dword [ecx + 0x24]
mov eax, dword [ebp + 0x14c]
mov dword [eax + 8], 0x2a6
mov dword [eax + 0xc], 0x21
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0x28
mov edx, dword [ebp + 0x8c]
cmp dword [edx + 0x7f8], 0x1f
jne 0x4084f7
push 0x130
call fcn.0061c130
add esp, 4
cmp eax, ebx
je 0x4084d1
push 1
mov esi, eax
call fcn.00447c60
jmp 0x4084d3
xor eax, eax
mov dword [ebp + 0x14c], eax
mov byte [eax + 0x118], 1
mov eax, dword [ebp + 0x14c]
mov byte [eax + 0xf9], 1
mov ecx, dword [ebp + 0x14c]
mov byte [ecx + 0x1a], 1
mov edx, dword [ebp + 0x8c]
cmp dword [edx + 0x7f8], 0x47
jne 0x408657
push 0x12
push str._MAIN_MENU_BUTTON_
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404330
mov byte [esp + 0x64], 0xe
mov esi, dword [ebp + 0x148]
lea edx, [esp + 0x24]
lea edi, [esp + 0x40]
call fcn.00519520
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x80]
mov byte [esp + 0x70], 0xf
call fcn.00403e20
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x40856e
mov eax, dword [esp + 0x44]
push eax
call fcn.0061c19a
add esp, 4
mov byte [esp + 0x64], 6
cmp dword [esp + 0x3c], esi
jb 0x408586
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0061c19a
add esp, 4
mov eax, dword [ebp + 0x148]
push 0x130
mov dword [eax + 8], 0x274
mov dword [eax + 0xc], 0xfffffff6
mov dword [eax + 0x10], 0xa3
mov dword [eax + 0x14], 0x2e
call fcn.0061c130
add esp, 4
cmp eax, ebx
je 0x4085c4
push 1
mov esi, eax
call fcn.00447c60
jmp 0x4085c6
xor eax, eax
mov dword [ebp + 0x14c], eax
mov byte [eax + 0x118], 1
mov edx, dword [ebp + 0x14c]
push 0x19
push str._GET_FULL_VERSION_BUTTON_
lea ecx, [esp + 0x2c]
mov byte [edx + 0xf9], 1
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.00404330
mov byte [esp + 0x64], 0x10
mov esi, dword [ebp + 0x14c]
lea edx, [esp + 0x24]
lea edi, [esp + 0x40]
call fcn.00519520
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 0x80]
mov byte [esp + 0x70], 0x11
call fcn.00403e20
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x408644
mov eax, dword [esp + 0x44]
push eax
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x3c], esi
jb 0x408657
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0061c19a
add esp, 4
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
pop ebx
jmp 0x794090