Function at 0x435470
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4c38
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x6679c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x8c], ebx
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x38]
push dword [edi]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x80], edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4354e5
sub esp, 8
mov ecx, ebx
mov eax, esp
push 0
push SysReAllocStringLen
mov dword [eax], 0
sub esp, 8
mov eax, esp
mov dword [eax], 0
push dword [ebp - 0x74]
call fcn.004339b0
cmp dword [ebp + 0xc], 0
je 0x43563d
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x435634
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x435634
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x43563d
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]
mov esi, dword [ebp - 0x20]
sar eax, 1
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x28]
push 2
push dword [ebp - 0x74]
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
mov ebx, eax
mov dword [ebp - 0x6c], ecx
lea eax, [edi + esi]
sar ebx, 1
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
add esi, ecx
mov ecx, dword [ebp - 0x6c]
sub ecx, eax
mov dword [ebp - 0x20], esi
add edi, ecx
mov ecx, dword [ebp - 0x70]
mov eax, ecx
mov dword [ebp - 0x18], edi
sub eax, ebx
sub ecx, ebx
add dword [ebp - 0x1c], eax
add dword [ebp - 0x14], ecx
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 0x4355d8
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 0x4355f1
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 0x435604
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 0x435617
sub edi, ecx
add edx, edi
add ecx, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 0x80]
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]
mov ebx, dword [ebp - 0x8c]
jmp 0x43563d
push 0
mov ecx, edi
call fcn.0040f7b0
push dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
mov dword [ebp - 0x70], eax
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x682cbc]
cmp eax, dword [esi + 4]
jle 0x4356bb
push 0x682cbc
call fcn.0058bdbd
add esp, 4
cmp dword [0x682cbc], 0xffffffff
jne 0x4356bb
mov dword [ebp - 4], 0
mov dword [0x682cc0], 0
mov dword [0x682cc4], 0
call fcn.00408260
push 0x5dca00
mov dword [0x682cc0], eax
call fcn.0058c29d
push 0x682cbc
mov dword [ebp - 4], 0xffffffff
call fcn.0058bd7e
add esp, 8
mov eax, dword [0x682cc8]
cmp eax, dword [esi + 4]
jle 0x435708
push 0x682cc8
call fcn.0058bdbd
add esp, 4
cmp dword [0x682cc8], 0xffffffff
jne 0x435708
mov dword [ebp - 4], 1
call fcn.00436700
push 0x5dc9c0
call fcn.0058c29d
push 0x682cc8
mov dword [ebp - 4], 0xffffffff
call fcn.0058bd7e
add esp, 8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
call fcn.00408260
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 2
cmp dword [0x682cdc], 0
je 0x435770
push ecx
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004368c0
mov ecx, eax
call fcn.004366c0
mov esi, dword [eax]
test esi, esi
je 0x43574e
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov eax, edx
mov ecx, dword [esi + 8]
and edx, 3
shr eax, 2
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
push 0
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [ebp - 0x70]
push eax
call fcn.004365a0
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x43583e
push 0xffffffffffffffec
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
lea ecx, [ebp - 0x7c]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00436de0
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ecx + 0x14], esi
call fcn.004360c0
mov eax, dword [eax]
cmp eax, dword [0x682cc0]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
je 0x4357dd
call fcn.00436e70
mov eax, dword [ebp - 0x84]
inc dword [eax + 0x14]
jmp 0x4357ef
call fcn.00436e70
mov eax, dword [ebp - 0x84]
mov dword [eax + 0x14], 1
mov edi, dword [ebp - 0x7c]
mov esi, dword [edi]
mov dword [ebp - 0x6c], esi
cmp esi, edi
je 0x435841
mov ebx, dword [ebp - 0x70]
nop
test byte [esi + 0x14], 8
je 0x435819
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 0x6c]
call fcn.0040e730
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x7c]
cmp esi, edi
jne 0x435800
mov ebx, dword [ebp - 0x8c]
jmp 0x435841
mov edi, dword [ebp - 0x7c]
cmp byte [ebx + 0xdc], 0
jne 0x4359c5
nop
push 0
push 0
push 0
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4359c2
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
call fcn.00402c20
test eax, eax
je 0x435a3d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x6c], esi
mov byte [ebp - 4], 3
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x4358b5
push 0x400
lea ecx, [ebp - 0x6c]
call fcn.00407400
mov esi, dword [ebp - 0x6c]
push 0x400
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [esi - 8]
push esi
call fcn.005a827e
add esp, 8
test eax, eax
js 0x435a33
cmp eax, dword [esi - 8]
jg 0x435a33
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [ebp - 0x7c]
mov ecx, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x435926
cmp dword [eax + 0x10], edi
jae 0x435900
mov eax, dword [eax + 8]
jmp 0x435904
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x4358f6
cmp ecx, edx
je 0x435926
cmp edi, dword [ecx + 0x10]
jb 0x435926
mov edi, dword [ebp - 0x70]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x70]
cmp dword [ebp - 0xa8], eax
jne 0x435960
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
je 0x435a0e
cmp eax, 2
je 0x435a0e
cmp eax, 0x112
jne 0x435960
cmp dword [ebp - 0xa0], 0xf060
je 0x435a0e
cmp byte [ebx + 0xdc], 0
jne 0x435a15
mov eax, dword [ebx]
lea ecx, [ebp - 0xa8]
push ecx
mov ecx, ebx
call dword [eax + 0x60]
test eax, eax
jne 0x435999
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 0x4359b5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebx + 0xdc], 0
je 0x435850
mov edi, dword [ebp - 0x7c]
mov ecx, dword [0x682cdc]
mov edx, 0
mov eax, dword [0x682cd8]
sub ecx, 1
mov dword [0x682cdc], ecx
cmove eax, edx
mov dword [0x682cd8], eax
test ecx, ecx
je 0x435a6e
push ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004368c0
mov ecx, eax
call fcn.004366c0
mov esi, dword [eax]
test esi, esi
jne 0x435a47
jmp 0x435a49
mov byte [ebx + 0xdc], 1
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4359c2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4359c2
push 0x80070057
call fcn.004024f0
push 0x80004005
call fcn.004024f0
mov esi, dword [esi]
mov edx, dword [eax + 8]
mov eax, edx
mov ecx, dword [esi + 8]
and edx, 3
shr eax, 2
dec ecx
and ecx, eax
mov eax, dword [esi + 4]
push 1
mov eax, dword [eax + ecx*4]
push dword [eax + edx*4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edi, dword [ebp - 0x7c]
mov eax, dword [edi]
mov ebx, dword [0x682cc0]
mov dword [ebp - 0x6c], eax
cmp eax, edi
je 0x435adb
nop dword [eax]
lea esi, [eax + 0x10]
mov ecx, ebx
mov eax, dword [ebx + 4]
cmp byte [eax + 0xd], 0
jne 0x435acc
mov edx, dword [esi]
cmp dword [eax + 0x10], edx
jae 0x435a9a
mov eax, dword [eax + 8]
jmp 0x435a9e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x435a90
cmp ecx, ebx
je 0x435acc
cmp edx, dword [ecx + 0x10]
jb 0x435acc
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.00436e70
mov eax, dword [ebp - 0x84]
dec dword [eax + 0x14]
mov ebx, dword [0x682cc0]
mov edi, dword [ebp - 0x7c]
lea ecx, [ebp - 0x6c]
call fcn.0040e730
mov eax, dword [ebp - 0x6c]
cmp eax, edi
jne 0x435a80
mov esi, dword [ebx]
mov dword [ebp - 0x70], esi
cmp esi, ebx
je 0x435b52
cmp dword [esi + 0x14], 0
jg 0x435b43
mov ecx, dword [edi + 4]
mov eax, edi
cmp byte [ecx + 0xd], 0
jne 0x435b15
mov edx, dword [esi + 0x10]
cmp dword [ecx + 0x10], edx
jae 0x435b02
mov ecx, dword [ecx + 8]
jmp 0x435b06
mov eax, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x435af8
cmp eax, edi
je 0x435b15
cmp edx, dword [eax + 0x10]
jae 0x435b17
mov eax, edi
cmp eax, edi
je 0x435b26
push 1
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 0x70]
call fcn.0040e730
push esi
lea eax, [ebp - 0x80]
push eax
call fcn.00436120
mov ebx, dword [0x682cc0]
mov edi, dword [ebp - 0x7c]
jmp 0x435b4b
lea ecx, [ebp - 0x70]
call fcn.0040e730
mov esi, dword [ebp - 0x70]
cmp esi, ebx
jne 0x435ae4
mov esi, dword [ebp - 0x8c]
mov edi, dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x435b87
push dword [eax + 0x38]
call edi
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x435b87
mov dword [esi + 0xe0], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0xa4], 0x12
jne 0x435b9a
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x435bbd
cmp byte [esi + 0xdd], 0
je 0x435bbd
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]
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x435bcf
push dword [esi + 0x38]
call edi
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x80]
mov esi, dword [esi + 0xd8]
push ecx
push dword [ecx]
lea ecx, [ebp - 0x7c]
push eax
call fcn.00436660
push dword [ebp - 0x7c]
call fcn.0058bc65
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058bc6a
mov esp, ebp
pop ebp
ret 0xc