Function at 0x404fd0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x310c
call fcn.004acae0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x311c]
push edi
mov ebp, ecx
push 0x20
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
mov ecx, 0x411
neg eax
sbb eax, eax
xor ebx, ebx
neg eax
mov dword [esp + 0x3c], eax
xor eax, eax
lea edi, [esp + 0x46]
mov word [esp + 0x44], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.MSVCRT.dll__snwprintf]
push esi
push 0x4f6580
lea eax, [esp + 0x4c]
push 0x823
push eax
call edi
lea ecx, [esp + 0x54]
push ecx
call fcn.0046ef00
add esp, 0x14
cmp word [esp + 0x44], bx
mov word [ebp + 0x3044], bx
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], ebx
je 0x4050c2
cmp word [ebp + 0x1ee4], bx
lea esi, [ebp + 0x1ee4]
je 0x4050bb
lea edx, [esp + 0x44]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x405087
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
jmp 0x4050bb
lea eax, [esp + 0x44]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4050a0
mov dword [esp + 0x10], ebx
jmp 0x4050bb
lea ecx, [esp + 0x44]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4050bb
mov dword [esp + 0x20], 1
cmp word [esp + 0x44], bx
jne 0x4050d8
pop edi
mov word [ebp + 0x1ee4], bx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x310c
ret 4
lea edx, [esp + 0x44]
push edx
push 0x4f6580
push 0x823
push esi
call edi
add esp, 0x10
lea ebx, [ebp + 0x4c]
xor edi, edi
mov ecx, ebx
push edi
mov dword [esp + 0x2c], ebx
call fcn.00492630
mov ecx, ebx
call fcn.00491570
push edi
call fcn.00433a00
add esp, 4
mov ecx, ebx
push eax
call fcn.004915a0
lea eax, [esp + 0x44]
mov dword [esp + 0x1c], edi
push eax
call fcn.00484a50
mov esi, eax
mov word [esp + 0x20d8], di
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x20da]
add esp, 4
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20d4]
push 0x823
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, 0x5e83a8
mov dword [esp + 0x44], esi
stosw word es:[edi], ax
call fcn.004801a0
test eax, eax
je 0x40517a
lea eax, [esp + 0x44]
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, ebp
call fcn.00404d50
jmp 0x40518a
test esi, esi
jne 0x405192
lea edx, [esp + 0x44]
mov ecx, ebp
push edx
call fcn.00404de0
mov dword [esp + 0x1c], 1
test esi, esi
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], 0
je 0x4051b8
lea eax, [esp + 0x44]
mov ecx, ebp
push eax
call fcn.00404e60
mov dword [esp + 0x34], eax
jmp 0x4051c0
mov dword [esp + 0x30], 7
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.0042bee0
mov ecx, eax
add ecx, 0x714
call fcn.004637c0
test eax, eax
je 0x4054fd
mov ecx, ebx
call fcn.004926d0
mov dword [esp + 0x24], eax
call fcn.0042bee0
mov esi, dword [eax + 0x71c]
add eax, 0x718
mov dword [esp + 0x40], esi
mov dword [esp + 0x10], 1
call fcn.0042bee0
add eax, 0x718
mov eax, dword [eax + 4]
mov edi, dword [eax]
cmp edi, esi
mov dword [esp + 0x14], edi
je 0x4054f9
mov ecx, dword [esp + 0x18]
lea ebp, [edi + 0x228]
push ebp
call fcn.00405540
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x2c], esi
je 0x40525b
mov ecx, dword [esp + 0x3120]
push ecx
push ebp
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40525b
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x405454
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x405454
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405454
push ebp
call fcn.0044f1b0
add esp, 4
test eax, eax
je 0x405454
mov edx, dword [esp + 0x3120]
mov esi, ebp
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x40542c
mov eax, dword [esp + 0x3120]
push ebx
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x40532e
push 7
push 0x4f6638
push ebp
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4052f7
mov ecx, dword [esp + 0x3120]
lea esi, [ebp + 0xe]
push ebx
push ecx
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x40532e
push 0xb
push 0x4f6620
push ebp
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40542c
mov edx, dword [esp + 0x3120]
lea esi, [ebp + 0x16]
push ebx
push edx
push esi
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x40542c
mov eax, dword [0x6b410c]
test eax, eax
je 0x40542c
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x108e]
mov word [esp + 0x108c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x108c]
push 0x823
push eax
mov ecx, dword [edi + 0x2f3c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x108c]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x4053c9
lea eax, [esi + ebx*2]
mov ebx, dword [esp + 0x3120]
push eax
push ebx
push 0x4f6614
lea ecx, [esp + 0x1098]
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [edi + 0x2f3c]
add esp, 0x14
lea edx, [esp + 0x108c]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x4053d0
mov ebx, dword [esp + 0x3120]
push ebx
mov dword [edi + 0x2f30], 0
call dword [sym.imp.MSVCRT.dll_wcslen]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov esi, dword [esp + 0x20]
add esp, 8
mov ecx, dword [esi + 0x2f3c]
push eax
push edi
push 0xb1
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0x4f6580
lea eax, [esi + 0x3044]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edi, dword [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
lea eax, [edi + 0x20]
push edx
push eax
push ebp
push ecx
mov ecx, dword [esp + 0x44]
call fcn.00491610
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
jmp 0x40546c
mov eax, dword [esp + 0x24]
push 0
push 0
push 0
lea edx, [edi + 0x20]
push esi
push edx
push ebp
push eax
mov ecx, ebx
call fcn.00491610
push esi
call fcn.004339e0
add esp, 4
test eax, eax
jne 0x405480
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x10], 0
cmp eax, ecx
mov dword [esp + 0x24], eax
jge 0x4054f5
mov ecx, dword [edi + 8]
mov al, byte [ecx + 0x1275]
test al, al
jne 0x4054c6
mov eax, dword [ecx]
mov dl, byte [eax + 0x1275]
test dl, dl
jne 0x4054c0
mov ecx, eax
mov eax, dword [ecx]
mov dl, byte [eax + 0x1275]
test dl, dl
je 0x4054b2
mov dword [esp + 0x14], ecx
jmp 0x4054e7
mov eax, dword [edi + 4]
cmp edi, dword [eax + 8]
jne 0x4054de
mov ecx, eax
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ecx
cmp ecx, dword [eax + 8]
je 0x4054ce
mov edi, ecx
cmp dword [edi + 8], eax
je 0x4054eb
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x40]
jne 0x405226
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x38]
test esi, esi
jne 0x40550d
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
call fcn.00404e60
push 0
mov ecx, ebx
call fcn.004925e0
push 1
mov ecx, ebx
call fcn.00492630
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x310c
ret 4