Function at 0x402dc0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x314c
call fcn.004d9670
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x82]
mov word [esp + 0x80], bx
push 0x823
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x42c4]
mov dword [esi + 0x2220], 1
stosw word es:[edi], ax
lea eax, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x80], bx
je 0x403086
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0xc]
push ebp
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esp + 0x10], 0x74
mov dword [esp + 0x14], 0x40000000
call fcn.00403560
test eax, eax
push 0x514ff0
je 0x402ea4
mov edx, dword [esi + 0x42c4]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push edx
call edi
mov eax, dword [esi + 0x42c4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
push 0x459
push eax
call ebp
mov edx, dword [esi + 0x42c4]
lea ecx, [esp + 0x84]
push ecx
push edx
call edi
mov eax, dword [esi + 0x432c]
mov edx, dword [esi + 0x42c4]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
push ecx
push 4
push 0x444
push edx
jmp 0x403072
mov eax, dword [esi + 0x42c4]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
mov ecx, dword [esi + 0x42c4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 2
push 0x459
push ecx
call ebp
mov eax, dword [esi + 0x42c4]
lea edx, [esp + 0x84]
push edx
push eax
call edi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x10ce]
mov word [esp + 0x10cc], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10cc]
push 0x823
lea edx, [esp + 0x88]
push ecx
push edx
stosw word es:[edi], ax
call fcn.00467820
add esp, 0xc
test eax, eax
je 0x403055
mov edx, dword [esi + 0x42c4]
mov eax, dword [esi + 0x4334]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], eax
push ecx
push 4
push 0x444
push edx
call ebp
lea eax, [esp + 0x10cc]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, eax
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x211a]
mov word [esp + 0x2118], 0
add esp, 4
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x2114]
push 0x823
lea edx, [esp + 0x10d0]
push ecx
push edx
mov ecx, esi
stosw word es:[edi], ax
call fcn.00405730
test eax, eax
je 0x402fd0
cmp word [esp + 0x2114], 0
je 0x402fd0
lea eax, [esp + 0x2114]
lea ecx, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x403008
lea edx, [esp + 0x84]
sub eax, edx
sar eax, 1
mov ebx, eax
lea eax, [esp + 0x2114]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
jmp 0x403004
lea ecx, [esp + 0x10cc]
lea edx, [esp + 0x84]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov ebx, eax
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x10d4]
sub ebx, eax
push ecx
sar ebx, 1
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0xc
mov ebp, eax
add ebp, ebx
push ebp
push ebx
mov ecx, esi
call fcn.00404cf0
mov edx, dword [esi + 0x4330]
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x42c4]
lea eax, [esp + 0x10]
push eax
push 1
push 0x444
push ecx
mov dword [esp + 0x20], 0x74
mov dword [esp + 0x24], 0x40000000
mov dword [esp + 0x34], edx
call dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
jmp 0x403074
mov edx, dword [esi + 0x432c]
mov ecx, dword [esi + 0x42c4]
lea eax, [esp + 0x10]
mov dword [esp + 0x24], edx
push eax
push 4
push 0x444
push ecx
call ebp
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call fcn.00404cf0
mov dword [esi + 0x2220], ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x314c
ret