Function at 0x4021de
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 0x402531
sub eax, 0x101
je 0x402369
dec eax
je 0x40224d
dec eax
dec eax
jne 0x4026b2
cmp dword [ebp + 0x10], 0x19
jne 0x4026b2
inc dword [0x410054]
cmp dword [0x410054], 0x19
jle 0x40222f
mov dword [0x410054], 1
push 0
push 0x413b70
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x4026b2
mov eax, dword [ebp + 0x10]
cmp eax, 2
jne 0x4022f3
mov esi, 0x100
lea eax, [ebp - 0x250]
push esi
push eax
push 0x19
push dword [0x413b90]
call fcn.00408994
add esp, 0x10
lea eax, [ebp - 0x110]
push esi
push eax
push 0x3b
push dword [0x413b90]
call fcn.00408994
mov esi, dword [ebp + 8]
xor edi, edi
add esp, 0x10
cmp dword [0x413b8c], edi
je 0x4022a4
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 0x4022d3
push 2
push esi
mov dword [0x413844], 1
call dword [sym.imp.USER32.dll_EndDialog]
cmp dword [0x413b8c], edi
je 0x402529
push edi
push 0x96
push 0x19
push esi
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x402529
push 1
pop esi
cmp eax, esi
jne 0x40231a
cmp byte [0x413b60], 0xb
jne 0x40230e
mov dword [0x4137ec], esi
jmp 0x4026b2
push dword [ebp + 8]
call fcn.004027da
pop ecx
push esi
jmp 0x40232a
cmp eax, 5
jne 0x40233a
push dword [ebp + 8]
call fcn.004027da
pop ecx
push 0
call fcn.004026bb
pop ecx
call fcn.004029bf
jmp 0x4026b2
cmp eax, 3
jne 0x402344
push 0xffffffffffffffff
push esi
jmp 0x402351
cmp eax, 4
jne 0x4026b2
push 0xffffffffffffffff
push 0
push 0x185
push 0x3eb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
jmp 0x4026b2
mov ebx, dword [ebp + 8]
push ebx
call fcn.004087e7
pop ecx
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push eax
push 0x2f
push dword [0x413b90]
call fcn.00408994
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 [0x413b90]
call fcn.00408994
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 [0x413b90]
call fcn.00408994
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 [0x413b90]
call fcn.00408994
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 [0x4137dc]
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 [0x4138a8]
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 [0x4138a4]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
cmp byte [0x413b60], 0xb
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [0x4137d8], ebx
jne 0x4024a9
cmp dword [0x413c00], 0
je 0x4024a9
push 0
push 1
push ebx
call esi
push eax
call edi
push 0
push 5
push dword [0x4137d8]
call esi
push eax
call edi
call fcn.004029bf
push 0
push 0xef6
push dword [0x4137d8]
call esi
push eax
call edi
push 0xef6
push ebx
call esi
test eax, eax
mov dword [ebp + 8], eax
je 0x402514
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 0x4138b8
mov dword [0x4138b8], eax
mov eax, dword [ebp - 0xc]
inc eax
push ebx
mov dword [0x4138bc], eax
call esi
mov eax, dword [ebp - 8]
push 0x4137d0
dec eax
push ebx
mov dword [0x4137d0], eax
mov eax, dword [ebp - 4]
dec eax
mov dword [0x4137d4], eax
call esi
xor eax, eax
cmp dword [0x413888], eax
jne 0x402529
cmp dword [ebp + 8], eax
je 0x402529
push eax
push dword [ebp + 8]
call edi
push 1
pop eax
jmp 0x4026b4
cmp dword [0x4133e4], 0
jne 0x402556
push 0
push 0x96
push 0x19
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x4133e4], 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 [0x413bb8]
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 [0x413b8c], 0
je 0x4026a2
push dword [ebp + 8]
push edi
call fcn.0040971f
mov eax, dword [0x4137d4]
pop ecx
sub eax, dword [0x4138bc]
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 [0x4137d0]
sub eax, dword [0x4138b8]
movzx eax, ax
imul eax, dword [0x413824]
cdq
idiv dword [0x413bf8]
movzx ebx, ax
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [0x4138bc]
and dword [ebp + 0x10], 0
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x4137d4]
dec eax
mov dword [ebp - 4], eax
mov eax, dword [0x4138b8]
test ebx, ebx
mov dword [ebp - 0x10], eax
jle 0x402658
mov eax, dword [ebp - 0x10]
push 0
push 0
push 0x4133e0
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 0x402629
cmp dword [0x413888], 0
jne 0x4026a2
mov eax, dword [0x4138bc]
push 0
dec eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x4138b8]
dec eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x4137d4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [0x4137d0]
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