Function at 0x4052d2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [ebp + 0x10]
and eax, 0xffff
movzx eax, ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0x27
jg 0x4053c8
cmp dword [ebp - 0xdc], 0x27
je 0x405a64
cmp dword [ebp - 0xdc], 0xf
jg 0x405368
cmp dword [ebp - 0xdc], 0xf
je 0x4059e9
cmp dword [ebp - 0xdc], 4
je 0x4054bd
cmp dword [ebp - 0xdc], 7
je 0x40596d
cmp dword [ebp - 0xdc], 8
je 0x405a19
cmp dword [ebp - 0xdc], 0xc
je 0x405ac3
cmp dword [ebp - 0xdc], 0xe
je 0x405b11
jmp 0x4060c4
cmp dword [ebp - 0xdc], 0x10
jl 0x4060c4
cmp dword [ebp - 0xdc], 0x19
jle 0x405b65
cmp dword [ebp - 0xdc], 0x19
jle 0x4060c4
cmp dword [ebp - 0xdc], 0x23
jle 0x405b81
cmp dword [ebp - 0xdc], 0x24
je 0x40549d
cmp dword [ebp - 0xdc], 0x25
je 0x40595f
cmp dword [ebp - 0xdc], 0x26
je 0x405a36
jmp 0x4060c4
cmp dword [ebp - 0xdc], 0x9c48
jg 0x405437
cmp dword [ebp - 0xdc], 0x9c48
je 0x405b25
cmp dword [ebp - 0xdc], 0x28
je 0x405a95
cmp dword [ebp - 0xdc], 0x29
je 0x405b1b
cmp dword [ebp - 0xdc], 0x29
jle 0x4060c4
cmp dword [ebp - 0xdc], 0x39
jle 0x405b9d
cmp dword [ebp - 0xdc], 0x3c
je 0x4055ad
cmp dword [ebp - 0xdc], 0x3d
je 0x405897
jmp 0x4060c4
cmp dword [ebp - 0xdc], 0x9c49
je 0x4054d1
cmp dword [ebp - 0xdc], 0x9c4e
je 0x405580
cmp dword [ebp - 0xdc], 0x9c5b
je 0x40547e
cmp dword [ebp - 0xdc], 0x9c5d
je 0x405490
jmp 0x4060c4
push 1
call fcn.0040e101
pop ecx
call fcn.004010a0
jmp 0x4060c4
push 0
call fcn.0040e101
pop ecx
jmp 0x4060c4
push 0
push 0x40c8a5
push dword [ebp + 8]
push 0x258
push dword [0x498180]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x4060c4
push 0
push 0
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4060c4
push dword [0x49812c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4054fe
push 0
push 0x40c1fa
push dword [ebp + 8]
push 0x79
push dword [0x498180]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x49812c], eax
cmp dword [0x49812c], 0
je 0x40557b
lea eax, [ebp - 0x28]
push eax
push dword [0x49812c]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x18]
push eax
push dword [0x4981c8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x18]
add eax, 0xf
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
add eax, 0xf
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push dword [0x4981c8]
call dword [sym.imp.USER32.dll_ClientToScreen]
push 1
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push 0
push dword [0x49812c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [0x49812c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4060c4
cmp dword [0x497f10], 1
jne 0x405595
mov dword [0x4986bc], 1
jmp 0x4055a8
push str.Its_not_the_preview_mode__can_not_take_pictures_
call fcn.004060ca
pop ecx
or eax, 0xffffffff
jmp 0x4060c6
jmp 0x4060c4
cmp dword [0x497f10], 1
jne 0x40587f
call fcn.0040c8de
test eax, eax
jne 0x405709
push dword [0x498110]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4055f4
push 0
push 0x40c1c1
push dword [ebp + 8]
push 0x77
push dword [0x498180]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x498110], eax
cmp dword [0x498110], 0
je 0x405665
push str.Photo_processing__please_wait...
push 0x3f7
push dword [0x498110]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 1
push dword [0x498110]
call dword [sym.imp.USER32.dll_ShowWindow]
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ClientToScreen]
push 5
push 0
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 0xfffffffffffffffe
push dword [0x498110]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0x3e8
push 3
push dword [0x4981c8]
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
push 0x47d860
push 1
push dword [0x497eec]
mov eax, dword [0x497ecc]
mov eax, dword [eax]
push dword [0x497ecc]
call dword [eax + 0x2c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x4056e5
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
push 0x47ccd0
mov eax, dword [0x497eec]
mov eax, dword [eax]
push dword [0x497eec]
call dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x4056e3
push 8
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
push dword [ebp - 0x40]
call dword [eax + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [ebp - 0x34]
call dword [eax + 8]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
push dword [ebp - 0x40]
call dword [eax + 8]
jmp 0x405704
push 0
push 0xfffffffffffffff6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClassLongW]
call fcn.004072a8
push 6
push 0xfffffffffffffff6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClassLongW]
jmp 0x40587d
cmp dword [0x4981f0], 0
jne 0x405721
push 0x4981ec
push dword [ebp + 8]
call fcn.0040e22a
pop ecx
pop ecx
and dword [ebp - 0x44], 0
mov eax, dword [0x4981f0]
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0x300
jg 0x4057a6
cmp dword [ebp - 0xe0], 0x300
je 0x405826
cmp dword [ebp - 0xe0], 0x78
je 0x4057f0
cmp dword [ebp - 0xe0], 0x90
je 0x4057f9
cmp dword [ebp - 0xe0], 0xf0
je 0x405802
cmp dword [ebp - 0xe0], 0x120
je 0x40580b
cmp dword [ebp - 0xe0], 0x1e0
je 0x405814
cmp dword [ebp - 0xe0], 0x258
je 0x40581d
jmp 0x405865
cmp dword [ebp - 0xe0], 0x3c0
je 0x40582f
cmp dword [ebp - 0xe0], 0x400
je 0x405838
cmp dword [ebp - 0xe0], 0x4b0
je 0x405841
cmp dword [ebp - 0xe0], 0x6c0
je 0x40584a
cmp dword [ebp - 0xe0], 0x800
je 0x405853
cmp dword [ebp - 0xe0], 0x960
je 0x40585c
jmp 0x405865
mov dword [ebp - 0x44], 1
jmp 0x40586c
mov dword [ebp - 0x44], 2
jmp 0x40586c
mov dword [ebp - 0x44], 3
jmp 0x40586c
mov dword [ebp - 0x44], 4
jmp 0x40586c
mov dword [ebp - 0x44], 5
jmp 0x40586c
mov dword [ebp - 0x44], 6
jmp 0x40586c
mov dword [ebp - 0x44], 7
jmp 0x40586c
mov dword [ebp - 0x44], 8
jmp 0x40586c
mov dword [ebp - 0x44], 9
jmp 0x40586c
mov dword [ebp - 0x44], 0xa
jmp 0x40586c
mov dword [ebp - 0x44], 0xb
jmp 0x40586c
mov dword [ebp - 0x44], 0xc
jmp 0x40586c
mov dword [ebp - 0x44], 0xd
jmp 0x40586c
mov dword [ebp - 0x44], 5
push dword [ebp - 0x44]
push 2
call fcn.0040c70e
pop ecx
pop ecx
call fcn.0040c7f4
jmp 0x405892
push str.Its_not_the_preview_mode__can_not_take_pictures_
call fcn.004060ca
pop ecx
or eax, 0xffffffff
jmp 0x4060c6
jmp 0x4060c4
push dword [0x498148]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4058c4
push 0
push 0x4090cb
push dword [ebp + 8]
push 0x69
push dword [0x498180]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x498148], eax
cmp dword [0x498148], 0
je 0x40595a
push 0
push 0
push 0x110
push dword [0x498148]
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x64]
push eax
push dword [0x498148]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x54]
push eax
push dword [0x4981c8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x54]
add eax, 0xf
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x50]
add eax, 0x3c
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x4981c8]
call dword [sym.imp.USER32.dll_ClientToScreen]
push 1
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x64]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push 0
push dword [0x498148]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [0x498148]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4060c4
push dword [ebp + 8]
call fcn.004065c3
pop ecx
jmp 0x4060c4
cmp dword [0x497f10], 0
je 0x40597b
call fcn.00403ed5
cmp dword [0x497f08], 0
je 0x405989
call fcn.00402bfe
push 1
push 0x104
push 0x4981f8
push dword [ebp + 8]
call fcn.0040d7f7
add esp, 0x10
test eax, eax
jne 0x4059bc
cmp dword [0x497f80], 0
je 0x4059bc
call fcn.004037fa
call fcn.00403d73
jmp 0x4060c4
call fcn.0040331a
test eax, eax
jne 0x4059da
cmp dword [0x497f80], 0
je 0x4059d8
call fcn.004037fa
call fcn.00403d73
jmp 0x4059e4
call fcn.00403f59
call fcn.0040e06a
jmp 0x4060c4
xor eax, eax
cmp dword [0x497f80], 0
sete al
mov dword [0x497f80], eax
cmp dword [0x497f80], 0
je 0x405a0f
call fcn.004037fa
call fcn.00403d73
jmp 0x405a14
call fcn.00403ed5
jmp 0x4060c4
call fcn.004041ab
cmp dword [0x497f80], 0
je 0x405a31
call fcn.004037fa
call fcn.00403d73
jmp 0x4060c4
or dword [0x497f00], 0xffffffff
cmp dword [0x497efc], 0
je 0x405a5f
push dword [0x497f00]
mov eax, dword [0x497efc]
mov eax, dword [eax]
push dword [0x497efc]
call dword [eax + 0xc]
mov dword [ebp - 8], eax
jmp 0x4060c4
mov dword [0x497f00], 1
cmp dword [0x497efc], 0
je 0x405a90
push dword [0x497f00]
mov eax, dword [0x497efc]
mov eax, dword [eax]
push dword [0x497efc]
call dword [eax + 0xc]
mov dword [ebp - 8], eax
jmp 0x4060c4
and dword [0x497f00], 0
cmp dword [0x497efc], 0
je 0x405abe
push dword [0x497f00]
mov eax, dword [0x497efc]
mov eax, dword [eax]
push dword [0x497efc]
call dword [eax + 0xc]
mov dword [ebp - 8], eax
jmp 0x4060c4
cmp dword [0x497f10], 0
je 0x405ad1
call fcn.00403ed5
xor eax, eax
cmp dword [0x497f14], 0
sete al
mov dword [0x497f14], eax
cmp dword [0x497f04], 0
jne 0x405af4
cmp dword [0x497f08], 0
je 0x405af9
call fcn.00402bfe
cmp dword [0x497f80], 0
je 0x405b0c
call fcn.004037fa
call fcn.00403d73
jmp 0x4060c4
call fcn.0040527b
jmp 0x4060c4
call fcn.004052b3
jmp 0x4060c4
push dword [0x498140]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x405b52
push 0
push 0x40bbe2
push dword [ebp + 8]
push 0x76
push dword [0x498180]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x498140], eax
push 5
push dword [0x498140]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4060c4
push dword [0x497f74]
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x497ee0]
call fcn.0040496e
pop ecx
pop ecx
jmp 0x4060c4
mov eax, dword [ebp - 4]
push dword [eax*4 + 0x497ee0]
push dword [0x497f70]
call fcn.0040496e
pop ecx
pop ecx
jmp 0x4060c4
mov eax, dword [ebp - 4]
sub eax, 0x2a
cmp eax, dword [0x498088]
jne 0x405c1f
lea eax, [ebp - 0x70]
push eax
push 0x4862c8
mov eax, dword [0x497eec]
mov eax, dword [eax]
push dword [0x497eec]
call dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405c1a
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
push dword [ebp - 0x70]
call dword [eax + 0xc]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push 0x497eec
push 1
push 0
push 0x1e
push 0x1e
push dword [0x4981c8]
call dword [sym.imp.OLEPRO32.DLL_OleCreatePropertyFrame]
mov dword [ebp - 8], eax
push dword [ebp - 0x74]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
push dword [ebp - 0x70]
call dword [eax + 8]
jmp 0x4060c4
mov eax, dword [ebp - 4]
sub eax, 0x2a
cmp eax, dword [0x498090]
jne 0x405da3
cmp dword [0x497f80], 0
je 0x405c3f
call fcn.00403ed5
cmp dword [0x497f04], 0
jne 0x405c51
cmp dword [0x497f08], 0
je 0x405c56
call fcn.00402bfe
lea eax, [ebp - 0x7c]
push eax
push 0x47cd90
push dword [0x497eec]
push 0x47ecc0
push 0x47d8f0
mov eax, dword [0x497ecc]
mov eax, dword [eax]
push dword [0x497ecc]
call dword [eax + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x80]
push eax
push 0x4862c8
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
push dword [ebp - 0x7c]
call dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405d80
lea eax, [ebp - 0x88]
push eax
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
push dword [ebp - 0x80]
call dword [eax + 0xc]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push dword [ebp - 0x84]
push dword [ebp - 0x88]
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push 0x1e
push 0x1e
push dword [0x4981c8]
call dword [sym.imp.OLEPRO32.DLL_OleCreatePropertyFrame]
mov dword [ebp - 8], eax
cmp dword [0x497ee4], 0
je 0x405d69
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [0x497ee4]
mov eax, dword [eax]
push dword [0x497ee4]
call dword [eax + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405d69
mov eax, dword [ebp - 0x8c]
add eax, 0x2c
mov dword [ebp - 0xd8], eax
push 0x10
push 0x47e0b0
push dword [ebp - 0xd8]
call fcn.0044bd91
add esp, 0xc
neg eax
sbb eax, eax
inc eax
je 0x405d5e
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + 0x44]
push dword [eax + 0x38]
call fcn.0045062e
pop ecx
push eax
mov eax, dword [ebp - 0x8c]
mov eax, dword [eax + 0x44]
push dword [eax + 0x34]
call fcn.004028ff
pop ecx
pop ecx
push dword [ebp - 0x8c]
call fcn.004179e0
push dword [ebp - 0x84]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
push dword [ebp - 0x80]
call dword [eax + 8]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
push dword [ebp - 0x7c]
call dword [eax + 8]
cmp dword [0x497f80], 0
je 0x405d9e
call fcn.004037fa
call fcn.00403d73
jmp 0x4060c4
mov eax, dword [ebp - 4]
sub eax, 0x2a
cmp eax, dword [0x49808c]
jne 0x405e44
lea eax, [ebp - 0x90]
push eax
push 0x4862c8
mov eax, dword [0x497ef0]
mov eax, dword [eax]
push dword [0x497ef0]
call dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405e3f
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
push dword [ebp - 0x90]
call dword [eax + 0xc]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push 0x497ef0
push 1
push 0
push 0x1e
push 0x1e
push dword [0x4981c8]
call dword [sym.imp.OLEPRO32.DLL_OleCreatePropertyFrame]
mov dword [ebp - 8], eax
push dword [ebp - 0x94]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
push dword [ebp - 0x90]
call dword [eax + 8]
jmp 0x4060c4
mov eax, dword [ebp - 4]
sub eax, 0x2a
cmp eax, dword [0x498094]
jne 0x405f44
cmp dword [0x497f80], 0
je 0x405e64
call fcn.00403ed5
lea eax, [ebp - 0x9c]
push eax
push 0x47cd90
push dword [0x497ef0]
push 0x47ecb0
push 0x47d8f0
mov eax, dword [0x497ecc]
mov eax, dword [eax]
push dword [0x497ecc]
call dword [eax + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xa0]
push eax
push 0x4862c8
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax]
push dword [ebp - 0x9c]
call dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405f20
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
push dword [ebp - 0xa0]
call dword [eax + 0xc]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
lea eax, [ebp - 0x9c]
push eax
push 1
push 0
push 0x1e
push 0x1e
push dword [0x4981c8]
call dword [sym.imp.OLEPRO32.DLL_OleCreatePropertyFrame]
mov dword [ebp - 8], eax
push dword [ebp - 0xa4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
push dword [ebp - 0xa0]
call dword [eax + 8]
mov eax, dword [ebp - 0x9c]
mov eax, dword [eax]
push dword [ebp - 0x9c]
call dword [eax + 8]
cmp dword [0x497f80], 0
je 0x405f3f
call fcn.00403d73
jmp 0x4060c4
mov eax, dword [ebp - 4]
sub eax, 0x2a
cmp eax, dword [0x49810c]
jne 0x406030
push dword [0x498114]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x406014
push 0
push 0x40c312
push dword [ebp + 8]
push 0x7a
push dword [0x498180]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [0x498114], eax
lea eax, [ebp - 0xc8]
push eax
push dword [0x498114]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0xb8]
push eax
push dword [0x4981c8]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xb8]
add eax, 0xf
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xb4]
add eax, 0xf
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xd0]
push eax
push dword [0x4981c8]
call dword [sym.imp.USER32.dll_ClientToScreen]
push 1
mov eax, dword [ebp - 0xbc]
sub eax, dword [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0xc8]
push eax
push dword [ebp - 0xcc]
push dword [ebp - 0xd0]
push 0
push dword [0x498114]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [0x498114], 0
je 0x40602b
push 1
push dword [0x498114]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4060c4
mov eax, dword [ebp - 4]
sub eax, 0x2a
cmp eax, dword [0x4980a4]
jle 0x4060c4
mov eax, dword [ebp - 4]
sub eax, 0x2a
mov ecx, dword [0x4980a4]
add ecx, dword [0x4980a8]
cmp eax, ecx
jg 0x4060c4
and dword [ebp - 0xd4], 0
jmp 0x40606e
mov eax, dword [ebp - 0xd4]
inc eax
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
cmp eax, dword [0x4980a8]
jge 0x4060c4
mov eax, dword [ebp - 4]
sub eax, 0x2a
sub eax, dword [0x4980a4]
dec eax
cmp dword [ebp - 0xd4], eax
jne 0x40609d
mov dword [ebp - 0xe4], 8
jmp 0x4060a4
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xe4]
or eax, 0x400
push eax
push dword [ebp - 0xd4]
push dword [0x4980ac]
call dword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x406061
xor eax, eax
leave
ret 0x10