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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x589560]
xor eax, esp
mov dword [esp + 0x248], eax
movzx eax, word [ebp + 8]
sub eax, 1
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
je 0x40336a
sub eax, 1
jne 0x403671
push 0
call fcn.00406090
mov ebx, dword [ebx + 0x974]
push 1
mov dword [ebx + 0x64], 1
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x403671
mov ecx, dword [ebx + 0x570]
push 0
push 0
push 0x188
push edi
mov dword [esp + 0x34], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x40359e
cmp esi, eax
jge 0x40359e
cmp esi, 0xffffffff
je 0x40359e
mov edx, dword [ebx + 0x56c]
mov edi, dword [edx + esi*4]
mov eax, dword [ebx + 0x1e0]
cmp eax, dword [edi]
je 0x403402
mov ecx, dword [ebx + 0x550]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push 0
call eax
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
push 1
push eax
mov esi, ebx
mov dword [ebx + 0x1e0], eax
call fcn.004059a0
mov eax, dword [ebx + 0x1e0]
test eax, eax
jl 0x403402
cmp eax, dword [ebx + 0x41c]
jge 0x403402
cmp dword [ebx + 0x43c], 0
je 0x403402
mov dword [ebx + 0x420], eax
cmp word [ebp + 0xc], 0
je 0x40344a
push 0x206
lea ecx, [esp + 0x4e]
push 0
push ecx
mov word [esp + 0x54], 0
call fcn.005002f0
mov eax, dword [ebx + 0x970]
mov ecx, dword [eax + 4]
add esp, 0xc
push 0x104
lea edx, [esp + 0x4c]
push edx
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x48]
push edx
mov ecx, ebx
call fcn.00406430
mov eax, dword [ebx + 0x6ac]
mov ecx, dword [ebx + 0x6b8]
mov edx, dword [ebx + 0x6a8]
mov edx, dword [edx + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov dword [esp + 0x24], ecx
lea ecx, [ebx + 0x6a8]
push eax
mov eax, dword [edi + 4]
push eax
call edx
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov ecx, dword [edi + 4]
lea eax, [esp + 0xc]
push eax
push ecx
call esi
mov edx, dword [ebx + 0x1e0]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x550]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
mov edx, dword [eax + 0x14]
call edx
push eax
call esi
mov eax, dword [esp + 0x24]
cmp eax, dword [edi]
jne 0x403535
mov edx, dword [esp + 0x1c]
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call esi
mov eax, dword [esp + 0x28]
sub dword [esp + 0x40], eax
or ecx, 0xffffffff
sub ecx, eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x38], ecx
sub dword [esp + 0x44], eax
mov ecx, dword [ebx + 0x550]
or edx, 0xffffffff
sub edx, eax
add dword [esp + 0x3c], edx
mov eax, dword [ebx + 0x1e0]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
push 1
lea edx, [esp + 0x3c]
push edx
mov edx, dword [eax + 0x14]
call edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x28]
sub dword [esp + 0xc], eax
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x10], eax
sub dword [esp + 0x18], eax
mov eax, dword [ebx + 0x1e0]
mov ecx, dword [ebx + 0x550]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
push 1
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 0x14]
call edx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebx + 0x1e0]
mov ecx, dword [ebx + 0x550]
mov edx, dword [edi + 4]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
push 0
push edx
mov edx, dword [eax + 0x14]
push 0xbc0
call edx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x403671
push 0
push 0
push 0x18b
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
sub eax, 1
cmp esi, eax
je 0x403343
lea ecx, [esp + 0xc]
push ecx
push esi
xor eax, eax
push 0x198
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea edx, [esp + 0x28]
push edx
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x20]
sub ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x28]
push ecx
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x403671
push eax
add esi, 0xffffffff
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x186
push edi
call esi
mov edx, dword [ebx + 0x96c]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebx + 0x96c]
mov edx, dword [ecx + 0x34]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call esi
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004fe05a
mov esp, ebp
pop ebp
ret 8