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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [ebp + 0xc]
push ebx
push esi
sub eax, 0xf
push edi
je 0x4028b7
sub eax, 0x101
je 0x4026ef
dec eax
je 0x4025d3
dec eax
dec eax
jne 0x402a38
cmp dword [ebp + 0x10], 0x19
jne 0x402a38
inc dword [0x411054]
cmp dword [0x411054], 0x19
jle 0x4025b5
mov dword [0x411054], 1
push 0
push 0x414bd0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x402a38
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x402679
mov esi, 0x100
lea eax, [ebp - 0x250]
push esi
push eax
push 0x19
push dword [0x414bf0]
call fcn.00408ff4
add esp, 0x10
lea eax, [ebp - 0x110]
push esi
push eax
push 0x3b
push dword [0x414bf0]
call fcn.00408ff4
mov esi, dword [ebp + 8]
xor edi, edi
add esp, 0x10
cmp dword [0x414bec], edi
je 0x40262a
push 0x19
push esi
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [ebp - 0x250]
push 4
push eax
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402659
push 2
push esi
mov dword [0x4148a8], 1
call dword [sym.imp.USER32.dll_EndDialog]
cmp dword [0x414bec], edi
je 0x4028af
push edi
push 0x96
push 0x19
push esi
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4028af
push 1
pop esi
cmp eax, esi
jne 0x4026a0
cmp byte [0x414bc0], 0xb
jne 0x402694
mov dword [0x414850], esi
jmp 0x402a38
push dword [ebp + 8]
call fcn.00402b60
pop ecx
push esi
jmp 0x4026b0
cmp eax, 5
jne 0x4026c0
push dword [ebp + 8]
call fcn.00402b60
pop ecx
push 0
call fcn.00402a41
pop ecx
call fcn.00402d45
jmp 0x402a38
cmp eax, 3
jne 0x4026ca
push 0xffffffffffffffff
push esi
jmp 0x4026d7
cmp eax, 4
jne 0x402a38
push 0xffffffffffffffff
push 0
push 0x185
push 0x3eb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
jmp 0x402a38
mov ebx, dword [ebp + 8]
push ebx
call fcn.00408e47
pop ecx
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push eax
push 0x2f
push dword [0x414bf0]
call fcn.00408ff4
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 5
push ebx
call edi
lea eax, [ebp - 0x110]
push esi
push eax
push 0x30
push dword [0x414bf0]
call fcn.00408ff4
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 2
push ebx
call edi
lea eax, [ebp - 0x110]
push esi
push eax
push 0x31
push dword [0x414bf0]
call fcn.00408ff4
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 3
push ebx
call edi
lea eax, [ebp - 0x110]
push esi
push eax
push 0x32
push dword [0x414bf0]
call fcn.00408ff4
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 4
push ebx
call edi
lea eax, [ebp - 0x110]
push esi
push eax
push dword [0x414840]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x110]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 4]
mov eax, dword [0x414918]
sub edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
push 0
sub eax, edx
push edx
cdq
sub eax, edx
push ecx
sar eax, 1
push eax
mov eax, dword [0x414914]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [0x414bc0], 0xb
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [0x414838], ebx
jne 0x40282f
cmp dword [0x414c60], 0
je 0x40282f
push 0
push 1
push ebx
call esi
push eax
call edi
push 0
push 5
push dword [0x414838]
call esi
push eax
call edi
call fcn.00402d45
push 0
push 0xef6
push dword [0x414838]
call esi
push eax
call edi
push 0xef6
push ebx
call esi
test eax, eax
mov dword [ebp + 8], eax
je 0x40289a
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
inc eax
push 0x414928
mov dword [0x414928], eax
mov eax, dword [ebp - 0xc]
inc eax
push ebx
mov dword [0x41492c], eax
call esi
mov eax, dword [ebp - 8]
push 0x414830
dec eax
push ebx
mov dword [0x414830], eax
mov eax, dword [ebp - 4]
dec eax
mov dword [0x414834], eax
call esi
xor eax, eax
cmp dword [0x4148f4], eax
jne 0x4028af
cmp dword [ebp + 8], eax
je 0x4028af
push eax
push dword [ebp + 8]
call edi
push 1
pop eax
jmp 0x402a3a
cmp dword [0x414444], 0
jne 0x4028dc
push 0
push 0x96
push 0x19
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x414444], 1
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [0x414c18]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
push ebx
call esi
push 0xcc0020
push 0
push 0
push ebx
push 0x106
push 0x7a
push 0xc
push 0xc
push edi
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 0x10]
push ebx
call esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [0x414bec], 0
je 0x402a28
push dword [ebp + 8]
push edi
call fcn.00409c1d
mov eax, dword [0x414834]
pop ecx
sub eax, dword [0x41492c]
pop ecx
push 3
movzx eax, ax
shl eax, 1
cdq
pop ecx
idiv ecx
push 0x7f0000
push edi
mov esi, eax
mov eax, dword [0x414830]
sub eax, dword [0x414928]
movzx eax, ax
imul eax, dword [0x414888]
cdq
idiv dword [0x414c58]
movzx ebx, ax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [0x41492c]
and dword [ebp + 0x10], 0
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x414834]
dec eax
mov dword [ebp - 4], eax
mov eax, dword [0x414928]
test ebx, ebx
mov dword [ebp - 0x10], eax
jle 0x4029de
mov eax, dword [ebp - 0x10]
push 0
push 0
push 0x414440
lea ecx, [esi + eax - 3]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x10]
push ecx
push 6
push dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutA]
add dword [ebp + 0x10], esi
add dword [ebp - 0x10], esi
cmp dword [ebp + 0x10], ebx
jl 0x4029af
cmp dword [0x4148f4], 0
jne 0x402a28
mov eax, dword [0x41492c]
push 0
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x414928]
dec eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x414834]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [0x414830]
inc eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [ebp - 0x10]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_FrameRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EndPaint]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10