Function at 0x4c0410
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x134]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x12d
push 0
push eax
mov dword [ebp - 0x4d0], esi
mov dword [ebp - 0x4d4], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp - 8], 0
mov byte [ebp - 0x138], 0
test esi, esi
jne 0x4c048a
test ebx, ebx
jne 0x4c0470
call fcn.004c8ff0
mov esi, eax
mov dword [ebp - 0x4d0], esi
jmp 0x4c048e
push 1
call fcn.004c9040
push eax
call fcn.004c9100
mov esi, eax
add esp, 8
mov dword [ebp - 0x4d0], esi
jmp 0x4c04ac
test ebx, ebx
jne 0x4c04ac
call fcn.004c9040
test eax, eax
je 0x4c04a2
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x4d4], eax
jmp 0x4c04ac
mov dword [ebp - 0x4d4], 0
mov eax, dword [0x58fbf8]
test eax, eax
jne 0x4c04da
push 0x5c
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [0x58fbf8], eax
test eax, eax
je 0x4c04da
push 0x5c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x58fbf8]
add esp, 0xc
cmp dword [eax + 4], 0
lea ecx, [eax + 4]
je 0x4c050a
push ecx
call fcn.0047e900
mov eax, dword [0x58fbf8]
push dword [eax + 4]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, dword [0x58fbf8]
add esp, 8
mov dword [eax + 4], 0
mov eax, dword [0x58fbf8]
mov dword [eax], 0
mov eax, dword [0x58fbf8]
or dword [eax + 0x24], 3
call fcn.004bbe20
xor edi, edi
cmp dword [0x59591c], edi
jle 0x4c0589
nop dword [eax + eax]
mov eax, dword [0x595920]
mov esi, dword [eax + edi*4]
push esi
call fcn.004bfb60
add esp, 4
test eax, eax
je 0x4c057a
push dword [esi + 4]
push dword [esi + 0x20]
call fcn.004be160
push esi
push eax
call fcn.004bba40
mov eax, dword [esi + 0x1c]
add esp, 0x10
test al, 1
jne 0x4c056d
mov eax, dword [0x58fbf8]
and dword [eax + 0x24], 0xfffffffe
mov eax, dword [esi + 0x1c]
test al, 2
jne 0x4c057a
mov eax, dword [0x58fbf8]
and dword [eax + 0x24], 0xfffffffd
inc edi
cmp edi, dword [0x59591c]
jl 0x4c0530
mov esi, dword [ebp - 0x4d0]
mov ecx, dword [0x58fbf8]
xor ebx, ebx
test esi, esi
je 0x4c063e
nop dword [eax]
cmp ebx, dword [esi + 0x1c]
jge 0x4c063e
mov eax, dword [esi + 0x20]
mov edi, dword [eax + ebx*4]
push edi
call fcn.004bfb60
add esp, 4
test eax, eax
je 0x4c062c
mov ecx, dword [0x58fbf8]
xor esi, esi
cmp esi, dword [ecx]
jge 0x4c05f5
nop dword [eax + eax]
mov eax, dword [ecx + 4]
mov eax, dword [eax + esi*4]
push dword [eax + 4]
push dword [edi + 4]
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
mov ecx, dword [0x58fbf8]
add esp, 8
test eax, eax
je 0x4c05f3
inc esi
cmp esi, dword [ecx]
jl 0x4c05d0
cmp esi, dword [ecx]
jne 0x4c0632
push dword [edi + 4]
push dword [edi + 0x20]
call fcn.004be160
push edi
push eax
call fcn.004bba40
mov eax, dword [edi + 0x1c]
add esp, 0x10
test al, 1
jne 0x4c061f
mov eax, dword [0x58fbf8]
and dword [eax + 0x24], 0xfffffffe
mov eax, dword [edi + 0x1c]
test al, 2
jne 0x4c062c
mov eax, dword [0x58fbf8]
and dword [eax + 0x24], 0xfffffffd
mov ecx, dword [0x58fbf8]
mov esi, dword [ebp - 0x4d0]
inc ebx
jmp 0x4c05a0
mov eax, dword [ebp - 0x4d4]
xor ebx, ebx
test eax, eax
je 0x4c06ee
nop
cmp ebx, dword [eax + 0x64]
jge 0x4c06ee
mov eax, dword [eax + 0x68]
mov edi, dword [eax + ebx*4]
push edi
call fcn.004bfb60
add esp, 4
test eax, eax
je 0x4c06dc
mov ecx, dword [0x58fbf8]
xor esi, esi
cmp esi, dword [ecx]
jge 0x4c06a5
nop dword [eax + eax]
mov eax, dword [ecx + 4]
mov eax, dword [eax + esi*4]
push dword [eax + 4]
push dword [edi + 4]
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp
mov ecx, dword [0x58fbf8]
add esp, 8
test eax, eax
je 0x4c06a3
inc esi
cmp esi, dword [ecx]
jl 0x4c0680
cmp esi, dword [ecx]
jne 0x4c06e2
push dword [edi + 4]
push dword [edi + 0x20]
call fcn.004be160
push edi
push eax
call fcn.004bba40
mov eax, dword [edi + 0x1c]
add esp, 0x10
test al, 1
jne 0x4c06cf
mov eax, dword [0x58fbf8]
and dword [eax + 0x24], 0xfffffffe
mov eax, dword [edi + 0x1c]
test al, 2
jne 0x4c06dc
mov eax, dword [0x58fbf8]
and dword [eax + 0x24], 0xfffffffd
mov ecx, dword [0x58fbf8]
mov eax, dword [ebp - 0x4d4]
inc ebx
jmp 0x4c0650
xor edx, edx
cmp dword [ecx + 0x4c], edx
jle 0x4c0724
mov eax, dword [ecx + 0x50]
mov esi, dword [eax + edx*4]
mov eax, dword [esi]
test al, 1
je 0x4c071e
and eax, 0xfffffffd
mov dword [esi], eax
mov eax, dword [0x58fbf8]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + edx*4]
mov dword [eax + 8], 0
mov ecx, dword [0x58fbf8]
inc edx
cmp edx, dword [ecx + 0x4c]
jl 0x4c06f5
mov eax, dword [0x58fc04]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x4c07ab
push 0
push 0
push 0x40c
push dword [eax + 0x98]
call esi
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x4e4], ebx
test ebx, ebx
jle 0x4c07a3
mov dword [ebp - 0x4e4], ebx
nop dword [eax + eax]
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x64
push eax
mov eax, dword [0x58fc04]
push edi
push 0x41d
mov dword [ebp - 0x45c], 0x400
push dword [eax + 0x98]
call esi
test eax, eax
je 0x4c079e
mov eax, dword [ebp - 0x418]
lea ecx, [edi + 1]
mov dword [eax + 8], ecx
inc edi
cmp edi, ebx
jl 0x4c0760
mov ecx, dword [0x58fbf8]
jmp 0x4c07b5
mov dword [ebp - 0x4e4], 0
xor ebx, ebx
mov dword [ebp - 0x4cc], ebx
cmp dword [ecx], ebx
jle 0x4c0a2d
nop word [eax + eax]
mov eax, dword [ecx + 4]
push dword [ebp - 0x4d4]
push dword [ebp - 0x4d0]
mov edi, dword [eax + ebx*4]
push edi
call fcn.004bb0d0
mov ebx, dword [0x58fbf8]
xor esi, esi
add esp, 0xc
cmp dword [ebx + 0x4c], esi
jle 0x4c0827
nop dword [eax + eax]
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0xc]
push dword [eax + 4]
push dword [edi + 4]
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp
mov ebx, dword [0x58fbf8]
add esp, 8
test eax, eax
je 0x4c0827
inc esi
cmp esi, dword [ebx + 0x4c]
jl 0x4c0800
mov eax, dword [ebx + 0x4c]
cmp esi, eax
jge 0x4c08ff
mov eax, dword [ebx + 0x50]
shl esi, 2
mov eax, dword [eax + esi]
push dword [eax + 0xc]
push edi
call fcn.004bb4e0
add esp, 8
test eax, eax
je 0x4c0870
and dword [edi + 0x1c], 0xfffffffb
mov eax, dword [0x58fbf8]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + esi]
push dword [eax + 0xc]
call fcn.004bc4f0
mov ebx, dword [ebp - 0x4cc]
add esp, 4
jmp 0x4c09ec
mov eax, dword [0x58fbf8]
xor ebx, ebx
mov eax, dword [eax + 0x50]
mov eax, dword [eax + esi]
mov eax, dword [eax + 0xc]
or dword [eax + 0x1c], 4
cmp dword [edi + 0xc], ebx
jle 0x4c08d6
nop dword [eax]
mov eax, dword [0x58fbf8]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + esi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + ebx*4]
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + ebx*4]
mov eax, dword [edx + 0x98]
mov dword [ecx + 0x98], eax
mov eax, dword [0x58fbf8]
mov edx, dword [edi + 0x10]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + esi]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov eax, dword [edx + ebx*4]
mov dword [ecx + ebx*4], eax
inc ebx
cmp ebx, dword [edi + 0xc]
jl 0x4c0890
push edi
call fcn.004bc4f0
mov ecx, dword [0x58fbf8]
add esp, 4
mov ebx, dword [ebp - 0x4cc]
mov eax, dword [ecx + 0x50]
mov ecx, dword [ecx + 4]
mov eax, dword [eax + esi]
mov eax, dword [eax + 0xc]
mov dword [ecx + ebx*4], eax
jmp 0x4c09fa
xor ecx, ecx
inc eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [ebx + 0x50]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov ecx, dword [0x58fbf8]
add esp, 8
mov ebx, dword [ebp - 0x4cc]
mov dword [ecx + 0x50], eax
mov edx, dword [0x58fbf8]
test ebx, ebx
je 0x4c098d
xor esi, esi
cmp dword [edx + 0x4c], esi
jle 0x4c096f
nop dword [eax]
mov eax, dword [edx + 0x50]
mov eax, dword [eax + esi*4]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 4]
mov eax, dword [edx + 4]
push ecx
mov eax, dword [eax + ebx*4 - 4]
push dword [eax + 4]
call sub.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp
mov edx, dword [0x58fbf8]
add esp, 8
test eax, eax
je 0x4c096f
inc esi
cmp esi, dword [edx + 0x4c]
jl 0x4c0940
mov ecx, dword [edx + 0x4c]
inc esi
cmp esi, ecx
jge 0x4c0989
mov eax, dword [edx + 0x50]
sub ecx, esi
shl ecx, 2
push ecx
lea eax, [eax + esi*4]
push eax
add eax, 4
jmp 0x4c09a1
mov esi, ecx
jmp 0x4c09b0
mov eax, dword [edx + 0x4c]
test eax, eax
je 0x4c09b0
mov ecx, dword [edx + 0x50]
xor esi, esi
shl eax, 2
push eax
push ecx
lea eax, [ecx + 4]
push eax
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [0x58fbf8]
add esp, 0xc
inc dword [edx + 0x4c]
and dword [edi + 0x1c], 0xfffffffb
push 0x14
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ecx, dword [0x58fbf8]
add esp, 4
shl esi, 2
mov ecx, dword [ecx + 0x50]
mov dword [esi + ecx], eax
test eax, eax
je 0x4c09ec
mov eax, dword [0x58fbf8]
xorps xmm0, xmm0
mov eax, dword [eax + 0x50]
mov eax, dword [eax + esi]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov eax, dword [0x58fbf8]
mov eax, dword [eax + 0x50]
mov eax, dword [eax + esi]
mov dword [eax + 0xc], edi
mov ecx, dword [0x58fbf8]
mov eax, dword [ecx + 0x50]
mov edx, dword [esi + eax]
mov eax, dword [edx + 0xc]
test byte [eax + 0x1c], 2
jne 0x4c0a18
or dword [edx], 2
mov ecx, dword [0x58fbf8]
inc ebx
mov dword [ebp - 0x4cc], ebx
cmp ebx, dword [ecx]
jl 0x4c07d0
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebp + 0x10], 4
jne 0x4c14f9
cmp dword [0x58fc04], 0
je 0x4c14f9
xor edx, edx
mov dword [ebp - 0x4d4], 0
mov dword [ebp - 0x4e8], edx
cmp dword [ecx + 0x4c], edx
jle 0x4c14e4
nop
mov eax, dword [ecx + 0x50]
mov ebx, dword [eax + edx*4]
mov dword [ebp - 0x4d0], ebx
mov eax, dword [ebx]
mov edx, eax
mov edi, dword [ebx + 0xc]
and edx, 2
mov dword [ebp - 0x4cc], edi
test al, 1
je 0x4c0ed4
test edx, edx
je 0x4c0ead
mov eax, dword [edi + 0x1c]
test al, 2
jne 0x4c0ead
test al, 4
je 0x4c0dd6
test byte [ebp + 0x10], 2
jne 0x4c0dd6
test al, 0x10
jne 0x4c0dd6
xor eax, eax
mov dword [ebp - 0x4d8], eax
cmp dword [edi + 0xc], eax
jle 0x4c14c8
nop dword [eax]
nop word [eax + eax]
lea ecx, [eax*4]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x4e0], ecx
mov ebx, dword [ecx + eax]
mov dword [ebp - 0x4c8], ebx
mov ecx, dword [ebx + 0x98]
test ecx, ecx
je 0x4c0dbb
test dword [ebx + 0x90], 0x1000
jne 0x4c0b13
test byte [ebx + 0x94], 1
je 0x4c0b13
mov eax, 1
jmp 0x4c0b15
xor eax, eax
push eax
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfffffffffffffff0
push dword [ebx + 0x98]
call dword [0x595d8c]
mov edx, dword [ebx + 0x90]
mov ecx, edx
shr eax, 1
shr ecx, 3
not eax
not ecx
and eax, 1
and ecx, 1
cmp ecx, eax
je 0x4c0d85
mov eax, dword [edi + 0x10]
mov edx, dword [ebp - 0x4e0]
mov eax, dword [edx + eax]
movzx ecx, word [eax + 0x42]
test cx, cx
je 0x4c0bba
mov eax, dword [edi + 0x10]
push ecx
mov eax, dword [edx + eax]
movzx ebx, word [eax + 0x40]
call fcn.004be2b0
push eax
test bl, 4
mov ecx, 0x4eb673
mov eax, str.Shift
cmove eax, ecx
test bl, 0x10
push eax
mov eax, str.Alt
cmove eax, ecx
test bl, 8
push eax
mov eax, str.Ctrl
cmove eax, ecx
push eax
push str.___s_s_s_s_
lea eax, [ebp - 0x134]
push 0x12c
push eax
call fcn.00482630
mov ebx, dword [ebp - 0x4c8]
add esp, 0x20
jmp 0x4c0bc1
mov byte [ebp - 0x134], 0
lea eax, [ebp - 0x2c0]
xorps xmm0, xmm0
push eax
push dword [ebx + 0x98]
movups xmmword [ebp - 0x2c0], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x2c0]
push eax
mov eax, dword [ebp - 0x4d0]
push dword [eax + 0x10]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x4d0]
push 0
push 0
push 0xb
push dword [eax + 0x10]
call esi
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x90]
test eax, 0x1000
jne 0x4c0c35
test byte [ebx + 0x94], 1
mov dword [ebp - 0x4dc], 0x50000000
jne 0x4c0c3f
mov dword [ebp - 0x4dc], 0x58000000
test eax, 0x20000
jne 0x4c0c5e
call fcn.00493410
mov dword [ebp - 0x4c8], 0x14617c
test dword [eax + 4], 0x10000
je 0x4c0c68
mov dword [ebp - 0x4c8], 0x34617c
mov eax, dword [edi + 0x10]
mov edi, dword [ebp - 0x4e0]
mov esi, dword [ebx + 0x88]
push 0
mov edi, dword [edi + eax]
call fcn.00493410
mov edx, dword [ebp - 0x2bc]
mov ecx, dword [ebp - 0x2c0]
mov eax, dword [eax + 0x10]
push eax
push dword [ebx + 0xb0]
mov eax, dword [ebp - 0x4d0]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x2b4]
sub eax, edx
push eax
mov eax, dword [ebp - 0x2b8]
sub eax, ecx
push eax
mov eax, dword [ebx + 0x90]
push edx
and al, 8
push ecx
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x1002
or eax, dword [ebp - 0x4dc]
push eax
push str._s__0x_X____d__d__s__s_s_____d__X__X__X__X
push dword [ebx + 0x80]
lea eax, [esi + 3]
push dword [ebx + 0x70]
push dword [ebx + 0x60]
push dword [ebx + 0x50]
push eax
lea eax, [ebp - 0x134]
push eax
push dword [edi + 0x10]
lea eax, [esi + 1]
push 0x4eb673
push eax
push esi
push dword [ebp - 0x4c8]
lea eax, [ebp - 0x264]
push dword [edi + 0xc]
push str._s__0x_X____d__d__s__s_s_____d__X__X__X__X
push 0x12c
push eax
call fcn.0047f200
add esp, 0x40
push eax
push str.button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov dword [ebx + 0x98], eax
mov eax, dword [ebp - 0x4d0]
push 1
push 0xb
push dword [eax + 0x10]
call esi
mov eax, dword [ebx + 0x90]
mov ecx, dword [ebx + 0x98]
and eax, 0x2008
push 0
cmp eax, 0x2008
jne 0x4c0d74
push 1
push 0xf1
push ecx
call esi
mov edi, dword [ebp - 0x4cc]
jmp 0x4c0dbb
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [ebp - 0x4cc]
jmp 0x4c0dbb
test dl, 8
je 0x4c0dbb
push 0
push 0
push 0xf0
push dword [ebx + 0x98]
call esi
mov ecx, dword [ebx + 0x90]
shr ecx, 0xd
and ecx, 1
cmp ecx, eax
je 0x4c0dbb
push 0
push ecx
push 0xf1
push dword [ebx + 0x98]
call esi
mov eax, dword [ebp - 0x4d8]
inc eax
mov dword [ebp - 0x4d8], eax
cmp eax, dword [edi + 0xc]
jl 0x4c0ad0
jmp 0x4c14c2
mov eax, dword [ebx + 0x10]
push edi
mov dword [ebp - 0x4dc], eax
call fcn.004bb6f0
add esp, 4
mov dword [ebp - 0x4d8], eax
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4c0e93
push 0x64
lea eax, [ebp - 0x398]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebx + 0xc]
add esp, 0xc
mov eax, dword [ebp - 0x4d8]
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x398], 0x64
mov dword [ebp - 0x394], 0x470
mov dword [ebp - 0x350], ebx
cmp edx, dword [ecx + 0x14]
cmovle edx, dword [ecx + 0x14]
add edx, 0xd
mov dword [ebp - 0x36c], edx
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x374], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x354], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x370], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x360], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x35c], eax
lea eax, [ebp - 0x398]
push eax
mov eax, dword [ebx + 8]
dec eax
push eax
mov eax, dword [0x58fc04]
push 0x406
push dword [eax + 0x98]
call esi
mov eax, dword [ebp - 0x4dc]
test eax, eax
je 0x4c0ea4
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [edi + 0x1c], 0xffffffef
jmp 0x4c14c2
mov eax, dword [ebx + 8]
push 0
dec eax
push eax
mov eax, dword [0x58fc04]
push 0x423
push dword [eax + 0x98]
call esi
and dword [ebx], 0xfffffffe
mov ecx, dword [0x58fbf8]
jmp 0x4c14ce
test edx, edx
je 0x4c14ce
mov eax, dword [edi + 0x1c]
test al, 2
jne 0x4c14ce
cmp dword [ebx + 8], 0
je 0x4c131c
test al, 4
je 0x4c122c
test byte [ebp + 0x10], 2
jne 0x4c122c
test al, 0x10
jne 0x4c122c
xor eax, eax
mov dword [ebp - 0x4e0], eax
cmp dword [edi + 0xc], eax
jle 0x4c12fe
nop dword [eax]
lea ecx, [eax*4]
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x4d8], ecx
mov ebx, dword [ecx + eax]
mov dword [ebp - 0x4c8], ebx
mov ecx, dword [ebx + 0x98]
test ecx, ecx
je 0x4c120b
test dword [ebx + 0x90], 0x1000
jne 0x4c0f63
test byte [ebx + 0x94], 1
je 0x4c0f63
mov eax, 1
jmp 0x4c0f65
xor eax, eax
push eax
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 0xfffffffffffffff0
push dword [ebx + 0x98]
call dword [0x595d8c]
mov edx, dword [ebx + 0x90]
mov ecx, edx
shr eax, 1
shr ecx, 3
not eax
not ecx
and eax, 1
and ecx, 1
cmp ecx, eax
je 0x4c11d5
mov eax, dword [edi + 0x10]
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx + eax]
movzx ecx, word [eax + 0x42]
test cx, cx
je 0x4c100a
mov eax, dword [edi + 0x10]
push ecx
mov eax, dword [edx + eax]
movzx ebx, word [eax + 0x40]
call fcn.004be2b0
push eax
test bl, 4
mov ecx, 0x4eb673
mov eax, str.Shift
cmove eax, ecx
test bl, 0x10
push eax
mov eax, str.Alt
cmove eax, ecx
test bl, 8
push eax
mov eax, str.Ctrl
cmove eax, ecx
push eax
push str.___s_s_s_s_
lea eax, [ebp - 0x134]
push 0x12c
push eax
call fcn.00482630
mov ebx, dword [ebp - 0x4c8]
add esp, 0x20
jmp 0x4c1011
mov byte [ebp - 0x134], 0
lea eax, [ebp - 0x2d0]
xorps xmm0, xmm0
push eax
push dword [ebx + 0x98]
movups xmmword [ebp - 0x2d0], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x2d0]
push eax
mov eax, dword [ebp - 0x4d0]
push dword [eax + 0x10]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x4d0]
push 0
push 0
push 0xb
push dword [eax + 0x10]
call esi
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebx + 0x90]
test eax, 0x1000
jne 0x4c1085
test byte [ebx + 0x94], 1
mov dword [ebp - 0x4c8], 0x50000000
jne 0x4c108f
mov dword [ebp - 0x4c8], 0x58000000
test eax, 0x20000
jne 0x4c10ae
call fcn.00493410
mov dword [ebp - 0x4dc], 0x14617c
test dword [eax + 4], 0x10000
je 0x4c10b8
mov dword [ebp - 0x4dc], 0x34617c
mov eax, dword [edi + 0x10]
mov edi, dword [ebp - 0x4d8]
mov esi, dword [ebx + 0x88]
push 0
mov edi, dword [edi + eax]
call fcn.00493410
mov edx, dword [ebp - 0x2cc]
mov ecx, dword [ebp - 0x2d0]
mov eax, dword [eax + 0x10]
push eax
push dword [ebx + 0xb0]
mov eax, dword [ebp - 0x4d0]
push dword [eax + 0x10]
mov eax, dword [ebp - 0x2c4]
sub eax, edx
push eax
mov eax, dword [ebp - 0x2c8]
sub eax, ecx
push eax
mov eax, dword [ebx + 0x90]
push edx
and al, 8
push ecx
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x1002
or eax, dword [ebp - 0x4c8]
push eax
push str._s__0x_X____d__d__s__s_s_____d__X__X__X__X
push dword [ebx + 0x80]
lea eax, [esi + 3]
push dword [ebx + 0x70]
push dword [ebx + 0x60]
push dword [ebx + 0x50]
push eax
lea eax, [ebp - 0x134]
push eax
push dword [edi + 0x10]
lea eax, [esi + 1]
push 0x4eb673
push eax
push esi
push dword [ebp - 0x4dc]
lea eax, [ebp - 0x264]
push dword [edi + 0xc]
push str._s__0x_X____d__d__s__s_s_____d__X__X__X__X
push 0x12c
push eax
call fcn.0047f200
add esp, 0x40
push eax
push str.button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov dword [ebx + 0x98], eax
mov eax, dword [ebp - 0x4d0]
push 1
push 0xb
push dword [eax + 0x10]
call esi
mov eax, dword [ebx + 0x90]
mov ecx, dword [ebx + 0x98]
and eax, 0x2008
push 0
cmp eax, 0x2008
jne 0x4c11c4
push 1
push 0xf1
push ecx
call esi
mov edi, dword [ebp - 0x4cc]
jmp 0x4c120b
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edi, dword [ebp - 0x4cc]
jmp 0x4c120b
test dl, 8
je 0x4c120b
push 0
push 0
push 0xf0
push dword [ebx + 0x98]
call esi
mov ecx, dword [ebx + 0x90]
shr ecx, 0xd
and ecx, 1
cmp ecx, eax
je 0x4c120b
push 0
push ecx
push 0xf1
push dword [ebx + 0x98]
call esi
mov eax, dword [ebp - 0x4e0]
inc eax
mov dword [ebp - 0x4e0], eax
cmp eax, dword [edi + 0xc]
jl 0x4c0f20
mov ebx, dword [ebp - 0x4d0]
jmp 0x4c12fe
mov eax, dword [ebx + 0x10]
push edi
mov dword [ebp - 0x4dc], eax
call fcn.004bb6f0
add esp, 4
mov dword [ebp - 0x4d8], eax
mov dword [ebx + 0x10], eax
test eax, eax
je 0x4c12e9
push 0x64
lea eax, [ebp - 0x3fc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebx + 0xc]
add esp, 0xc
mov eax, dword [ebp - 0x4d8]
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x3dc], eax
mov dword [ebp - 0x3fc], 0x64
mov dword [ebp - 0x3f8], 0x470
mov dword [ebp - 0x3b4], ebx
cmp edx, dword [ecx + 0x14]
cmovle edx, dword [ecx + 0x14]
add edx, 0xd
mov dword [ebp - 0x3d0], edx
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x3d8], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x3b8], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x3d4], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x3c4], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x3c0], eax
lea eax, [ebp - 0x3fc]
push eax
mov eax, dword [ebx + 8]
dec eax
push eax
mov eax, dword [0x58fc04]
push 0x406
push dword [eax + 0x98]
call esi
mov eax, dword [ebp - 0x4dc]
test eax, eax
je 0x4c12fa
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [edi + 0x1c], 0xffffffef
mov eax, dword [ebx + 8]
push 1
dec eax
push eax
mov eax, dword [0x58fc04]
push 0x423
push dword [eax + 0x98]
call esi
jmp 0x4c14bf
push edi
call fcn.004bb6f0
add esp, 4
mov dword [ebx + 0x10], eax
mov ecx, dword [edi + 0x14]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x4d8], eax
mov dword [ebp - 0x4c8], ecx
test eax, eax
je 0x4c140a
push 0x64
lea eax, [ebp - 0x334]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x4d8]
add esp, 0xc
mov ecx, dword [ebp - 0x4c8]
mov dword [ebp - 0x334], 0x64
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x2ec], ebx
cmp ecx, dword [edi + 0x14]
push 0x12
cmovle ecx, dword [edi + 0x14]
add ecx, 0xd
mov dword [ebp - 0x308], ecx
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x310], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x2f0], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x30c], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x2fc], eax
mov eax, dword [edi + 0x18]
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [ebp - 0x2f8], eax
mov dword [ebp - 0x330], 0x573
call edi
push 0xf
mov dword [ebp - 0x328], eax
call edi
mov edi, dword [ebp - 0x4d4]
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x334]
push eax
mov eax, dword [0x58fc04]
push edi
push 0x401
mov dword [ebp - 0x32c], 0x8a4
mov dword [ebp - 0x300], edi
push dword [eax + 0x98]
call esi
jmp 0x4c1410
mov edi, dword [ebp - 0x4d4]
mov edx, dword [0x58fbf8]
xor ecx, ecx
mov eax, dword [ebp - 0x4e4]
inc eax
mov dword [ebp - 0x4e4], eax
cmp dword [edx + 0x4c], ecx
jle 0x4c1453
nop word [eax + eax]
mov eax, dword [edx + 0x50]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 8]
cmp eax, edi
jle 0x4c1447
inc eax
mov dword [esi + 8], eax
mov edx, dword [0x58fbf8]
inc ecx
cmp ecx, dword [edx + 0x4c]
jl 0x4c1430
mov eax, dword [ebp - 0x4e4]
xor esi, esi
test eax, eax
jle 0x4c14b9
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [ebp - 0x4e4]
nop word [eax + eax]
lea eax, [ebp - 0x4c4]
mov dword [ebp - 0x4c4], 0x64
push eax
mov eax, dword [0x58fc04]
push esi
push 0x41d
mov dword [ebp - 0x4c0], 0x400
push dword [eax + 0x98]
call edi
test eax, eax
je 0x4c14ae
mov eax, dword [ebp - 0x47c]
lea ecx, [esi + 1]
mov dword [eax + 8], ecx
inc esi
cmp esi, ebx
jl 0x4c1470
mov ebx, dword [ebp - 0x4d0]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
or dword [ebx], 1
mov ecx, dword [0x58fbf8]
inc dword [ebp - 0x4d4]
mov edx, dword [ebp - 0x4e8]
inc edx
mov dword [ebp - 0x4e8], edx
cmp edx, dword [ecx + 0x4c]
jl 0x4c0a60
mov eax, dword [0x58fc04]
push dword [eax + 0x98]
call fcn.004c9830
add esp, 4
jmp 0x4c1526
xor edi, edi
cmp dword [ecx + 0x4c], edi
jle 0x4c1526
mov eax, dword [ecx + 0x50]
mov eax, dword [eax + edi*4]
test byte [eax], 1
je 0x4c1520
push dword [eax + 0xc]
push 0
push 0x110
push dword [eax + 0x10]
call esi
mov ecx, dword [0x58fbf8]
inc edi
cmp edi, dword [ecx + 0x4c]
jl 0x4c1500
call fcn.00493410
mov eax, dword [eax + 0xdb4]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov ebx, dword [sym.imp.USER32.dll_CreateMenu]
mov dword [ebp - 0x4e4], eax
call ebx
mov ecx, dword [0x58fbf8]
mov esi, dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [ecx + 0x2c], eax
mov ecx, dword [0x58fbf8]
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x4c15d1
push ecx
call esi
test eax, eax
jne 0x4c15d1
call fcn.00493410
test eax, eax
je 0x4c15d1
call fcn.00493410
cmp dword [eax], 0
je 0x4c15d1
mov eax, dword [0x52e820]
test eax, eax
je 0x4c158d
mov esi, dword [eax + 0x190]
jmp 0x4c1593
mov esi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x4c15a5
call fcn.00493410
mov eax, dword [eax]
jmp 0x4c15a7
xor eax, eax
push 0x4eb673
push 0x4eb673
push dword [0x52e820]
push esi
push 0
push 0x878
push str.MainMenu.c
push 3
call eax
mov esi, dword [sym.imp.USER32.dll_DestroyMenu]
add esp, 0x20
call ebx
mov ecx, dword [0x58fbf8]
xor edx, edx
mov dword [ebp - 0x4e0], edx
mov dword [ebp - 0x4d0], 1
mov dword [ecx + 0x30], eax
mov ecx, dword [0x58fbf8]
cmp dword [ecx], edx
jle 0x4c1b87
jmp 0x4c1606
mov esi, dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [ecx + 4]
xor edi, edi
mov dword [ebp - 0x4cc], 0
mov ebx, dword [eax + edx*4]
mov dword [ebp - 0x4d4], ebx
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4c168d
push eax
call esi
test eax, eax
je 0x4c168d
call fcn.00493410
test eax, eax
je 0x4c168d
call fcn.00493410
cmp dword [eax], edi
je 0x4c168d
mov eax, dword [0x52e820]
test eax, eax
je 0x4c164f
mov esi, dword [eax + 0x190]
jmp 0x4c1655
mov esi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x4c1667
call fcn.00493410
mov eax, dword [eax]
jmp 0x4c1669
xor eax, eax
push 0x4eb673
push 0x4eb673
push dword [0x52e820]
push esi
push 0
push 0x885
push str.MainMenu.c
push 3
call eax
add esp, 0x20
call dword [sym.imp.USER32.dll_CreateMenu]
mov dword [ebx + 0x28], eax
lea eax, [ebp - 0x280]
push eax
mov dword [ebp - 0x280], 0x1c
mov dword [ebp - 0x27c], 0x10
mov dword [ebp - 0x278], 0x4000000
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SetMenuInfo]
xor eax, eax
mov dword [ebp - 0x4dc], eax
cmp dword [ebx + 0xc], eax
jle 0x4c1af6
nop word [eax + eax]
mov esi, dword [ebx + 0x10]
mov esi, dword [esi + eax*4]
test dword [esi + 0x90], 0x100
je 0x4c16f9
mov eax, 1
jmp 0x4c170c
push dword [esi + 4]
push dword [esi + 8]
push 0x4f166c
call fcn.004c91b0
add esp, 0xc
mov dword [esi + 0x94], eax
not eax
and eax, 1
push eax
lea eax, [esi + 0x90]
push 0x8000
push eax
call fcn.00481a00
mov eax, dword [esi + 0x90]
add esp, 0xc
test al, 1
je 0x4c174c
mov ecx, dword [ebp - 0x4cc]
test edi, edi
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x4cc], ecx
cmp dword [esi + 0x94], 0
je 0x4c1ab8
test eax, 0x4000
jne 0x4c1ab8
movzx ecx, word [esi + 0x42]
test cx, cx
je 0x4c17da
test al, 0x40
je 0x4c17da
test eax, 0x2000000
jne 0x4c1785
push esi
call fcn.004ba980
movzx ecx, word [esi + 0x42]
add esp, 4
movzx ebx, word [esi + 0x40]
push ecx
call fcn.004be2b0
push eax
test bl, 4
mov ecx, 0x4eb673
mov eax, str.Shift
cmove eax, ecx
test bl, 0x10
push eax
mov eax, str.Alt
cmove eax, ecx
test bl, 8
push eax
mov eax, str.Ctrl
cmove eax, ecx
push eax
push str._b_s_s_s_s
lea eax, [ebp - 0x134]
push 0x12c
push eax
call fcn.00482630
mov ebx, dword [ebp - 0x4d4]
add esp, 0x20
jmp 0x4c17e1
mov byte [ebp - 0x134], 0
mov eax, dword [esi + 0x90]
test al, 0x40
je 0x4c1ab8
cmp dword [ebp - 0x4cc], 0
je 0x4c18a5
push 0
push edi
push 0x800
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_AppendMenuA]
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], 0x30
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x2ac], 0x30
push 1
push edi
movlpd qword [ebp - 0x2a8], xmm0
movlpd qword [ebp - 0x2a0], xmm0
movlpd qword [ebp - 0x298], xmm0
movlpd qword [ebp - 0x290], xmm0
movlpd qword [ebp - 0x288], xmm0
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
or dword [ebp - 0x2a8], 0x100
lea eax, [esi + 0xd8]
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x2b0]
push eax
push 1
mov dword [esi + 0xdc], edi
push edi
mov dword [ebp - 0x2a0], edi
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov eax, dword [esi + 0x90]
inc edi
mov dword [ebp - 0x4cc], 0
mov ecx, dword [esi]
mov dword [ebp - 0x4e8], ecx
test ecx, ecx
je 0x4c18b6
cmp byte [ecx], 0
jne 0x4c18bf
mov ecx, dword [esi + 4]
mov dword [ebp - 0x4e8], ecx
test eax, 0x40000
je 0x4c18df
push dword [esi + 0x1c]
call fcn.004bdfd0
mov dword [ebp - 0x4d8], eax
add esp, 4
mov eax, dword [esi + 0x90]
jmp 0x4c18f1
mov ecx, dword [esi + 0xb0]
add ecx, 0x10000000
mov dword [ebp - 0x4d8], ecx
test eax, 0x1000
jne 0x4c190b
test byte [esi + 0x94], 1
mov dword [ebp - 0x4c8], 0
jne 0x4c1915
mov dword [ebp - 0x4c8], 3
push 0x4f20b8
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x4e8]
lea eax, [ebp - 0x264]
push 0x4f20b8
push 0x12c
push eax
call fcn.0047f200
add esp, 0x18
push eax
mov eax, dword [esi + 0x90]
push dword [ebp - 0x4d8]
shr eax, 0xe
and eax, 0x10
or eax, dword [ebp - 0x4c8]
push eax
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_AppendMenuA]
cmp word [esi + 0x42], 0
mov eax, dword [ebx + 0x28]
mov dword [esi + 0xe4], eax
lea eax, [esi + 0x48]
mov dword [esi + 0xec], eax
jne 0x4c1990
mov eax, dword [esi]
test eax, eax
je 0x4c1987
cmp byte [eax], 0
jne 0x4c198a
mov eax, dword [esi + 4]
mov dword [esi + 0xe0], eax
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], 0x30
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x2ac], 0x31
push 1
push edi
movlpd qword [ebp - 0x2a8], xmm0
movlpd qword [ebp - 0x2a0], xmm0
movlpd qword [ebp - 0x298], xmm0
movlpd qword [ebp - 0x290], xmm0
movlpd qword [ebp - 0x288], xmm0
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov eax, dword [ebp - 0x288]
test eax, eax
je 0x4c1a15
inc eax
push eax
mov dword [ebp - 0x288], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x2b0]
push eax
push 1
push edi
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
or dword [ebp - 0x2a8], 0x100
lea eax, [esi + 0xd8]
mov dword [ebp - 0x290], eax
mov dword [esi + 0xdc], edi
mov dword [ebp - 0x2a0], edi
mov eax, dword [esi + 0x90]
test eax, 0x10000
je 0x4c1a60
push 1
lea eax, [ebp - 0x2a8]
push 0x200
push eax
call fcn.00481a00
mov eax, dword [esi + 0x90]
add esp, 0xc
and eax, 0x2000
push eax
lea eax, [ebp - 0x2a4]
push 8
push eax
call fcn.00481a00
add esp, 0xc
lea eax, [ebp - 0x2b0]
push eax
push 1
push edi
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
cmp dword [ebp - 0x28c], 0
je 0x4c1ab7
lea eax, [ebp - 0x28c]
push eax
call fcn.0047e900
push dword [ebp - 0x28c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 8
mov dword [ebp - 0x28c], 0
inc edi
mov eax, dword [ebp - 0x4dc]
inc eax
mov dword [ebp - 0x4dc], eax
cmp eax, dword [ebx + 0xc]
jl 0x4c16e0
test edi, edi
je 0x4c1af6
mov eax, dword [ebx]
test eax, eax
je 0x4c1add
cmp byte [eax], 0
jne 0x4c1ae0
mov eax, dword [ebx + 4]
push eax
push dword [ebx + 0x28]
mov eax, dword [0x58fbf8]
push 0x10
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_AppendMenuA]
jmp 0x4c1b6c
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_DestroyMenu]
test eax, eax
jne 0x4c1b65
call fcn.00493410
test eax, eax
je 0x4c1b65
call fcn.00493410
cmp dword [eax], 0
je 0x4c1b65
mov eax, dword [0x52e820]
test eax, eax
je 0x4c1b27
mov esi, dword [eax + 0x190]
jmp 0x4c1b2d
mov esi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x4c1b3f
call fcn.00493410
mov eax, dword [eax]
jmp 0x4c1b41
xor eax, eax
push 0x4eb673
push 0x4eb673
push dword [0x52e820]
push esi
push 0
push 0x8d9
push str.MainMenu.c
push 3
call eax
add esp, 0x20
mov dword [ebx + 0x28], 0
mov edx, dword [ebp - 0x4e0]
mov ecx, dword [0x58fbf8]
inc edx
mov dword [ebp - 0x4e0], edx
cmp edx, dword [ecx]
jl 0x4c1600
xor edx, edx
mov dword [ebp - 0x4dc], edx
cmp dword [ecx], edx
jle 0x4c2014
nop word [eax + eax]
mov eax, dword [ecx + 4]
xor edi, edi
mov dword [ebp - 0x4cc], 0
mov ebx, dword [eax + edx*4]
mov dword [ebp - 0x4e0], ebx
test byte [ebx + 0x1c], 1
jne 0x4c1bcd
call dword [sym.imp.USER32.dll_CreateMenu]
mov dword [ebx + 0x24], eax
mov ecx, dword [0x58fbf8]
mov dword [ebp - 0x280], 0x1c
mov dword [ebp - 0x27c], 0x10
mov dword [ebp - 0x278], 0x4000000
test byte [ebx + 0x1c], 1
jne 0x4c1c07
lea eax, [ebp - 0x280]
push eax
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_SetMenuInfo]
mov ecx, dword [0x58fbf8]
xor edx, edx
mov dword [ebp - 0x4d4], edx
cmp dword [ebx + 0xc], edx
jle 0x4c1fff
nop dword [eax + eax]
mov eax, dword [ebx + 0x10]
mov esi, dword [eax + edx*4]
mov eax, dword [esi + 0x90]
test al, 1
je 0x4c1c45
mov ecx, dword [ebp - 0x4cc]
test edi, edi
cmovne ecx, dword [ebp - 0x4d0]
mov dword [ebp - 0x4cc], ecx
cmp dword [esi + 0x94], 0
je 0x4c1fc3
test eax, 0x4000
jne 0x4c1fc3
movzx ecx, word [esi + 0x42]
test cx, cx
je 0x4c1cdd
test al, 0x10
jne 0x4c1c6e
test al, 0x40
jne 0x4c1cdd
test eax, 0x2000000
jne 0x4c1c82
push esi
call fcn.004ba980
movzx ecx, word [esi + 0x42]
add esp, 4
movzx ebx, word [esi + 0x40]
push ecx
call fcn.004be2b0
push eax
test bl, 4
mov ecx, 0x4eb673
mov eax, str.Shift
cmove eax, ecx
test bl, 0x10
push eax
mov eax, str.Alt
cmove eax, ecx
test bl, 8
push eax
mov eax, str.Ctrl
cmove eax, ecx
push eax
push str._b_s_s_s_s
lea eax, [ebp - 0x134]
push 0x12c
push eax
call fcn.00482630
mov ebx, dword [ebp - 0x4e0]
add esp, 0x20
mov edx, dword [ebp - 0x4d4]
jmp 0x4c1ce4
mov byte [ebp - 0x134], 0
mov ecx, dword [esi + 0x90]
mov eax, ecx
and al, 0x12
cmp al, 0x10
jne 0x4c1fc3
cmp dword [ebp - 0x4cc], 0
je 0x4c1dac
push 0
push edi
push 0x800
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_AppendMenuA]
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x2b0], 0x30
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x2ac], 0x30
push 1
push edi
movlpd qword [ebp - 0x2a8], xmm0
movlpd qword [ebp - 0x2a0], xmm0
movlpd qword [ebp - 0x298], xmm0
movlpd qword [ebp - 0x290], xmm0
movlpd qword [ebp - 0x288], xmm0
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
or dword [ebp - 0x2a8], 0x100
lea eax, [esi + 0x120]
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x2b0]
push eax
push 1
mov dword [esi + 0x124], edi
push edi
mov dword [ebp - 0x2a0], edi
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
mov ecx, dword [esi + 0x90]
inc edi
mov dword [ebp - 0x4cc], 0
mov eax, dword [esi]
mov dword [ebp - 0x4e8], eax
test eax, eax
je 0x4c1dbd
cmp byte [eax], 0
jne 0x4c1dc6
mov eax, dword [esi + 4]
mov dword [ebp - 0x4e8], eax
test ecx, 0x40000
je 0x4c1de1
push dword [esi + 0x1c]
call fcn.004bdfd0
mov ecx, dword [esi + 0x90]
add esp, 4
jmp 0x4c1dec
mov eax, dword [esi + 0xb0]
add eax, 0x10000000
mov dword [ebp - 0x4d8], eax
test ecx, 0x1000
jne 0x4c1e0d
test byte [esi + 0x94], 1
mov dword [ebp - 0x4c8], 0
jne 0x4c1e17
mov dword [ebp - 0x4c8], 3
push 0x4f20b8
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x4e8]
lea eax, [ebp - 0x264]
push 0x4f20b8
push 0x12c
push eax
call fcn.0047f200
add esp, 0x18
push eax
mov eax, dword [esi + 0x90]
push dword [ebp - 0x4d8]
shr eax, 0xe
and eax, 0x10
or eax, dword [ebp - 0x4c8]
push eax
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [ebx + 0x24]
xorps xmm0, xmm0
mov dword [esi + 0x12c], eax
lea eax, [esi + 0x48]
mov dword [esi + 0x134], eax
lea eax, [ebp - 0x2b0]
push eax
push 1
push edi
movlpd qword [ebp - 0x2a8], xmm0
movlpd qword [ebp - 0x2a0], xmm0
movlpd qword [ebp - 0x298], xmm0
movlpd qword [ebp - 0x290], xmm0
movlpd qword [ebp - 0x288], xmm0
mov dword [ebp - 0x2b0], 0x30
mov dword [ebp - 0x2ac], 0x31
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
mov eax, dword [ebp - 0x288]
test eax, eax
je 0x4c1efc
inc eax
push eax
mov dword [ebp - 0x288], eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x2b0]
push eax
push 1
push edi
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_GetMenuItemInfoA]
or dword [ebp - 0x2a8], 0x100
lea eax, [esi + 0x120]
mov dword [ebp - 0x290], eax
mov dword [esi + 0x124], edi
mov dword [ebp - 0x2a0], edi
test dword [esi + 0x90], 0x10000
je 0x4c1f5a
push 1
lea eax, [ebp - 0x2a8]
push 0x200
push eax
call fcn.00481a00
mov eax, dword [esi + 0x90]
and eax, 0x2000
push eax
lea eax, [ebp - 0x2a4]
push 8
push eax
call fcn.00481a00
add esp, 0x18
lea eax, [ebp - 0x2b0]
push eax
push 1
push edi
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_SetMenuItemInfoA]
cmp dword [ebp - 0x28c], 0
je 0x4c1f9a
lea eax, [ebp - 0x28c]
push eax
call fcn.0047e900
push dword [ebp - 0x28c]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 8
mov dword [ebp - 0x28c], 0
mov eax, dword [esi + 0x90]
shr eax, 0xa
and eax, 8
push eax
mov eax, dword [esi + 0xb0]
add eax, 0x10000000
push eax
push dword [ebx + 0x24]
call dword [sym.imp.USER32.dll_CheckMenuItem]
mov edx, dword [ebp - 0x4d4]
inc edi
inc edx
mov dword [ebp - 0x4d4], edx
cmp edx, dword [ebx + 0xc]
jl 0x4c1c20
test edi, edi
je 0x4c1ff9
mov eax, dword [ebx]
test eax, eax
je 0x4c1fe2
cmp byte [eax], 0
jne 0x4c1fe5
mov eax, dword [ebx + 4]
push eax
push dword [ebx + 0x24]
mov eax, dword [0x58fbf8]
push 0x10
push dword [eax + 0x2c]
call dword [sym.imp.USER32.dll_AppendMenuA]
mov ecx, dword [0x58fbf8]
mov edx, dword [ebp - 0x4dc]
inc edx
mov dword [ebp - 0x4dc], edx
cmp edx, dword [ecx]
jl 0x4c1ba0
push dword [ecx + 0x2c]
call fcn.00493410
mov eax, dword [eax + 0xdb4]
push eax
call dword [sym.imp.USER32.dll_SetMenu]
mov edi, dword [ebp - 0x4e4]
xor esi, esi
test edi, edi
je 0x4c2130
mov ebx, dword [sym.imp.USER32.dll_GetSubMenu]
push esi
push edi
call ebx
test eax, eax
je 0x4c20c3
push eax
inc esi
call dword [sym.imp.USER32.dll_DestroyMenu]
test eax, eax
jne 0x4c20bb
call fcn.00493410
test eax, eax
je 0x4c20bb
call fcn.00493410
cmp dword [eax], 0
je 0x4c20bb
mov eax, dword [0x52e820]
test eax, eax
je 0x4c2077
mov edi, dword [eax + 0x190]
jmp 0x4c207d
mov edi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x4c208f
call fcn.00493410
mov eax, dword [eax]
jmp 0x4c2091
xor eax, eax
push 0x4eb673
push 0x4eb673
push dword [0x52e820]
push edi
push 0
push 0x93e
push str.MainMenu.c
push 3
call eax
mov edi, dword [ebp - 0x4e4]
add esp, 0x20
push esi
push edi
call ebx
test eax, eax
jne 0x4c2047
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
test eax, eax
jne 0x4c2130
call fcn.00493410
test eax, eax
je 0x4c2130
call fcn.00493410
cmp dword [eax], 0
je 0x4c2130
mov eax, dword [0x52e820]
test eax, eax
je 0x4c20f2
mov esi, dword [eax + 0x190]
jmp 0x4c20f8
mov esi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x4c210a
call fcn.00493410
mov eax, dword [eax]
jmp 0x4c210c
xor eax, eax
push 0x4eb673
push 0x4eb673
push dword [0x52e820]
push esi
push 0
push 0x940
push str.MainMenu.c
push 3
call eax
add esp, 0x20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e2538
mov esp, ebp
pop ebp
ret