Function at 0x40fb10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2b9d
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4e4018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x7c], esi
mov eax, dword [ebp + 8]
lea edi, [esi + 0x38]
push dword [edi]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x8c], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40fb84
sub esp, 8
mov eax, esp
push 0
push SysReAllocString
push 0
push ecx
mov dword [eax], 0
mov ecx, esi
mov eax, esp
mov dword [eax], 0
push dword [ebp - 0x6c]
call fcn.0040df20
cmp dword [ebp + 0xc], 0
je 0x40fccf
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x40fba8
push ecx
mov ecx, edi
call fcn.004040f0
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40fccf
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [ebp - 0x30]
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x40], xmm0
call esi
lea eax, [ebp - 0x20]
push eax
push dword [edi]
call esi
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x2c]
cdq
sub eax, edx
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
sar eax, 1
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
push 2
push dword [ebp - 0x6c]
lea eax, [eax + edx]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov dword [ebp - 0x84], eax
lea eax, [edi + esi]
cdq
sub eax, edx
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x78]
sar eax, 1
sub ecx, eax
add esi, ecx
mov ecx, dword [ebp - 0x80]
sub ecx, eax
mov dword [ebp - 0x20], esi
mov eax, edx
add edi, ecx
sub eax, dword [ebp - 0x84]
sub edx, dword [ebp - 0x84]
add dword [ebp - 0x1c], eax
add dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_MonitorFromWindow]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
cmp esi, ecx
jge 0x40fc78
sub ecx, esi
add esi, ecx
add eax, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
cmp edx, edi
jge 0x40fc91
sub edi, edx
add edx, edi
add ecx, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x38]
cmp eax, edi
jle 0x40fca4
sub edi, eax
add esi, edi
add eax, edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x34]
cmp ecx, edi
jle 0x40fcb7
sub edi, ecx
add edx, edi
add ecx, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x8c]
sub ecx, edx
push 1
push ecx
sub eax, esi
push eax
push edx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword fs:[0x2c]
mov esi, dword [edi]
mov dword [ebp - 0x78], esi
mov edi, dword [eax]
mov eax, dword [0x4f9598]
cmp eax, dword [edi + 4]
jle 0x40fd5d
push 0x4f9598
call fcn.004879bb
add esp, 4
cmp dword [0x4f9598], 0xffffffff
jne 0x40fd5d
mov dword [ebp - 4], 0
push 0x18
mov dword [0x4f959c], 0
mov dword [0x4f95a0], 0
call fcn.0048784a
push 0x4bb3a0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x4f959c], eax
call fcn.00487cf0
push 0x4f9598
mov dword [ebp - 4], 0xffffffff
call fcn.00487971
add esp, 0xc
mov eax, dword [0x4f95a4]
cmp eax, dword [edi + 4]
jle 0x40fdd2
push 0x4f95a4
call fcn.004879bb
add esp, 4
cmp dword [0x4f95a4], 0xffffffff
jne 0x40fdd2
mov dword [ebp - 4], 1
xorps xmm0, xmm0
push 8
movups xmmword [0x4f95a8], xmm0
mov dword [0x4f95b8], 0
call fcn.0048784a
push 0x4bb390
mov dword [eax + 4], 0
mov dword [0x4f95a8], eax
mov dword [eax], 0x4f95a8
call fcn.00487cf0
push 0x4f95a4
mov dword [ebp - 4], 0xffffffff
call fcn.00487971
add esp, 0xc
push 0x18
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
call fcn.0048784a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 2
mov ecx, dword [0x4f95b8]
test ecx, ecx
je 0x40fe46
mov eax, dword [0x4f95b4]
add eax, ecx
mov ecx, dword [0x4f95b0]
mov dword [ebp - 0x84], eax
dec ecx
push 0
lea edx, [eax - 1]
mov eax, edx
and edx, 3
shr eax, 2
and ecx, eax
mov eax, dword [0x4f95ac]
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [0x4f95b8]
mov edx, dword [0x4f95b4]
mov edi, dword [0x4f95b0]
lea eax, [edx + ecx]
test al, 3
jne 0x40fe7b
lea eax, [ecx + 4]
shr eax, 2
cmp edi, eax
ja 0x40fe7b
push ecx
call fcn.00411450
mov ecx, dword [0x4f95b8]
mov edx, dword [0x4f95b4]
mov edi, dword [0x4f95b0]
lea eax, [edi*4 - 1]
and edx, eax
lea eax, [edi - 1]
mov dword [0x4f95b4], edx
add edx, ecx
mov ecx, edx
mov dword [ebp - 0x84], edx
shr ecx, 2
and ecx, eax
mov eax, dword [0x4f95ac]
lea edi, [ecx*4]
cmp dword [edi + eax], 0
jne 0x40fecc
push 0x10
call fcn.0048784a
mov ecx, dword [0x4f95ac]
add esp, 4
mov edx, dword [ebp - 0x84]
mov dword [edi + ecx], eax
mov eax, dword [0x4f95ac]
mov eax, dword [edi + eax]
and edx, 3
mov dword [eax + edx*4], esi
inc dword [0x4f95b8]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x40ffc9
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.004106e0
mov dword [eax], esi
mov esi, dword [0x4f959c]
mov ecx, esi
mov edx, dword [ebp - 0x6c]
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40ff27
cmp dword [eax + 0x10], edx
jae 0x40ff1d
mov eax, dword [eax + 8]
jmp 0x40ff21
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x40ff13
cmp byte [ecx + 0xd], 0
jne 0x40ff43
cmp edx, dword [ecx + 0x10]
jb 0x40ff43
cmp ecx, esi
je 0x40ff43
lea eax, [ebp - 0x6c]
push eax
call fcn.004108a0
inc dword [eax]
jmp 0x40ff52
lea eax, [ebp - 0x6c]
push eax
call fcn.004108a0
mov dword [eax], 1
mov edx, dword [ebp - 0x74]
mov esi, dword [edx]
cmp esi, edx
je 0x40ffcc
mov edi, dword [ebp - 0x78]
nop
test byte [esi + 0x14], 8
je 0x40ff79
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40ffaa
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40ffa6
cmp esi, dword [eax + 8]
jne 0x40ffa6
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40ff96
mov esi, eax
jmp 0x40ffc0
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40ffc0
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40ffb4
mov edx, dword [ebp - 0x74]
cmp esi, edx
jne 0x40ff60
jmp 0x40ffcc
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x7c]
xorps xmm0, xmm0
movups xmmword [ebp - 0xa8], xmm0
mov dword [ebp - 0x90], 0
movq qword [ebp - 0x98], xmm0
cmp byte [eax + 0xe8], 0
jne 0x41017a
push 0
push 0
push 0
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x410177
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
call fcn.00404a90
test eax, eax
je 0x410446
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0xc]
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x80], esi
mov byte [ebp - 4], 3
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or ecx, eax
jge 0x41005f
push 0x400
lea ecx, [ebp - 0x80]
call fcn.00404650
mov esi, dword [ebp - 0x80]
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi - 8]
push esi
call fcn.0048fe2b
add esp, 8
test eax, eax
js 0x41043c
cmp eax, dword [esi - 8]
jg 0x41043c
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [ebp - 0x74]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x4100b4
cmp dword [eax + 0x10], edi
jae 0x4100aa
mov eax, dword [eax + 8]
jmp 0x4100ae
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4100a0
cmp byte [ecx + 0xd], 0
jne 0x4100d6
cmp edi, dword [ecx + 0x10]
jb 0x4100d6
cmp ecx, edx
je 0x4100d6
mov edi, dword [ebp - 0x78]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0xa8], eax
jne 0x410110
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
je 0x410197
cmp eax, 2
je 0x410197
cmp eax, 0x112
jne 0x410110
cmp dword [ebp - 0xa0], 0xf060
je 0x410197
mov edi, dword [ebp - 0x7c]
cmp byte [edi + 0xe8], 0
jne 0x4101a1
mov eax, dword [edi]
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x58]
call eax
test eax, eax
jne 0x41014e
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41016a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [edi + 0xe8], 0
je 0x40fff8
mov edx, dword [ebp - 0x74]
mov ecx, dword [0x4f95b8]
sub ecx, 1
mov dword [0x4f95b8], ecx
jne 0x4101bf
mov dword [0x4f95b4], 0
jmp 0x4101f0
mov eax, dword [ebp - 0x7c]
mov byte [eax + 0xe8], 1
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410177
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x410177
mov eax, dword [0x4f95b4]
add eax, ecx
mov ecx, dword [0x4f95b0]
dec ecx
push 1
lea edx, [eax - 1]
mov eax, edx
and edx, 3
shr eax, 2
and ecx, eax
mov eax, dword [0x4f95ac]
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 0x74]
mov esi, dword [edx]
mov edi, dword [0x4f959c]
cmp esi, edx
je 0x410295
mov eax, dword [edi + 4]
mov ecx, edi
cmp byte [eax + 0xd], 0
jne 0x41022b
mov edx, dword [ebp - 0x74]
mov edi, dword [esi + 0x10]
cmp dword [eax + 0x10], edi
jae 0x41021b
mov eax, dword [eax + 8]
jmp 0x41021f
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x410211
mov edi, dword [0x4f959c]
cmp byte [ecx + 0xd], 0
jne 0x410251
mov eax, dword [esi + 0x10]
cmp eax, dword [ecx + 0x10]
jb 0x410251
cmp ecx, edi
je 0x410251
lea eax, [esi + 0x10]
push eax
call fcn.004108a0
dec dword [eax]
mov edi, dword [0x4f959c]
mov edx, dword [ebp - 0x74]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x410277
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x410273
cmp esi, dword [eax + 8]
jne 0x410273
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x410263
mov esi, eax
jmp 0x41028d
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41028d
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x410281
cmp esi, edx
jne 0x410200
mov esi, dword [edi]
cmp esi, edi
je 0x4103c5
nop
cmp dword [esi + 0x14], 0
jg 0x410381
mov eax, dword [edx + 4]
mov ecx, edx
cmp byte [eax + 0xd], 0
jne 0x4102cc
mov edi, dword [esi + 0x10]
cmp dword [eax + 0x10], edi
jae 0x4102c2
mov eax, dword [eax + 8]
jmp 0x4102c6
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4102b8
cmp byte [ecx + 0xd], 0
jne 0x4102e7
mov eax, dword [ecx + 0x10]
cmp dword [esi + 0x10], eax
jb 0x4102e7
cmp ecx, edx
je 0x4102e7
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 8]
lea edi, [esi + 8]
mov ecx, esi
cmp byte [eax + 0xd], 0
je 0x410332
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x410310
nop
cmp esi, dword [eax + 8]
jne 0x410310
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x410300
mov edx, dword [ecx + 4]
mov esi, eax
cmp byte [edx + 0xd], 0
jne 0x410360
mov eax, ecx
nop dword [eax]
cmp eax, dword [edx + 8]
jne 0x410360
mov eax, edx
mov edx, dword [edx + 4]
cmp byte [edx + 0xd], 0
je 0x410320
jmp 0x410360
mov esi, eax
mov edx, dword [esi]
cmp byte [edx + 0xd], 0
jne 0x41034c
nop dword [eax]
mov eax, dword [edx]
mov esi, edx
mov edx, eax
cmp byte [eax + 0xd], 0
je 0x410340
mov eax, dword [edi]
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x410360
mov eax, dword [edx]
mov edx, eax
cmp byte [eax + 0xd], 0
je 0x410356
push ecx
mov ecx, 0x4f959c
call fcn.00411670
push 0x18
push eax
call fcn.0048783c
mov edi, dword [0x4f959c]
add esp, 8
mov edx, dword [ebp - 0x74]
jmp 0x4103bd
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4103a7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4103a3
cmp esi, dword [eax + 8]
jne 0x4103a3
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x410393
mov esi, eax
jmp 0x4103bd
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4103bd
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4103b1
cmp esi, edi
jne 0x4102a0
cmp dword [ebp - 0xa4], 0x12
jne 0x4103d8
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x4103f2
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov esi, dword [ebp - 0x8c]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41040c
push dword [esi]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x74]
mov esi, dword [eax + 0xe4]
call fcn.004107c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048782e
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.00404860
push 0x80004005
call fcn.00404860
int3