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

Disassembly:
push 0xffffffffffffffff
push 0x4eddb2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], 0
push ecx
lea eax, [esp + 0x13c]
mov ebx, 1
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov dword [esp + 0x134], ebx
call sub.MFC42.DLL_CString::CString_3
mov ecx, ebp
call fcn.00409e20
test eax, eax
jne 0x40a230
mov esi, dword [esp + 0x134]
push 0x5307a8
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebx
jmp 0x40a4ab
mov ecx, dword [ebp + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40a270
mov ecx, ebp
call fcn.00409e90
test eax, eax
mov dword [ebp + 4], eax
jne 0x40a268
mov esi, dword [esp + 0x134]
push 0x5307a8
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebx
jmp 0x40a4ab
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 4]
mov edi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.Button
push 0
push edx
call edi
mov esi, eax
mov eax, dword [ebp + 4]
push 0
push str.Edit
push 0
push eax
call edi
push 2
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
push ebx
mov dword [esp + 0x20], eax
call edi
push 0
push 0
push 0x201
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xf5
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov eax, dword [ebp + 4]
push 3
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
test ebx, ebx
je 0x40a347
lea edx, [esp + 0x20]
push 0xff
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov esi, 0x523f3c
lea eax, [esp + 0x20]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a33e
test cl, cl
je 0x40a33a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a33e
add eax, 2
add esi, 2
test cl, cl
jne 0x40a31a
xor eax, eax
jmp 0x40a343
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a355
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x40a2ee
cmp edi, 0xa
jne 0x40a37a
push 0x523f3c
push str.32770
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
test ebx, ebx
jne 0x40a37a
push 0x5307a8
jmp 0x40a495
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push 1
push 0
push 0
push eax
push ecx
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x10], 0
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.ComboBoxEx32
push 0
push ebx
call esi
test eax, eax
je 0x40a438
push 0
push str.ComboBox
push 0
push eax
call esi
test eax, eax
je 0x40a438
push 0
push str.Edit
push 0
push eax
call esi
mov esi, eax
test esi, esi
je 0x40a438
mov edx, dword [esp + 0x138]
push 0
lea ecx, [esp + 0x13c]
mov edi, dword [edx - 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xc
push esi
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea eax, [esp + 0x20]
mov byte [esp + 0x20], 0
push eax
push 0x104
push 0xd
push esi
call edi
mov edx, dword [esp + 0x138]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40a452
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jl 0x40a39b
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 0x111
push ebx
call esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push 0x104
push 0xd
push ecx
mov byte [esp + 0x30], 0
call esi
mov edx, dword [ebp + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x20]
push eax
mov esi, dword [esp + 0x138]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x138]
mov byte [esp + 0x12c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x124]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret 8