Function at 0x4076d0
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x248]
mov esi, ecx
mov ebx, edi
mov eax, dword [esi + 0xd0]
and ebx, 0xffff
shr edi, 0x10
push eax
mov dword [esp + 0x30], edi
mov dword [esi + 0xa4], edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x407810
mov ecx, dword [esi + 0xd0]
xor ebx, ebx
push ebx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x32]
mov word [esp + 0x30], bx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x30]
push 0x104
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x30]
push ecx
call fcn.0041009c
add esp, 4
test eax, eax
jbe 0x4077eb
mov ecx, dword [esi + 0xbc]
lea edi, [esi + 0xbc]
cmp ecx, ebx
je 0x407b8e
mov edx, dword [ecx]
lea eax, [esp + 0x30]
push eax
call dword [edx + 0x20]
lea ecx, [esi + 0x100]
mov edx, dword [esi + 0x100]
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edi]
push edx
push eax
mov ebp, dword [ecx]
call dword [ebp + 0x24]
mov eax, dword [esi + 0xc4]
cmp eax, ebx
je 0x4077cc
mov ecx, dword [edi]
mov eax, dword [eax + 0x218]
push eax
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [edi]
mov ebp, dword [ecx]
mov ecx, dword [esi + 0xc4]
call fcn.00405210
mov ecx, dword [edi]
push eax
call dword [ebp + 0x2c]
mov edx, dword [esi + 0xb4]
lea ecx, [esi + 0xac]
push edi
push 1
push edx
call fcn.0040a000
push 1
mov dword [edi], ebx
push ebx
jmp 0x407b84
mov ecx, dword [esi + 0xbc]
cmp ecx, ebx
je 0x4077fb
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [esi + 0xbc], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10
mov eax, dword [esi + 0xa8]
test eax, eax
je 0x40787a
mov eax, dword [esi + 0xbc]
lea ebp, [esi + 0xbc]
test eax, eax
je 0x407861
mov eax, dword [esi + 0xd0]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x407861
mov ecx, dword [ebp]
push edi
push ebx
mov edx, dword [ecx]
call dword [edx + 0x24]
mov eax, dword [esi + 0xb4]
lea ecx, [esi + 0xac]
push ebp
push 1
push eax
call fcn.0040a000
mov dword [ebp], 0
mov dword [esi + 0xa8], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10
push edi
lea ecx, [esi + 0x44]
push ebx
call fcn.0040e310
mov ebp, eax
cmp ebp, 8
mov dword [esp + 0x20], ebp
jne 0x407aaa
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x407aaa
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x407aaa
mov edx, dword [esi + 0xc8]
mov ecx, dword [esi + 0xbc]
test ecx, ecx
mov ebp, dword [edx + 0x74]
mov dword [esp + 0x24], ebp
je 0x4078da
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0xbc], 0
push ebp
mov ecx, esi
call fcn.00408b70
test eax, eax
mov dword [esi + 0xbc], eax
je 0x407aa6
mov ecx, dword [esi + 0xc4]
mov dword [esi + 0xa8], 1
test ecx, ecx
je 0x40792a
mov ecx, dword [ecx + 0x22c]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x14]
mov eax, dword [esi + 0xc4]
mov ecx, dword [esi + 0xbc]
mov eax, dword [eax + 0x218]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esi + 0xbc]
lea ebp, [esi + 0x4c]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x28]
mov eax, dword [esi + 0xc0]
push eax
lea ecx, [eax + 1]
mov dword [esi + 0xc0], ecx
mov ecx, dword [esi + 0xbc]
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esi + 0xbc]
push edi
push ebx
mov eax, dword [ecx]
call dword [eax + 0x24]
cmp dword [esp + 0x24], 0x505
jne 0x407a83
mov ebp, dword [ebp]
mov eax, dword [esi + 0x54]
mov dword [esp + 0x14], edi
lea ecx, [ebx + 0x1e]
add edi, 0x1e
cmp ebp, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edi
mov edx, ebp
jg 0x407993
mov edx, eax
cmp ecx, edx
jle 0x4079a3
cmp ebp, eax
mov dword [esp + 0x18], ebp
jg 0x4079a3
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x58]
cmp eax, ecx
mov edx, eax
jg 0x4079b1
mov edx, ecx
cmp edi, edx
jle 0x4079c1
cmp eax, ecx
mov dword [esp + 0x1c], eax
jg 0x4079c1
mov dword [esp + 0x1c], ecx
lea edi, [esi + 0xcc]
lea ecx, [esp + 0x10]
push ecx
lea ebp, [edi + 0x34]
push ebp
call dword [sym.imp.USER32.dll_CopyRect]
xor eax, eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x24], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp]
sub edx, eax
mov dword [edi + 0x2c], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 4]
mov dword [edi + 0x30], eax
mov edx, dword [edi + 0x24]
mov ecx, dword [edi + 0x28]
mov eax, dword [edi + 0x2c]
mov ebp, dword [edi + 0x30]
inc edx
inc ecx
dec eax
mov dword [edi + 0x28], ecx
dec ebp
mov ecx, edi
mov dword [edi + 0x24], edx
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ebp
call fcn.00405d10
mov ecx, dword [esi + 0xd0]
push 0x41e738
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esi + 0x4c]
lea edx, [esi + 0x110]
push eax
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0xd0]
push 0x44
push 0x28
push 0x64
push eax
push ebx
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi + 0xd0]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
push 0x7f01
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10
push 0x7f03
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10
mov ebp, dword [esp + 0x20]
mov eax, dword [esi + 0xbc]
test eax, eax
jne 0x407b8e
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x407ad3
mov ecx, dword [esi + 0xb4]
sub ecx, eax
sar ecx, 2
jne 0x407b8e
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x407af0
mov ecx, dword [eax + 0x74]
test ecx, ecx
jge 0x407af0
mov edx, dword [eax + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, byte [esi + 0x99]
test ebp, ebp
jg 0x407b53
test al, al
jne 0x407b30
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], edi
mov ecx, dword [esi + 0x90]
push edi
mov eax, edi
push ebx
push eax
lea edx, [esi + 0x4c]
push ecx
push edx
mov byte [esi + 0x98], 1
mov byte [esi + 0x99], 1
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x407b80
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10
test al, al
je 0x407b80
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x407b80
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x407b80
mov edx, dword [esi + 4]
push eax
push 1
push edi
push ebx
push edx
lea ecx, [esi + 0x44]
call fcn.0040e3d0
push 1
push 0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret 0x10