Function at 0x556eb0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x5b00cc]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [0x5f4464], edi
mov dword [0x5f4468], esi
mov dword [0x5f446c], eax
mov dword [0x5f4470], ebx
call dword [sym.imp.USER32.dll_GetMessageTime]
mov dword [0x5f4474], eax
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edx, dword [esp + 0x14]
mov dword [esp + 0xc], eax
shr eax, 0x10
movsx eax, ax
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov dword [0x5f4478], eax
push edi
mov ecx, ebx
mov eax, esi
call fcn.00556ab0
add esp, 8
test eax, eax
jne 0x556f42
cmp dword [0x5f526c], esi
jne 0x556f5c
call fcn.0052c850
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
cmp esi, 0x102
ja 0x55762c
je 0x557565
lea eax, [esi - 2]
cmp eax, 0x9e
ja case.0x557656.279
movzx eax, byte [eax + 0x557dd8]
jmp dword [eax*4 + 0x557d94]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 5
jb case.0x557656.279
push 0
push 0x10002
push 0x127
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
call fcn.00404170
mov ecx, dword [esp + 0x14]
neg al
sbb eax, eax
neg eax
mov dword [ecx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
push edi
call fcn.00559c90
add esp, 4
test al, al
je case.0x557656.279
mov edx, dword [esp + 0x14]
push 0
mov dword [edx], 4
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
xor esi, esi
mov byte [0x5b148c], 1
call fcn.0041a660
mov esi, eax
test esi, esi
je 0x557066
mov eax, dword [esp + 0x10]
test ax, ax
jne 0x557052
mov eax, dword [esi]
mov edx, dword [eax + 0x90]
jmp 0x557062
shr eax, 0x10
test ax, ax
jne 0x557066
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
mov ecx, esi
call edx
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [eax], 0
je 0x5570a7
cmp byte [esi + 0x50], 0
jne 0x5570a7
call fcn.0055ade0
test eax, eax
mov byte [esp + 0xc], 0
je 0x557098
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1ec]
call eax
mov byte [esp + 0xc], al
mov ecx, dword [esp + 0xc]
push ecx
xor eax, eax
call fcn.004fd8d0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], 0
je 0x5570e4
call fcn.004fe390
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
xor esi, esi
call fcn.0041a660
test eax, eax
je case.0x557656.279
cmp byte [eax + 0x50], 0
jne case.0x557656.279
call fcn.004fe3d0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0055af30
mov esi, eax
test esi, esi
je case.0x557656.279
lea edx, [esp + 0x40]
push edx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esi + 0xa9], 0
je 0x557147
mov eax, dword [esi + 0xac]
jmp 0x55714f
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
lea eax, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x14]
mov dword [edx], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
xor esi, esi
call fcn.0041a660
test eax, eax
je 0x5571ab
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xec]
call eax
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
xor esi, esi
call fcn.0041a660
test eax, eax
mov dword [esp + 0xc], eax
je case.0x557656.279
call fcn.00556e10
mov edx, dword [esp + 0xc]
movsx esi, bx
shr ebx, 0x10
movsx ebx, bx
sub ebx, dword [edx + 0x118]
cmp esi, 0xffffffff
mov byte [0x5f49a2], 0
jne 0x557236
cmp ebx, esi
jne 0x557236
call dword [sym.imp.USER32.dll_GetFocus]
xor ecx, ecx
cmp eax, ecx
je 0x557236
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
lea edx, [esp + 0x18]
push edx
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1dc]
push edx
mov edx, dword [esp + 0x1c]
push edx
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
xor esi, esi
call fcn.0041a660
test eax, eax
je case.0x557656.279
mov edx, dword [eax]
push 0xffffffffffffffff
mov ecx, eax
mov eax, dword [edx + 0x38]
push 0xffffffffffffffff
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
cmp byte [0x5b148c], 0
je case.0x557656.279
xor esi, esi
call fcn.0041a660
mov esi, eax
test esi, esi
je case.0x557656.279
call fcn.0055c0e0
mov edx, dword [esi]
mov eax, dword [edx + 0x204]
mov ecx, esi
call eax
cmp dword [0x5f49b4], 0
je case.0x557656.279
call fcn.0049caf0
test al, al
je case.0x557656.279
mov esi, dword [0x5f49b4]
test esi, esi
je case.0x557656.279
mov ebx, dword [esi + 0x10]
call fcn.0049c4a0
mov esi, dword [esi]
test esi, esi
jne 0x557303
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp byte [0x5b148c], bl
je case.0x557656.279
xor esi, esi
call fcn.0041a660
mov esi, eax
cmp esi, ebx
je case.0x557656.279
cmp byte [esi + 0x50], bl
jne case.0x557656.279
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x557368
mov edx, dword [esi]
mov byte [0x5f59b4], al
mov eax, dword [edx + 0x220]
jmp 0x55739f
cmp eax, 2
jne 0x55737e
mov edx, dword [esi]
mov eax, dword [edx + 0x224]
mov byte [0x5f59b4], 1
jmp 0x557398
cmp byte [0x5f59b4], bl
je 0x5573a3
cmp eax, ebx
jne 0x5573a3
mov edx, dword [esi]
mov eax, dword [edx + 0x228]
mov byte [0x5f59b4], bl
mov byte [0x5f59ae], 1
mov ecx, esi
call eax
cmp byte [esi + 0x50], bl
jne case.0x557656.279
call fcn.0055c0e0
cmp byte [0x5f59ae], bl
je 0x5573e2
mov edx, dword [esi]
mov eax, dword [edx + 0x214]
mov ecx, esi
mov byte [0x5f59ae], bl
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x68]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne case.0x557656.279
cmp byte [0x5f59ac], bl
mov ecx, esi
je 0x55743b
lea ebx, [esp + 0x18]
mov byte [0x5f59ad], 1
call fcn.0055bf10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x208]
push eax
push ecx
mov ecx, esi
call edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov edx, dword [eax + 0x214]
call edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
xor esi, esi
call fcn.0041a660
test eax, eax
je case.0x557656.279
cmp byte [eax + 0x50], 0
jne case.0x557656.279
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x21c]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
xor esi, esi
call fcn.0041a660
test eax, eax
je 0x5574af
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x21c]
call eax
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
cmp bx, 1
jne case.0x557656.279
xor esi, esi
call fcn.0041a660
mov edi, eax
test edi, edi
je case.0x557656.279
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
movsx eax, word [esp + 0xc]
push 0x7f00
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00564920
add esp, 0xc
test al, al
je case.0x557656.279
mov ecx, dword [esp + 0x14]
mov dword [ecx], 1
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
cmp eax, 0x30
je case.0x556f83.126
cmp eax, 0x2f
jne case.0x557656.279
call fcn.0050cf50
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
cmp eax, 8
je case.0x557656.279
cmp eax, 0xd
je case.0x557656.279
mov ebx, dword [0x5f3a68]
xor esi, esi
call fcn.0041a660
test ebx, ebx
mov esi, eax
je 0x5575e5
cmp ebx, esi
je 0x5575e5
movzx eax, word [0x5f49b0]
mov edi, dword [esp + 0x10]
cmp edi, 0xff
mov edx, dword [ebx]
push eax
push 0
mov ecx, ebx
push edi
jbe 0x5575dd
mov edx, dword [edx + 0xd4]
call edx
test al, al
je 0x5575e9
mov eax, dword [esp + 0x14]
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov edx, dword [edx + 0xcc]
jmp 0x5575b3
mov edi, dword [esp + 0x10]
test esi, esi
je case.0x557656.279
cmp edi, 0xff
movzx eax, word [0x5f49b0]
mov edx, dword [esi]
push eax
push 0
mov ecx, esi
push edi
jbe 0x55761a
mov edx, dword [edx + 0xd4]
call edx
test al, al
je case.0x557656.279
jmp 0x5575b9
mov edx, dword [edx + 0xcc]
call edx
test al, al
je case.0x557656.279
jmp 0x5575b9
cmp esi, 0x222
ja 0x557b71
je 0x557a88
lea eax, [esi - 0x116]
cmp eax, 0xfe
ja case.0x557656.279
movzx ecx, byte [eax + 0x557ea0]
jmp dword [ecx*4 + 0x557e78]
xor esi, esi
call fcn.0041a660
test eax, eax
je case.0x557656.279
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xf4]
push esi
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
push str.RBInstance
push ebx
call dword [sym.imp.USER32.dll_GetPropA]
push 0xfe
lea ecx, [esp + 0x55]
push 0
push ecx
mov edi, eax
mov byte [esp + 0x5c], 0
call fcn.0056b660
add esp, 0xc
push 0xff
lea edx, [esp + 0x54]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
mov eax, str.STATIC
lea ebx, [esp + 0x2c]
call fcn.00401ed0
mov esi, eax
lea eax, [esp + 0x50]
lea ebx, [esp + 0x28]
call fcn.00401ed0
mov ecx, esi
call fcn.004acb80
mov esi, dword [esp + 0x28]
test eax, eax
sete bl
test esi, esi
je 0x5576fe
call fcn.004ab850
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x55770b
call fcn.004ab850
test bl, bl
jne case.0x557656.279
test edi, edi
je case.0x557656.279
mov eax, dword [edi]
mov edx, dword [eax + 0x198]
mov ecx, edi
call edx
test al, al
jne case.0x557656.279
mov eax, dword [edi]
mov edx, dword [eax + 0x7c]
mov ecx, edi
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call edx
test al, al
jne 0x557767
mov ecx, edi
call fcn.0051d0d0
cmp byte [eax + 0xa9], bl
je case.0x557656.279
mov eax, dword [eax + 0xac]
mov dword [esp + 0xc], eax
mov eax, dword [0x5f59b0]
test eax, eax
je 0x557777
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov edx, dword [esp + 0x10]
push eax
push edx
mov dword [0x5f59b0], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x5f59b0]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
call fcn.0055ade0
test eax, eax
mov byte [esp + 0xc], 0
je 0x5577cb
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1ec]
call eax
mov byte [esp + 0xc], al
mov ecx, dword [esp + 0xc]
push ecx
xor eax, eax
call fcn.004fd8d0
jmp 0x557d78
xor esi, esi
call fcn.0041a660
mov esi, eax
test esi, esi
je 0x557867
call fcn.00556e10
cmp dword [ebp + 8], 0x201
mov byte [0x5f49a2], 0
jne 0x557843
movsx eax, word [0x5f49b0]
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
push eax
mov ecx, ebx
shr ecx, 0x10
movsx eax, cx
sub eax, dword [esi + 0x118]
movsx ecx, bx
push eax
push ecx
mov ecx, esi
call edx
mov ecx, dword [esp + 0x14]
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
movsx ecx, word [0x5f49b0]
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
push ecx
mov edx, ebx
shr edx, 0x10
movsx ecx, dx
sub ecx, dword [esi + 0x118]
movsx edx, bx
push ecx
push edx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x14]
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov esi, dword [0x5f3a64]
test esi, esi
je case.0x557656.279
call fcn.004feca0
mov ecx, esi
call fcn.0051d0d0
test eax, eax
je case.0x557656.279
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
mov ecx, ebx
shr ecx, 0x10
movsx ecx, cx
sub ecx, dword [eax + 0x118]
movsx eax, bx
push ecx
push eax
mov ecx, esi
call edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
cmp byte [0x5f4d59], 0
je case.0x557656.279
cmp dword [0x5f3a64], 0
jne case.0x557656.279
xor esi, esi
call fcn.0041a660
mov esi, eax
test esi, esi
je case.0x557656.279
movsx eax, word [esp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
sub eax, dword [esi + 0x118]
lea ecx, [esp + 0x20]
push ecx
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
push eax
push ecx
mov ecx, esi
call edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
cmp byte [0x5b148c], 0
je case.0x557656.279
xor esi, esi
call fcn.0041a660
test eax, eax
je case.0x557656.279
mov ecx, dword [esp + 0x10]
push ecx
mov esi, ebx
call fcn.00559a30
jmp 0x557d78
call fcn.0049c440
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
cmp dword [0x5f4ccc], 0x20a
je case.0x557656.279
xor esi, esi
call fcn.0041a660
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0x68
mov esi, eax
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edi, dword [esp + 0xc]
test edi, edi
je case.0x557656.279
mov eax, dword [esp + 0x10]
shr eax, 0x10
neg eax
movsx ecx, ax
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, edi
movzx ecx, bx
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x68]
lea edx, [esp + 0x18]
shr ebx, 0x10
sub ebx, dword [esi + 0x118]
push edx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x18]
test eax, eax
jl case.0x557656.279
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jl case.0x557656.279
cmp eax, dword [esi + 0x1c]
jg case.0x557656.279
cmp ecx, dword [esi + 0x20]
jg case.0x557656.279
mov edi, dword [esp + 0xc]
mov edx, dword [esi]
push edi
push 0
push ecx
push eax
mov eax, dword [edx + 0x1b0]
mov ecx, esi
call eax
test al, al
je case.0x557656.279
mov ecx, dword [esp + 0x14]
mov dword [ecx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
xor esi, esi
call fcn.0041a660
test eax, eax
je case.0x557656.279
cmp ebx, edi
jne 0x557b44
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x8c]
call eax
mov eax, dword [0x5f49bc]
test eax, eax
je case.0x557656.279
cmp dword [eax + 0x68], edi
je 0x557adc
mov eax, dword [eax + 0x134]
test eax, eax
jne 0x557ab8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
test eax, eax
je case.0x557656.279
mov ecx, dword [eax + 0x130]
mov esi, dword [ecx + 0x94]
test esi, esi
je case.0x557656.279
mov edx, dword [0x5f4d68]
push edx
call dword [sym.imp.USER32.dll_GetMenu]
mov ecx, dword [esi + 0x2c]
mov ecx, dword [ecx + 0x58]
cmp eax, ecx
je case.0x557656.279
mov edx, dword [0x5f4d68]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetMenu]
mov eax, dword [0x5f4d68]
push eax
call dword [sym.imp.USER32.dll_DrawMenuBar]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x10], edi
jne case.0x557656.279
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x90]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
cmp esi, 0x30f
ja 0x557cb3
je 0x557c72
sub esi, 0x231
je 0x557c54
sub esi, 1
je 0x557c08
sub esi, 0x54
jne case.0x557656.279
mov ecx, dword [0x5f3a68]
test ecx, ecx
je 0x557bcf
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
mov edx, dword [edx + 0xd4]
push esi
push ebx
push eax
call edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
xor esi, esi
call fcn.0041a660
test eax, eax
je case.0x557656.279
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0xd4]
push esi
push ebx
push ecx
mov ecx, eax
call edx
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp byte [0x5f59ad], bl
mov byte [0x5f59ac], bl
je case.0x557656.279
xor esi, esi
mov byte [0x5f59ad], bl
call fcn.0041a660
cmp eax, ebx
je case.0x557656.279
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x214]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov byte [0x5f59ac], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov esi, eax
call fcn.00559d70
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
cmp esi, 0x473
je 0x557cfa
cmp esi, 0x862
jne case.0x557656.279
cmp dword [esp + 0x10], 1
jne case.0x557656.279
cmp ebx, 2
jne case.0x557656.279
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
lea eax, [ebx - 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
cmp ebx, 0x204
jg 0x557d5c
je 0x557d55
sub ebx, 0x201
je 0x557d1f
sub ebx, 2
jne case.0x557656.279
push 1
push edi
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [ebx + 0x66]
jmp 0x557d69
mov ecx, dword [esp + 0x10]
push 0x556e80
mov dword [0x5f4d44], ecx
call dword [sym.imp.USER32.dll_GetDoubleClickTime]
push eax
push 1
push edi
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00566120
mov esp, ebp
pop ebp
ret
mov eax, 0x65
jmp 0x557d69
cmp ebx, 0x474
jne case.0x557656.279
mov eax, 0x64
mov esi, dword [esp + 0x10]
push eax
call fcn.0052c950
call fcn.0052d110
add esp, 4
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00566120
mov esp, ebp
pop ebp
ret