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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x42b004]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp dword [ebp + 8], 0x41e
push ebx
push esi
push edi
mov edi, dword [0x4309d8]
jne 0x4024aa
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
lea esi, [edi + 0x34]
push 0x7f
push esi
push 0x3f2
push dword [edi + 4]
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402192
sub edx, ecx
lea eax, [esp + 0x68]
sar edx, 1
mov ecx, esi
push eax
add edx, edx
call fcn.00408f90
add esp, 4
lea eax, [esp + 0x28]
mov edx, 0x40
lea ecx, [esp + 0x68]
push eax
call fcn.00408f90
add esp, 4
mov byte [esp + 0x14], 1
mov dl, 1
xor esi, esi
xor ecx, ecx
movzx eax, dl
cmp byte [esi + 0x433a38], cl
cmove ecx, eax
xor edx, edx
cmp byte [esi + 0x433a39], dl
movzx eax, cl
cmove edx, eax
xor ecx, ecx
cmp byte [esi + 0x433a3a], cl
movzx eax, dl
cmove ecx, eax
xor edx, edx
cmp byte [esi + 0x433a3b], dl
movzx eax, cl
cmove edx, eax
add esi, 4
cmp esi, 0x40
jl 0x4021d1
cmp dl, 1
jne 0x40221e
mov eax, dword [edi + 4]
jmp 0x4022a9
push 0x430aa8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
nop dword [eax + eax]
movzx edx, byte [eax + 0x433a38]
xor ebx, ebx
cmp dl, byte [esp + eax + 0x28]
mov ecx, dword [esp + 0x14]
movzx ecx, cl
cmove ebx, ecx
xor edx, edx
movzx ecx, bl
mov bl, byte [esp + eax + 0x29]
cmp byte [eax + 0x433a39], bl
cmove edx, ecx
xor ebx, ebx
movzx ecx, dl
mov dl, byte [esp + eax + 0x2a]
cmp byte [eax + 0x433a3a], dl
mov dl, byte [esp + eax + 0x2b]
cmove ebx, ecx
cmp byte [eax + 0x433a3b], dl
movzx ecx, bl
mov ebx, 0
cmove ebx, ecx
add eax, 4
mov dword [esp + 0x14], ebx
cmp eax, 0x40
jl 0x402230
push 0x430aa8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 4]
cmp bl, 1
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jne 0x4023b5
push 5
push 0x425
push eax
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 5
push 0x426
push dword [edi + 4]
call ebx
push eax
call esi
push 5
push 0x427
push dword [edi + 4]
call ebx
push eax
call esi
push 5
push 0x428
push dword [edi + 4]
call ebx
push eax
call esi
push 5
push 0x429
push dword [edi + 4]
call ebx
push eax
call esi
push 5
push 0x42b
push dword [edi + 4]
call ebx
push eax
call esi
push 5
push 0x42c
push dword [edi + 4]
call ebx
push eax
call esi
push 0
push 0x42a
push dword [edi + 4]
call ebx
push eax
call esi
push 0
push 0x3f2
push dword [edi + 4]
call ebx
push eax
call esi
push 0
push 0x41e
push dword [edi + 4]
call ebx
push eax
call esi
push 0x41f
push dword [edi + 4]
call ebx
mov esi, eax
push 0x427ccc
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 2
lea eax, [esp + 0x1c]
push eax
push dword [0x430a50]
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 5
push 0
lea eax, [esp + 0x20]
push eax
push dword [0x430a50]
call dword [sym.imp.USER32.dll_RedrawWindow]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0040c080
mov esp, ebp
pop ebp
ret 8
push 0x41f
push eax
call ebx
mov esi, eax
push 0x42f830
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 2
lea eax, [esp + 0x1c]
push eax
push dword [0x430a50]
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 5
push 0
lea eax, [esp + 0x20]
push eax
push dword [0x430a50]
call dword [sym.imp.USER32.dll_RedrawWindow]
push 0
push 0x425
push dword [edi + 4]
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x426
push dword [edi + 4]
call ebx
push eax
call esi
push 0
push 0x427
push dword [edi + 4]
call ebx
push eax
call esi
push 0
push 0x428
push dword [edi + 4]
call ebx
push eax
call esi
push 0
push 0x429
push dword [edi + 4]
call ebx
push eax
call esi
push 0
push 0x42b
push dword [edi + 4]
call ebx
push eax
call esi
push 0
push 0x42c
push dword [edi + 4]
call ebx
push eax
call esi
push 5
push 0x42a
push dword [edi + 4]
call ebx
push eax
call esi
push 5
push 0x3f2
push dword [edi + 4]
call ebx
push eax
call esi
push 5
push 0x41e
push dword [edi + 4]
call ebx
push eax
call esi
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c080
mov esp, ebp
pop ebp
ret 8