Function at 0x422170
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 0x422bef
cmp ebx, 4
jg 0x422bef
mov eax, dword [0x437348]
mov ecx, 0x43babc
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x4221f6
mov edx, ecx
shr edx, 0x10
jne 0x4221be
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00409ea0
jmp 0x4221f6
push 0x43babc
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4221f6
push esi
lea ecx, [esp + 0x14]
call fcn.004023a0
test eax, eax
je 0x4221f6
mov edi, dword [esp + 0x10]
mov ecx, esi
mov edx, ecx
mov esi, 0x43babc
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 0x422243
cmp ebx, 4
jge 0x422243
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
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jbe 0x42226d
cmp ebx, 4
jge 0x42226d
mov ecx, dword [ebp + ebx*4 + 0x50]
lea eax, [esp + 0x27]
push eax
push ecx
call esi
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 6
jbe 0x4222d9
cmp ebx, 4
jge 0x4222d9
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 [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x422bef
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x422bef
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xc
jbe 0x422302
cmp ebx, 4
jne 0x422302
mov ecx, dword [ebp + 0x5c]
mov byte [esp + 0x2c], al
lea eax, [esp + 0x20]
push eax
push ecx
call esi
jmp 0x42234b
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x42238f
test ebx, ebx
jle 0x42238f
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 [0x43734c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x422bef
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x422bef
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4
cmp ebx, 4
jge 0x4225ae
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 + 0x18], 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 0x42244d
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, 0x4384e4
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 + 0x18]
add ebx, 4
inc eax
cmp eax, 4
mov dword [esp + 0x18], eax
jge 0x422475
lea edi, [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4223c7
lea eax, [esp + 0x20]
mov byte [esp + 0x3b], 0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x1b
jne 0x4225ae
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x43be60
call fcn.004066e0
test eax, eax
mov dword [ebp + 0x30], eax
je 0x4224c7
mov al, byte [0x43c080]
test al, al
je 0x4224c7
lea edx, [esp + 0x20]
push 0x43c0e5
push edx
call fcn.0042a9c0
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x30]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x42255a
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, 0x43c0bc
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, 0x43be60
call fcn.00406940
mov al, byte [0x43be79]
push 0x521
test al, al
je 0x422537
mov ecx, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
call esi
push 5
push eax
call ebx
mov edx, dword [ebp + 4]
push 0x424
push edx
call esi
push 5
push eax
call ebx
jmp 0x42257f
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push eax
call ebx
mov ecx, dword [ebp + 4]
push 0x424
push ecx
call esi
push 0
push eax
call ebx
jmp 0x42257f
mov edi, 0x43babc
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, 0x43c0bc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x43c622
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4225ae
mov eax, dword [ebp + 4]
push 0x142
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x30]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffb
add ecx, 5
push ecx
push eax
call ebx
cmp dword [esp + 0x22c], 4
jne 0x422650
mov al, byte [0x43be79]
test al, al
je 0x422650
mov eax, dword [ebp + 0x5c]
lea edx, [esp + 0x20]
push 0xd
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x20]
push ecx
call ebx
xor edx, edx
cmp eax, 8
lea eax, [esp + 0x20]
push 0x20
setge dl
push eax
mov dword [ebp + 0x34], edx
call fcn.0042a800
mov esi, eax
add esp, 8
test esi, esi
je 0x422625
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esi + 1]
push ecx
push esi
call edi
push 0x20
push esi
call fcn.0042a800
mov esi, eax
add esp, 8
test esi, esi
jne 0x42260d
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x422656
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, 0x43c0d8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x422b58
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push 0x7f
push eax
call fcn.004249d0
mov ecx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp ecx, eax
je 0x4226c4
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x422698
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42269f
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4226af
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402510
jmp 0x4226c4
lea ecx, [esp + 0x10]
call fcn.00402400
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [0x43734c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4226f5
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4226f5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
mov ecx, dword [0x437348]
mov edx, 0x43c0bc
test edx, edx
mov dword [esp + 0x18], ecx
jne 0x42270c
xor eax, eax
jmp 0x422713
push 0x43c0bc
call ebx
push 0x43c0bc
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004107f0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004022c0
lea ecx, [esp + 0x18]
call fcn.004024e0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x422794
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x422762
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x422769
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x422779
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402510
jmp 0x422790
lea ecx, [esp + 0x10]
call fcn.00402400
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call edi
mov eax, dword [esp + 0x14]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4227bb
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4227bb
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
mov eax, dword [0x437348]
mov ecx, str._r_n_r_n
test ecx, ecx
mov dword [esp + 0x18], eax
jne 0x4227d1
xor eax, eax
jmp 0x4227d8
push str._r_n_r_n
call ebx
push str._r_n_r_n
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.004107f0
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
call fcn.004022c0
lea ecx, [esp + 0x18]
call fcn.004024e0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x422859
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x422827
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42282e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x42283e
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402510
jmp 0x422855
lea ecx, [esp + 0x10]
call fcn.00402400
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [0x43734c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x422880
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x422880
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
mov al, byte [0x43be79]
test al, al
je 0x422a8e
mov eax, dword [ebp + 0x34]
push 0xffffffffffffffff
test eax, eax
je 0x422994
lea ecx, [esp + 0x20]
push 0x7c
push ecx
call fcn.004249d0
mov edx, dword [0x437348]
mov eax, dword [eax]
add esp, 0xc
mov dword [esp + 0x18], edx
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x28]
call fcn.004107f0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call fcn.004022c0
lea ecx, [esp + 0x18]
call fcn.004024e0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x422935
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x422903
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42290a
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x42291a
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x18]
call fcn.00402510
jmp 0x422931
lea ecx, [esp + 0x10]
call fcn.00402400
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call edi
mov eax, dword [esp + 0x14]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42295c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x42295c
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x422ba7
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x422ba7
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
jmp 0x422ba7
lea eax, [esp + 0x20]
push 0x7a
push eax
call fcn.004249d0
mov ecx, dword [0x437348]
mov eax, dword [eax]
add esp, 0xc
mov dword [esp + 0x18], ecx
mov edx, dword [eax - 8]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004107f0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004022c0
lea ecx, [esp + 0x18]
call fcn.004024e0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x422a2f
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4229fd
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x422a04
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x422a14
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402510
jmp 0x422a2b
lea ecx, [esp + 0x10]
call fcn.00402400
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call edi
mov eax, dword [esp + 0x14]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x422a56
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x422a56
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x422ba7
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x422ba7
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
jmp 0x422ba7
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push 0x7c
push eax
call fcn.004249d0
mov ecx, dword [0x437348]
mov eax, dword [eax]
add esp, 0xc
mov dword [esp + 0x18], ecx
mov edx, dword [eax - 8]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004107f0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.004022c0
lea ecx, [esp + 0x18]
call fcn.004024e0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x422b2b
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x422af9
mov edx, dword [0x43734c]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x422b00
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x422b10
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402510
jmp 0x422b27
lea ecx, [esp + 0x10]
call fcn.00402400
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call edi
mov eax, dword [esp + 0x14]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x422b52
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x422b52
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
lea ecx, [esp + 0x1c]
jmp 0x422ba2
lea eax, [esp + 0x20]
push eax
call ebx
cmp eax, 0x1b
push 0xffffffffffffffff
jge 0x422b85
lea ecx, [esp + 0x20]
push 0x70
push ecx
call fcn.004249d0
add esp, 0xc
lea ecx, [esp + 0x10]
push eax
call fcn.00404430
lea ecx, [esp + 0x1c]
jmp 0x422ba2
lea edx, [esp + 0x20]
push 0x7e
push edx
call fcn.004249d0
add esp, 0xc
lea ecx, [esp + 0x10]
push eax
call fcn.00404430
lea ecx, [esp + 0x1c]
call fcn.004024e0
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 edx, dword [ebp + 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [ebp + 0x34]
mov ebx, dword [ebp + 0x30]
and ecx, ebx
push ecx
push 0x3ea
push 0x1410
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x10]
call fcn.004024e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret 4