Function at 0x41ff83
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499675
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 0x41f632
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 0x41f600
push 0x4d0374
call fcn.00472316
add esp, 4
cmp dword [0x4d0374], 0xffffffff
jne 0x41f5fd
movaps xmm0, xmmword [0x4bca10]
movups xmmword [0x4d033c], xmm0
push 0x4d0374
movaps xmm0, xmmword [0x4bca70]
movups xmmword [0x4d034c], xmm0
mov dword [0x4d036c], 0x9c48
movaps xmm0, xmmword [0x4bca40]
movups xmmword [0x4d035c], xmm0
mov dword [0x4d0370], 0xd2
call fcn.004722cc
add esp, 4
mov edx, dword [ebp + 8]
xor esi, esi
cmp dword [esi*8 + 0x4d033c], edx
je 0x41f613
inc esi
cmp esi, 7
jb 0x41f602
jmp 0x41f632
push edx
lea eax, [ebx + 0x38]
push str.accelerator_pressed:__d
push eax
call fcn.004319e0
mov eax, dword [esi*8 + 0x4d0340]
add esp, 0xc
cmp eax, 0xffffffff
cmovne edi, eax
add edi, 0xffffff7f
cmp edi, 0x57
ja case.0x41f648.130
movzx eax, byte [edi + 0x4200e4]
jmp dword [eax*4 + 0x420094]
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 0x41f709
cmp dword [ebp - 0x158], eax
movzx eax, word [ebp - 0x158]
mov byte [ebp - 0x144], 1
jne 0x41f6d2
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x160]
push edx
push 0x42ec20
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 0x41f71e
mov ecx, dword [ebx + 0x58]
lea eax, [ebx + 0x50]
push eax
call fcn.00422c40
mov ecx, ebx
call fcn.0041e0d0
jmp 0x41f71e
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 0x41f82c
cmp eax, 4
jne 0x41f80e
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 0x41f7e3
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.0043ef90
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.0043e910
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 0x41f82c
mov esi, dword [ebx + 0xf0]
mov ecx, esi
push 0x5c
call fcn.00437c30
push 0x5b
mov ecx, esi
call fcn.00437c30
push 0xa0
mov ecx, esi
call fcn.00437c30
push 0xa1
mov ecx, esi
call fcn.00437c30
cmp byte [esi + 0x208], 0
je 0x41f8c3
mov eax, dword [esi]
mov ecx, esi
push 0
push 0xffe7
call dword [eax + 4]
cmp byte [esi + 0x209], 0
je 0x41f8da
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 0x41f945
mov eax, dword [esi]
mov ecx, esi
push 1
push 0xffe7
call dword [eax + 4]
cmp byte [esi + 0x209], 0
je 0x41f95c
mov eax, dword [esi]
mov ecx, esi
push 1
push 0xffe8
call dword [eax + 4]
push 0xa1
mov ecx, esi
call fcn.00437c90
push 0xa0
mov ecx, esi
call fcn.00437c90
push 0x5b
mov ecx, esi
call fcn.00437c90
push 0x5c
mov ecx, esi
call fcn.00437c90
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 0x41f82c
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 0x41f82c
lea ecx, [ebx + 0x280]
push 0xd0
cmp eax, 4
jne 0x41fa78
call fcn.0042f110
cmp eax, 0xffffffff
je 0x41fa56
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 0x41f9e5
call fcn.0042f110
cmp eax, 0xffffffff
je 0x41fa94
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 0x41f9e3
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xd1
push 0x412
push dword [ebx + 0x274]
call esi
test eax, eax
je 0x41f82c
lea ecx, [ebx + 0x280]
push 0xd1
cmp eax, 4
jne 0x41fb29
call fcn.0042f110
cmp eax, 0xffffffff
je 0x41fb02
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 0x41f9ea
call fcn.0042f110
cmp eax, 0xffffffff
je 0x41fb45
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 0x41f9ea
push 0xfffffffffffffff0
push dword [ebx + 0x274]
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x1c
test al, 1
je 0x41fbbd
lea eax, [ebx + 0x38]
push str.Hide_toolbar
push eax
call fcn.004319e0
add esp, 8
lea ecx, [ebx + 0x280]
push 0x81
call fcn.0042f110
cmp eax, 0xffffffff
je 0x41fbb9
push 0x400
push eax
push dword [ebx + 0x284]
call dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
jmp 0x41fc04
cmp byte [ebx + 0x2bc], 0
jne 0x41f82c
lea eax, [ebx + 0x38]
push str.Show_toolbar
push eax
call fcn.004319e0
add esp, 8
lea ecx, [ebx + 0x280]
push 0x81
call fcn.0042f110
cmp eax, 0xffffffff
je 0x41fc02
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 0x41f82c
push 0
push 0xd2
push 0x412
push dword [ebx + 0x274]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41f82c
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x41fc7b
mov eax, dword [eax + 0x10]
test eax, eax
je 0x41fc5d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41fc7b
mov ecx, dword [ebx + 0x64]
push 0
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x41fc74
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 0x68], 0
mov esi, dword [ebx + 0x68]
test esi, esi
jne 0x41fccc
push 0x1cc
call fcn.00471fe1
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 0x41fcbe
lea edx, [eax + 0x24]
jmp 0x41fcc0
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 0x41fd19
mov eax, dword [esi + 0x18]
xor ecx, ecx
test eax, eax
je 0x41fcdf
mov ecx, dword [eax + 4]
mov eax, dword [esi + 8]
test eax, eax
movzx edx, ax
mov eax, edx
jne 0x41fcee
mov eax, dword [esi + 4]
push esi
push 0x42ec20
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.0044ed40
jmp 0x41f82c
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebx + 0x68]
mov ecx, dword [ecx + 0x10]
call fcn.0044ed40
jmp 0x41f82c
mov ecx, dword [ebx + 0x5c]
push 0
push 0
push 0x402
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x41f82c
mov ecx, ebx
call fcn.0041eca0
jmp 0x41f82c
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 0x41fd84
mov ecx, dword [ebp - 0x10]
call fcn.0041f390
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x30c]
cmp eax, dword [ecx + 0x310]
je 0x41f82c
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 0x41fe1c
lea esi, [eax + 5]
mov eax, edi
nop dword [eax]
cmp dword [eax], esi
jg 0x41fe1c
inc ecx
add eax, 4
cmp ecx, edx
jb 0x41fe10
cmp ecx, edx
jb 0x41fe23
lea ecx, [edx - 1]
push 0x64
push dword [edi + ecx*4]
mov ecx, dword [ebx + 0x58]
call fcn.00422b70
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.00422c40
mov ecx, ebx
call fcn.0041e0d0
jmp 0x41f82c
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 0x41fea1
mov ecx, dword [ebp - 0x10]
call fcn.0041f390
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x30c]
cmp eax, dword [ecx + 0x310]
je 0x41f82c
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 0x41ff30
lea eax, [edi - 5]
cmp dword [esi + ecx*4], eax
jge 0x41ff23
xor eax, eax
cmp ecx, edx
push 0x64
cmovbe eax, ecx
mov ecx, dword [ebx + 0x58]
push dword [esi + eax*4]
call fcn.00422b70
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.00422c40
mov ecx, ebx
call fcn.0041e0d0
jmp 0x41f82c
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.00423120
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.00422c40
mov ecx, ebx
call fcn.0041e0d0
jmp 0x41f82c
mov ecx, ebx
call fcn.0041f390
jmp 0x41f82c
cmp byte [ebx + 0x2bc], 0
lea eax, [ebx + 0x38]
je 0x42004d
push str.Switch_to_windowed_mode
push eax
call fcn.004319e0
add esp, 8
mov ecx, ebx
call fcn.00420480
jmp 0x41f82c
push str.Switch_to_full_screen_mode
push eax
call fcn.004319e0
add esp, 8
mov ecx, ebx
call fcn.00420140
jmp 0x41f82c
mov ecx, dword [ebx + 0x5c]
push 0
push 0
push 0x403
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x41f82c
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