Function at 0x41fef3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4995e5
mov eax, dword fs:[0]
push eax
sub esp, 0x154
push ebx
push esi
push edi
mov eax, dword [0x4cc06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
mov eax, edi
shr eax, 0x10
cmp eax, 1
jne 0x41f5a2
mov eax, dword fs:[0x2c]
movzx edx, di
mov dword [ebp + 8], edx
mov ecx, dword [eax]
mov eax, dword [0x4d0374]
cmp eax, dword [ecx + 4]
jle 0x41f570
push 0x4d0374
call fcn.004724b4
add esp, 4
cmp dword [0x4d0374], 0xffffffff
jne 0x41f56d
movaps xmm0, xmmword [0x4bca50]
movups xmmword [0x4d033c], xmm0
push 0x4d0374
movaps xmm0, xmmword [0x4bcab0]
movups xmmword [0x4d034c], xmm0
mov dword [0x4d036c], 0x9c48
movaps xmm0, xmmword [0x4bca80]
movups xmmword [0x4d035c], xmm0
mov dword [0x4d0370], 0xd2
call fcn.0047246a
add esp, 4
mov edx, dword [ebp + 8]
xor esi, esi
cmp dword [esi*8 + 0x4d033c], edx
je 0x41f583
inc esi
cmp esi, 7
jb 0x41f572
jmp 0x41f5a2
push edx
lea eax, [ebx + 0x38]
push str.accelerator_pressed:__d
push eax
call fcn.00431960
mov eax, dword [esi*8 + 0x4d0340]
add esp, 0xc
cmp eax, 0xffffffff
cmovne edi, eax
add edi, 0xffffff7f
cmp edi, 0x57
ja case.0x41f5b8.130
movzx eax, byte [edi + 0x420054]
jmp dword [eax*4 + 0x420004]
mov ecx, dword [ebx + 0x5c]
push 0
push 0
push 0x404
mov eax, dword [ecx]
call dword [eax + 0xc]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x160]
call fcn.00415100
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x58]
mov ecx, dword [ebx + 4]
mov byte [ebp - 0x24], 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], vtable.Control.0
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x150]
test eax, eax
jne 0x41f679
cmp dword [ebp - 0x158], eax
movzx eax, word [ebp - 0x158]
mov byte [ebp - 0x144], 1
jne 0x41f642
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x160]
push edx
push 0x42eba0
push ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
jne 0x41f68e
mov ecx, dword [ebx + 0x58]
lea eax, [ebx + 0x50]
push eax
call fcn.00422bb0
mov ecx, ebx
call fcn.0041e0d0
jmp 0x41f68e
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x150]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea ecx, [ebp - 0x160]
mov dword [ebp - 0x1c], vtable.Control.0
call fcn.00413d10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
call fcn.0041e8e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xcc
push 0x412
push dword [ebx + 0x274]
call esi
test eax, eax
je 0x41f79c
cmp eax, 4
jne 0x41f77e
push 1
push 0xcc
push 0x402
push dword [ebx + 0x274]
call esi
mov edi, dword [ebx + 0x60]
mov eax, dword [edi + 0x488]
lea esi, [edi + 0x488]
mov ecx, esi
call dword [eax + 4]
cmp byte [edi + 0x4a4], 1
jne 0x41f753
mov dword [ebp - 4], 2
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov byte [edi + 0x4a4], 1
mov dword [ebp - 4], 3
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xcc
push 0x402
push dword [ebx + 0x274]
call esi
mov ecx, dword [ebx + 0x60]
push 0
call fcn.0043eef0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0x60]
call fcn.0043e870
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xce
push 0x412
push dword [ebx + 0x274]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41f79c
mov esi, dword [ebx + 0xf0]
mov ecx, esi
push 0x5c
call fcn.00437bb0
push 0x5b
mov ecx, esi
call fcn.00437bb0
push 0xa0
mov ecx, esi
call fcn.00437bb0
push 0xa1
mov ecx, esi
call fcn.00437bb0
cmp byte [esi + 0x208], 0
je 0x41f833
mov eax, dword [esi]
mov ecx, esi
push 0
push 0xffe7
call dword [eax + 4]
cmp byte [esi + 0x209], 0
je 0x41f84a
mov eax, dword [esi]
mov ecx, esi
push 0
push 0xffe8
call dword [eax + 4]
mov eax, dword [esi]
mov ecx, esi
push 1
push 0xffe3
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
push 1
push 0xffe9
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
push 1
push 0xffff
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
push 0
push 0xffff
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
push 0
push 0xffe9
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
push 0
push 0xffe3
call dword [eax + 8]
cmp byte [esi + 0x208], 0
je 0x41f8b5
mov eax, dword [esi]
mov ecx, esi
push 1
push 0xffe7
call dword [eax + 4]
cmp byte [esi + 0x209], 0
je 0x41f8cc
mov eax, dword [esi]
mov ecx, esi
push 1
push 0xffe8
call dword [eax + 4]
push 0xa1
mov ecx, esi
call fcn.00437c10
push 0xa0
mov ecx, esi
call fcn.00437c10
push 0x5b
mov ecx, esi
call fcn.00437c10
push 0x5c
mov ecx, esi
call fcn.00437c10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0xcf
push 0x412
push dword [ebx + 0x274]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41f79c
push 1
push 0xa2
lea ecx, [ebx + 0x6c]
call fcn.0040df40
push 1
push 0x1b
lea ecx, [ebx + 0x6c]
call fcn.0040df40
push 0
push 0x1b
lea ecx, [ebx + 0x6c]
call fcn.0040df40
push 0
push 0xa2
lea ecx, [ebx + 0x6c]
call fcn.0040df40
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xd0
push 0x412
push dword [ebx + 0x274]
call esi
test eax, eax
je 0x41f79c
lea ecx, [ebx + 0x280]
push 0xd0
cmp eax, 4
jne 0x41f9e8
call fcn.0042f090
cmp eax, 0xffffffff
je 0x41f9c6
push 0x408
push eax
push dword [ebx + 0x284]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 1
push 0xd0
push 0x402
push dword [ebx + 0x274]
call esi
mov byte [ebx + 0x23c], 1
push 1
jmp 0x41f955
call fcn.0042f090
cmp eax, 0xffffffff
je 0x41fa04
push 0x400
push eax
push dword [ebx + 0x284]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
push 0xd0
push 0x402
push dword [ebx + 0x274]
call esi
mov byte [ebx + 0x23c], 0
jmp 0x41f953
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xd1
push 0x412
push dword [ebx + 0x274]
call esi
test eax, eax
je 0x41f79c
lea ecx, [ebx + 0x280]
push 0xd1
cmp eax, 4
jne 0x41fa99
call fcn.0042f090
cmp eax, 0xffffffff
je 0x41fa72
push 0x408
push eax
push dword [ebx + 0x284]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 1
push 0xd1
push 0x402
push dword [ebx + 0x274]
call esi
push 1
mov byte [ebx + 0x23d], 1
push 0xa4
jmp 0x41f95a
call fcn.0042f090
cmp eax, 0xffffffff
je 0x41fab5
push 0x400
push eax
push dword [ebx + 0x284]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
push 0xd1
push 0x402
push dword [ebx + 0x274]
call esi
push 0
mov byte [ebx + 0x23d], 0
push 0xa4
jmp 0x41f95a
push 0xfffffffffffffff0
push dword [ebx + 0x274]
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x1c
test al, 1
je 0x41fb2d
lea eax, [ebx + 0x38]
push str.Hide_toolbar
push eax
call fcn.00431960
add esp, 8
lea ecx, [ebx + 0x280]
push 0x81
call fcn.0042f090
cmp eax, 0xffffffff
je 0x41fb29
push 0x400
push eax
push dword [ebx + 0x284]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
jmp 0x41fb74
cmp byte [ebx + 0x2bc], 0
jne 0x41f79c
lea eax, [ebx + 0x38]
push str.Show_toolbar
push eax
call fcn.00431960
add esp, 8
lea ecx, [ebx + 0x280]
push 0x81
call fcn.0042f090
cmp eax, 0xffffffff
je 0x41fb72
push 0x408
push eax
push dword [ebx + 0x284]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 5
push dword [ebx + 0x274]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x41f79c
push 0
push 0xd2
push 0x412
push dword [ebx + 0x274]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41f79c
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x41fbeb
mov eax, dword [eax + 0x10]
test eax, eax
je 0x41fbcd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41fbeb
mov ecx, dword [ebx + 0x64]
push 0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x41fbe4
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x68], 0
mov esi, dword [ebx + 0x68]
test esi, esi
jne 0x41fc3c
push 0x1cc
call fcn.0047217f
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov dword [ebp - 4], 4
mov ecx, dword [ebx + 0x64]
mov edx, dword [ecx]
call dword [edx + 0xc]
push eax
mov ecx, esi
call fcn.0040f3c0
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x68], eax
test eax, eax
je 0x41fc2e
lea edx, [eax + 0x24]
jmp 0x41fc30
xor edx, edx
mov ecx, dword [ebx + 0x64]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x41fc89
mov eax, dword [esi + 0x18]
xor ecx, ecx
test eax, eax
je 0x41fc4f
mov ecx, dword [eax + 4]
mov eax, dword [esi + 8]
test eax, eax
movzx edx, ax
mov eax, edx
jne 0x41fc5e
mov eax, dword [esi + 4]
push esi
push 0x42eba0
push ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov byte [esi + 0x1c], 0
mov ecx, dword [ebx + 0x68]
mov ecx, dword [ecx + 0x10]
call fcn.0044ec90
jmp 0x41f79c
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebx + 0x68]
mov ecx, dword [ecx + 0x10]
call fcn.0044ec90
jmp 0x41f79c
mov ecx, dword [ebx + 0x5c]
push 0
push 0
push 0x402
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x41f79c
mov ecx, ebx
call fcn.0041ec90
jmp 0x41f79c
mov esi, dword [ebx + 0x58]
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x28]
call dword [eax + 4]
mov bl, byte [esi + 0x1e]
mov dword [ebp - 4], 5
lea ecx, [esi + 0x28]
mov eax, dword [esi + 0x28]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x41fcf4
mov ecx, dword [ebp - 0x10]
call fcn.0041f300
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x30c]
cmp eax, dword [ecx + 0x310]
je 0x41f79c
mov esi, dword [ecx + 0x58]
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x28]
call dword [eax + 4]
mov ebx, dword [esi + 0x14]
mov dword [ebp - 4], 6
lea ecx, [esi + 0x28]
mov eax, dword [esi + 0x28]
call dword [eax + 8]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [esi + 0x58]
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [esi + 0x18]
mov dword [ebp - 4], 7
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 8]
imul eax, ebx, 0x64
xor ecx, ecx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebx + 0x30c]
cdq
idiv esi
mov edx, dword [ebx + 0x310]
sub edx, edi
sar edx, 2
test edx, edx
je 0x41fd8c
lea esi, [eax + 5]
mov eax, edi
nop dword [eax]
cmp dword [eax], esi
jg 0x41fd8c
inc ecx
add eax, 4
cmp ecx, edx
jb 0x41fd80
cmp ecx, edx
jb 0x41fd93
lea ecx, [edx - 1]
push 0x64
push dword [edi + ecx*4]
mov ecx, dword [ebx + 0x58]
call fcn.00422ae0
mov esi, dword [ebx + 0x58]
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x28]
call dword [eax + 4]
mov byte [esi + 0x1e], 0
mov dword [ebp - 4], 8
lea ecx, [esi + 0x28]
mov eax, dword [esi + 0x28]
call dword [eax + 8]
lea eax, [ebx + 0x50]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx + 0x58]
push eax
call fcn.00422bb0
mov ecx, ebx
call fcn.0041e0d0
jmp 0x41f79c
mov esi, dword [ebx + 0x58]
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x28]
call dword [eax + 4]
mov bl, byte [esi + 0x1e]
mov dword [ebp - 4], 9
lea ecx, [esi + 0x28]
mov eax, dword [esi + 0x28]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
test bl, bl
je 0x41fe11
mov ecx, dword [ebp - 0x10]
call fcn.0041f300
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x30c]
cmp eax, dword [ecx + 0x310]
je 0x41f79c
mov esi, dword [ecx + 0x58]
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x28]
call dword [eax + 4]
mov ebx, dword [esi + 0x14]
mov dword [ebp - 4], 0xa
lea ecx, [esi + 0x28]
mov eax, dword [esi + 0x28]
call dword [eax + 8]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [esi + 0x58]
mov eax, dword [esi + 0x28]
lea edi, [esi + 0x28]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [esi + 0x18]
mov dword [ebp - 4], 0xb
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 8]
imul eax, ebx, 0x64
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
cdq
idiv esi
mov edx, dword [ebx + 0x310]
mov esi, dword [ebx + 0x30c]
mov edi, eax
sub edx, esi
sar edx, 2
mov ecx, edx
dec ecx
cmp ecx, edx
jae 0x41fea0
lea eax, [edi - 5]
cmp dword [esi + ecx*4], eax
jge 0x41fe93
xor eax, eax
cmp ecx, edx
push 0x64
cmovbe eax, ecx
mov ecx, dword [ebx + 0x58]
push dword [esi + eax*4]
call fcn.00422ae0
mov esi, dword [ebx + 0x58]
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x28]
call dword [eax + 4]
mov byte [esi + 0x1e], 0
mov dword [ebp - 4], 0xc
lea ecx, [esi + 0x28]
mov eax, dword [esi + 0x28]
call dword [eax + 8]
lea eax, [ebx + 0x50]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx + 0x58]
push eax
call fcn.00422bb0
mov ecx, ebx
call fcn.0041e0d0
jmp 0x41f79c
push 0
push 0xd6
push 0x402
push dword [ebx + 0x274]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebx + 0x58]
push 0
push 1
call fcn.004230a0
mov ecx, eax
mov eax, 1
cdq
idiv ecx
mov edx, dword [ebx + 0x28]
lea ecx, [ebx + 0x28]
mov esi, eax
call dword [edx + 4]
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], esi
mov dword [ebp - 4], 0xd
lea ecx, [ebx + 0x28]
mov eax, dword [ebx + 0x28]
call dword [eax + 8]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebx + 0x58]
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x28]
call dword [eax + 4]
mov byte [esi + 0x1e], 0
mov dword [ebp - 4], 0xe
lea ecx, [esi + 0x28]
mov eax, dword [esi + 0x28]
call dword [eax + 8]
lea eax, [ebx + 0x50]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebx + 0x58]
push eax
call fcn.00422bb0
mov ecx, ebx
call fcn.0041e0d0
jmp 0x41f79c
mov ecx, ebx
call fcn.0041f300
jmp 0x41f79c
cmp byte [ebx + 0x2bc], 0
lea eax, [ebx + 0x38]
je 0x41ffbd
push str.Switch_to_windowed_mode
push eax
call fcn.00431960
add esp, 8
mov ecx, ebx
call fcn.004203f0
jmp 0x41f79c
push str.Switch_to_full_screen_mode
push eax
call fcn.00431960
add esp, 8
mov ecx, ebx
call fcn.004200b0
jmp 0x41f79c
mov ecx, dword [ebx + 0x5c]
push 0
push 0
push 0x403
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x41f79c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8