Function at 0x401570
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x98
mov eax, dword [esp + 0xa0]
push ebp
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
call fcn.004019d0
add esp, 8
mov ebp, eax
lea eax, [esp + 4]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [esp + 4]
je 0x4018c0
mov eax, dword [0x40a97c]
cmp eax, ebp
je 0x4018c0
test eax, eax
je 0x4015cb
push 0
push eax
call fcn.004018d0
add esp, 8
push ebx
push esi
push edi
push 1
push ebp
call fcn.004018d0
add esp, 8
mov dword [0x40a97c], ebp
push ebp
call dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
test ebx, ebx
je 0x40164f
push ebx
lea ecx, [esp + 0x2c]
push str.0x_08X
push ecx
call fcn.00401e16
mov esi, dword [esp + 0xb8]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0x3f0
push esi
call edi
lea eax, [esp + 0x28]
push 0x80
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x28]
push ecx
push 0x3f1
push esi
call edi
lea edx, [esp + 0x28]
push 0x80
push edx
push ebx
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [esp + 0x28]
push eax
jmp 0x40167b
mov esi, dword [esp + 0xac]
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x4080b8
push 0x3f0
push esi
call edi
push 0x4080b8
push 0x3f1
push esi
call edi
push 0x4080b8
push 0x3f2
push esi
call edi
push ebp
lea ecx, [esp + 0x2c]
push str.0x_08X
push ecx
call fcn.00401e16
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0x3e8
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff4
push ebp
call ebx
push eax
lea eax, [esp + 0x2c]
push 0x4080b4
push eax
call fcn.00401e16
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x3e9
push esi
call edi
push 0xfffffffffffffff0
push ebp
call ebx
mov ebx, eax
lea edx, [esp + 0x28]
push ebx
push str.0x_08X
push edx
call fcn.00401e16
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0x3ec
push esi
call edi
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, eax
sub edx, ecx
push edx
mov edx, dword [esp + 0x24]
sub edx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push str.__d___d____d___d___dx_d
push edx
call fcn.00401e16
add esp, 0x20
lea eax, [esp + 0x28]
push eax
push 0x3ed
push esi
call edi
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push str.0x_08X
push edx
call fcn.00401e16
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0x3ee
push esi
call edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push str.0x_08X
push edx
call fcn.00401e16
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0x3ef
push esi
call edi
lea ecx, [esp + 0x28]
push 0x80
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 0x28]
push edx
push 0x3eb
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [esp + 0x10]
je 0x4018b0
lea eax, [esp + 0x28]
push str.EDIT
push eax
call fcn.00401ca8
add esp, 8
test eax, eax
je 0x401826
lea ecx, [esp + 0x28]
push str.TEDIT
push ecx
call fcn.00401ca8
add esp, 8
test eax, eax
je 0x401826
lea edx, [esp + 0x28]
push str.ThunderTextBox
push edx
call fcn.00401ca8
add esp, 8
test eax, eax
je 0x401826
lea eax, [esp + 0x28]
push str.ThunderRT6TextBox
push eax
call fcn.00401ca8
add esp, 8
test eax, eax
je 0x401826
lea ecx, [esp + 0x28]
push str.Iris.Password
push ecx
call fcn.00401ca8
add esp, 8
test eax, eax
jne 0x40188a
test bl, 0x20
je 0x40188a
mov edx, dword [0x40a980]
mov byte [0x40a994], 1
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [esp + 0x10]
push eax
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x401877
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
lea ecx, [esp + 0x28]
push ecx
push ebp
push ebx
call fcn.00401240
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4018b0
xor eax, eax
mov cl, byte [eax + 0x40a99c]
mov byte [esp + eax + 0x28], cl
inc eax
test cl, cl
jne 0x401879
jmp 0x4018b0
lea edx, [esp + 0x28]
push edx
push 0x80
push 0xd
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x40a978]
mov byte [0x40a994], 0
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [esp + 0x28]
push ecx
push 0x3ea
push esi
call edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x98
ret