Function at 0x402fc0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x314c
call fcn.004f3f00
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov edx, dword [esi + 0x3ef4]
cmp edx, ebx
je 0x40327f
push ebp
push edi
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x10]
mov word [esp + 0x84], bx
rep stosd dword es:[edi], eax
mov ecx, 0x411
lea edi, [esp + 0x86]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x84]
push 0x823
push eax
push edx
mov dword [esi + 0x1e50], 1
mov dword [esp + 0x1c], 0x74
mov dword [esp + 0x20], 0x40000000
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, esi
call fcn.00403840
test eax, eax
push 0x53ada0
je 0x40309c
mov ecx, dword [esi + 0x3ef4]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push ecx
call edi
mov edx, dword [esi + 0x3ef4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 1
push 0x459
push edx
call ebp
mov ecx, dword [esi + 0x3ef4]
lea eax, [esp + 0x84]
push eax
push ecx
call edi
mov edx, dword [esi + 0x3f5c]
mov ecx, dword [esi + 0x3ef4]
lea eax, [esp + 0x10]
mov dword [esp + 0x24], edx
push eax
push 4
push 0x444
push ecx
jmp 0x40326a
mov edx, dword [esi + 0x3ef4]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push edx
call edi
mov eax, dword [esi + 0x3ef4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 2
push 0x459
push eax
call ebp
mov edx, dword [esi + 0x3ef4]
lea ecx, [esp + 0x84]
push ecx
push edx
call edi
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x10ce]
mov word [esp + 0x10cc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10cc]
push 0x823
lea ecx, [esp + 0x88]
push eax
push ecx
call fcn.0046baf0
add esp, 0xc
test eax, eax
je 0x40324d
mov ecx, dword [esi + 0x3ef4]
mov edx, dword [esi + 0x3f64]
lea eax, [esp + 0x10]
mov dword [esp + 0x24], edx
push eax
push 4
push 0x444
push ecx
call ebp
lea edx, [esp + 0x10cc]
push edx
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
stosw word es:[edi], ax
lea eax, [esp + 0x2114]
push 0x823
lea ecx, [esp + 0x10d0]
push eax
push ecx
mov ecx, esi
call fcn.00406140
test eax, eax
je 0x4031c8
cmp word [esp + 0x2114], 0
je 0x4031c8
lea edx, [esp + 0x2114]
lea eax, [esp + 0x84]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x403200
lea ecx, [esp + 0x84]
lea edx, [esp + 0x2114]
sub eax, ecx
push edx
sar eax, 1
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
jmp 0x4031fc
lea eax, [esp + 0x10cc]
lea ecx, [esp + 0x84]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov ebx, eax
lea edx, [esp + 0x8c]
lea eax, [esp + 0x10d4]
sub ebx, edx
push eax
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.00405640
mov ecx, 0x1d
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x3ef4]
mov ecx, dword [esi + 0x3f60]
push edx
push 1
push 0x444
push eax
mov dword [esp + 0x20], 0x74
mov dword [esp + 0x24], 0x40000000
mov dword [esp + 0x34], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
jmp 0x40326c
mov ecx, dword [esi + 0x3f5c]
mov eax, dword [esi + 0x3ef4]
lea edx, [esp + 0x10]
mov dword [esp + 0x24], ecx
push edx
push 4
push 0x444
push eax
call ebp
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call fcn.00405640
pop edi
mov dword [esi + 0x1e50], ebx
pop ebp
pop esi
pop ebx
add esp, 0x314c
ret