Function at 0x42ed40
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4ab78c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x848
mov edx, dword [esp + 0x858]
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebx, [edx - 0x28a0]
mov ecx, dword [esi + 0x154]
mov dword [esp + 0x18], ebx
cmp ecx, edi
jne 0x42ed82
xor eax, eax
jmp 0x42ed8d
mov eax, dword [esi + 0x158]
sub eax, ecx
sar eax, 3
cmp ebx, edi
jl 0x42f0b6
cmp ebx, eax
jge 0x42f0b6
mov eax, dword [esi + 0xdc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
cmp ebp, edi
je 0x42f0b6
mov eax, dword [esi + 0x154]
mov ecx, dword [eax + ebx*8 + 4]
mov edx, dword [eax + ebx*8]
push ecx
push edx
lea ecx, [esi + 0x20]
call fcn.004288b0
mov ecx, eax
call fcn.0043cc70
mov cl, byte [esp + 0x17]
mov ebx, eax
mov al, byte [esp + 0x17]
mov byte [esp + 0x21], cl
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
mov byte [esp + 0x28], 0
call fcn.00430c50
push 1
lea edx, [esp + 0x24]
push edi
push edx
mov ecx, esi
mov dword [esp + 0x86c], edi
call fcn.0042d2f0
mov word [esp + 0x58], di
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x5a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x58]
push 0x3ff
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [0x4c2080]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
lea eax, [esp + 0x58]
push edx
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
mov ecx, esi
mov byte [esp + 0x870], 1
call fcn.0042de70
test eax, eax
jne 0x42ee8a
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, ebp
je 0x42ee8a
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push ebp
call edi
push 0
push 0
push 0xb7
push ebp
call edi
push ebp
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0xd8]
add edx, 0x2af8
push edx
call fcn.0042a900
mov edi, eax
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x18], edi
je 0x42f015
lea ecx, [esp + 0x30]
call fcn.0043b360
mov eax, dword [esp + 0x10]
mov byte [esp + 0x860], 2
cmp dword [eax - 8], ebp
jne 0x42ef5c
mov eax, dword [0x4c2080]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x868], 3
call fcn.0042f4c0
mov eax, dword [ebx + 0xdc]
mov ecx, dword [ebx + 0xd8]
push ebp
push 0x100000
push eax
push ecx
call fcn.004a2d70
mov edx, dword [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x18]
push 0xd4
push eax
call fcn.00406a10
mov eax, dword [esp + 0x2c]
mov edx, dword [0x4c2084]
add esp, 0x10
mov byte [esp + 0x860], 2
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42ef58
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42ef58
mov edx, dword [esp + 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.00442ac0
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
je 0x42efc0
cmp dword [ecx - 0xc], ebp
jge 0x42ef76
mov edx, dword [0x4c2084]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42ef7f
cmp dword [eax - 0xc], ebp
jge 0x42f0d1
mov ebx, dword [eax - 8]
lea ecx, [esp + 0x34]
push ebx
mov edi, eax
call fcn.004059f0
test eax, eax
je 0x42efbc
mov ecx, dword [esp + 0x34]
lea ebp, [ebx + ebx]
push ebp
lea eax, [ebx + ebx + 2]
push edi
push eax
push ecx
call fcn.00404a40
mov edx, dword [esp + 0x44]
add esp, 0x10
mov dword [edx - 8], ebx
mov eax, dword [esp + 0x34]
mov word [eax + ebp], 0
xor ebp, ebp
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], 0x404040
push ecx
mov ecx, edi
call fcn.0043af40
mov edx, dword [edi]
lea eax, [esp + 0x48]
push eax
mov ecx, edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
call dword [edx + 0x18]
mov edx, dword [esi + 0xdc]
lea ecx, [esp + 0x48]
push 1
push ecx
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x30]
mov byte [esp + 0x860], 1
call fcn.0043b390
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c2084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42f044
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42f044
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00442ac0
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x860], 0xffffffff
push eax
mov ecx, dword [eax]
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004302a0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00442ac0
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
xor esi, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
mov eax, dword [0x4d1c54]
dec eax
mov dword [0x4d1c54], eax
jne 0x42f09f
mov esi, dword [0x4d1c50]
mov dword [0x4d1c50], ebp
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp esi, ebp
je 0x42f0b6
push esi
call fcn.00442ac0
add esp, 4
mov ecx, dword [esp + 0x858]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x854
ret 4
lea ecx, [esp + 0x34]
call fcn.00405a90
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42efc0