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

Disassembly:
sub esp, 0x218
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
test ebx, ebx
push edi
mov ebp, ecx
jl 0x420e3b
cmp ebx, 4
jg 0x420e3b
mov eax, dword [0x4350b8]
mov ecx, 0x43965c
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x4206e6
mov edx, ecx
shr edx, 0x10
jne 0x4206ae
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00409820
jmp 0x4206e6
push 0x43965c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4206e6
push esi
lea ecx, [esp + 0x14]
call fcn.00401dd0
test eax, eax
je 0x4206e6
mov edi, dword [esp + 0x10]
mov ecx, esi
mov edx, ecx
mov esi, 0x43965c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + ebx*4 + 0x4c]
push 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 6
jne 0x420733
cmp ebx, 4
jge 0x420733
mov edx, dword [ebp + ebx*4 + 0x50]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jbe 0x42075f
cmp ebx, 4
jge 0x42075f
mov ecx, dword [ebp + ebx*4 + 0x50]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [esp + 0x27]
push eax
push ecx
call esi
jmp 0x420765
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 6
jbe 0x4207c1
cmp ebx, 4
jge 0x4207c1
mov byte [esp + 0x26], al
mov eax, dword [ebp + ebx*4 + 0x4c]
lea edx, [esp + 0x20]
push edx
push eax
call esi
mov eax, dword [esp + 0x10]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x420e3b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420e3b
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
jmp 0x420e33
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xc
jbe 0x4207ea
cmp ebx, 4
jne 0x4207ea
mov ecx, dword [ebp + 0x5c]
mov byte [esp + 0x2c], al
lea eax, [esp + 0x20]
push eax
push ecx
call esi
jmp 0x420833
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x42085f
test ebx, ebx
jle 0x42085f
mov ecx, dword [ebp + ebx*4 + 0x48]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [ebp + ebx*4 + 0x48]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 6
push 6
mov eax, edx
push 0xb1
push eax
mov dword [ebp + 0x2c], edx
call esi
mov ecx, dword [ebp + 0x2c]
push 0
push 0
push 0xb7
push ecx
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4350bc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x420e3b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420e3b
jmp 0x420e2b
cmp ebx, 4
jge 0x420d50
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x14], eax
rep stosd dword es:[edi], eax
lea ebx, [ebp + 0x4c]
mov edx, dword [ebx]
lea ecx, [esp + 0x124]
push 0x103
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 6
jne 0x42091d
lea edi, [esp + 0x124]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x436170
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
add ebx, 4
inc eax
cmp eax, 4
mov dword [esp + 0x14], eax
jge 0x420945
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x420897
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x3f], 0
call ebx
cmp eax, 0x1b
jge 0x420a2a
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push 0x70
push ecx
mov dword [ebp + 0x30], 0
call fcn.00422b30
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, dword [edi]
cmp eax, esi
je 0x4209ee
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x420998
mov ecx, dword [0x4350bc]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x42099f
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x4209d5
mov ebx, dword [esi - 8]
lea ecx, [esp + 0x10]
push ebx
call fcn.00401e70
test eax, eax
je 0x4209ee
mov edi, dword [esp + 0x10]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebx
mov ecx, dword [esp + 0x10]
mov byte [ebx + ecx], 0
jmp 0x4209ee
lea ecx, [esp + 0x10]
call fcn.00401e30
mov edi, dword [edi]
mov dword [esp + 0x10], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4350bc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x420d2b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420d2b
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00426ac0
add esp, 4
jmp 0x420d2b
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x439a00
call fcn.00406610
test eax, eax
mov dword [ebp + 0x30], eax
je 0x420a63
mov al, byte [0x439c20]
test al, al
je 0x420a63
lea edx, [esp + 0x20]
push 0x439c85
push edx
call fcn.00427e70
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x420c1d
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x439c5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x439a00
call fcn.00406870
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
push 0x7f
push ecx
call fcn.00422b30
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
push eax
push ecx
call fcn.00401ff0
mov edx, dword [0x4350b8]
mov eax, 0x439cae
add esp, 0xc
mov dword [esp + 0x1c], edx
test eax, eax
je 0x420ade
push 0x439cae
call ebx
push 0x439cae
push eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040f800
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x18]
push edx
call fcn.00401cf0
lea ecx, [esp + 0x1c]
call fcn.00401f10
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp ecx, eax
je 0x420b63
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x420b2d
mov edx, dword [0x4350bc]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x420b34
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x420b44
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x18]
call fcn.00401f40
jmp 0x420b5f
lea ecx, [esp + 0x10]
call fcn.00401e30
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x18]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x420b8e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420b8e
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
mov al, byte [0x439a19]
push 0x521
test al, al
je 0x420bc2
mov eax, dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call esi
mov ecx, dword [ebp + 4]
push 0x424
push ecx
call edi
push 5
jmp 0x420be6
mov edx, dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push edx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
mov eax, dword [ebp + 4]
push 0x424
push eax
call edi
push 0
push eax
call esi
mov eax, dword [esp + 0x14]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x420cf8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420cf8
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
jmp 0x420cf0
mov edi, 0x43965c
or ecx, 0xffffffff
xor eax, eax
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x7e
mov eax, ecx
mov esi, edi
mov edi, 0x439c5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00422b30
mov edi, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, dword [edi]
cmp eax, esi
je 0x420cc9
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x420c73
mov ecx, dword [0x4350bc]
add eax, 0xfffffff4
cmp eax, ecx
jne 0x420c7a
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x420cb0
mov ebx, dword [esi - 8]
lea ecx, [esp + 0x10]
push ebx
call fcn.00401e70
test eax, eax
je 0x420cc9
mov edi, dword [esp + 0x10]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebx
mov ecx, dword [esp + 0x10]
mov byte [ebx + ecx], 0
jmp 0x420cc9
lea ecx, [esp + 0x10]
call fcn.00401e30
mov edi, dword [edi]
mov dword [esp + 0x10], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4350bc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x420cf8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420cf8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00426ac0
add esp, 4
push 0x43a1c2
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x420d2b
mov ecx, dword [ebp + 4]
push 0x142
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [ebp + 0x30]
neg edx
sbb edx, edx
and edx, 0xfffffffb
add edx, 5
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 4]
push 0x426
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebx, dword [esp + 0x22c]
cmp ebx, 4
jne 0x420de8
mov al, byte [0x439a19]
test al, al
je 0x420de8
mov eax, dword [ebp + 0x5c]
lea edx, [esp + 0x20]
push 0xd
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor edx, edx
cmp eax, 8
lea eax, [esp + 0x20]
push 0x20
setge dl
push eax
mov dword [ebp + 0x34], edx
call fcn.00427cb0
mov esi, eax
add esp, 8
test esi, esi
je 0x420dbd
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esi + 1]
push ecx
push esi
call edi
push 0x20
push esi
call fcn.00427cb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x420da5
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x420de8
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x439c78
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
and ecx, edx
push ecx
push 0x3ea
push 0x1410
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4350bc]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x420e3b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x420e3b
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00426ac0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4