Function at 0x404ff0
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x310c
call fcn.004b7a60
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 + 0x40], 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 0x4ce4dc
lea eax, [esp + 0x4c]
push 0x823
push eax
call edi
lea ecx, [esp + 0x54]
push ecx
call fcn.004758c0
add esp, 0x14
cmp word [esp + 0x44], bx
mov word [ebp + 0x3060], bx
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], ebx
je 0x4050e2
cmp word [ebp + 0x1f00], bx
lea esi, [ebp + 0x1f00]
je 0x4050db
lea edx, [esp + 0x44]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x4050a7
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
jmp 0x4050db
lea eax, [esp + 0x44]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4050c0
mov dword [esp + 0x10], ebx
jmp 0x4050db
lea ecx, [esp + 0x44]
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4050db
mov dword [esp + 0x20], 1
cmp word [esp + 0x44], bx
jne 0x4050f8
pop edi
mov word [ebp + 0x1f00], bx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x310c
ret 4
lea edx, [esp + 0x44]
push edx
push 0x4ce4dc
push 0x823
push esi
call edi
add esp, 0x10
lea ebx, [ebp + 0x4c]
xor esi, esi
mov ecx, ebx
push esi
mov dword [esp + 0x40], ebx
call fcn.0049c6b0
mov ecx, ebx
call fcn.0049b5f0
push esi
call fcn.00437d70
add esp, 4
mov ecx, ebx
push eax
call fcn.0049b620
lea eax, [esp + 0x44]
mov dword [esp + 0x1c], esi
push eax
call fcn.0048e1c0
mov dword [esp + 0x2c], eax
mov ecx, 0x411
xor eax, eax
lea edi, [esp + 0x20da]
mov word [esp + 0x20d8], si
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, 0x5bd038
stosw word es:[edi], ax
call fcn.004885b0
test eax, eax
je 0x4051a1
lea eax, [esp + 0x44]
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, ebp
call fcn.00404d80
mov esi, 1
mov dword [esp + 0x1c], esi
jmp 0x4051bd
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4051bd
lea edx, [esp + 0x44]
mov ecx, ebp
push edx
call fcn.00404e10
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x28]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x34], 8
mov dword [esp + 0x2c], edi
je 0x4051e5
lea eax, [esp + 0x44]
mov ecx, ebp
push eax
call fcn.00404e90
mov dword [esp + 0x2c], eax
jmp 0x4051ed
mov dword [esp + 0x34], 7
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.004302b0
mov ecx, eax
add ecx, 0x714
call fcn.004697f0
test eax, eax
je 0x405524
mov ecx, ebx
call fcn.0049c750
mov dword [esp + 0x24], eax
call fcn.004302b0
add eax, 0x718
cmp esi, edi
mov dword [esp + 0x10], 1
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
je 0x40523d
mov dword [esp + 0x10], edi
call fcn.004302b0
mov ecx, dword [eax + 0x71c]
add eax, 0x718
mov eax, dword [esp + 0x30]
mov edi, dword [ecx]
cmp edi, eax
mov dword [esp + 0x14], edi
je 0x405524
mov ecx, dword [esp + 0x18]
lea ebp, [edi + 0x228]
push ebp
call fcn.00405560
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x38], esi
je 0x405294
mov edx, dword [esp + 0x3120]
push edx
push ebp
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x405294
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x40547f
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x40547f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40547f
push ebp
call fcn.0043c110
add esp, 4
test eax, eax
je 0x40547f
mov eax, dword [esp + 0x3120]
mov esi, ebp
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x405457
mov ecx, dword [esp + 0x3120]
mov edi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
push ebx
push ecx
push ebp
call edi
add esp, 0xc
test eax, eax
je 0x405359
push 7
push 0x4ce60c
push ebp
call edi
add esp, 0xc
test eax, eax
jne 0x40532a
mov edx, dword [esp + 0x3120]
lea esi, [ebp + 0xe]
push ebx
push edx
push esi
call edi
add esp, 0xc
test eax, eax
je 0x405359
push 0xb
push str.http:__www.
push ebp
call edi
add esp, 0xc
test eax, eax
jne 0x405453
mov eax, dword [esp + 0x3120]
lea esi, [ebp + 0x16]
push ebx
push eax
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x405453
mov eax, dword [0x5c210c]
test eax, eax
je 0x405453
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 ecx, [esp + 0x108c]
push 0x823
push ecx
mov edx, dword [edi + 0x2f58]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x108c]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x4053f4
lea ecx, [esi + ebx*2]
mov ebx, dword [esp + 0x3120]
push ecx
push ebx
push 0x4ce5e8
lea edx, [esp + 0x1098]
push 0x823
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [edi + 0x2f58]
add esp, 0x14
lea eax, [esp + 0x108c]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x4053fb
mov ebx, dword [esp + 0x3120]
push ebx
mov dword [edi + 0x2f4c], 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 edx, dword [esi + 0x2f58]
push eax
push edi
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push 0x4ce4dc
lea eax, [esi + 0x3060]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov dword [esp + 0x1c], 0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0
lea ecx, [edi + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x50]
push ebp
push edx
call fcn.0049b690
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
jmp 0x405497
mov ecx, dword [esp + 0x24]
push 0
push 0
push 0
lea eax, [edi + 0x20]
push esi
push eax
push ebp
push ecx
mov ecx, ebx
call fcn.0049b690
push esi
call fcn.00437d50
add esp, 4
test eax, eax
jne 0x4054ab
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
inc eax
mov dword [esp + 0x10], 0
cmp eax, ecx
mov dword [esp + 0x24], eax
jge 0x405520
mov ecx, dword [edi + 8]
mov al, byte [ecx + 0x1275]
test al, al
jne 0x4054f1
mov eax, dword [ecx]
mov dl, byte [eax + 0x1275]
test dl, dl
jne 0x4054eb
mov ecx, eax
mov eax, dword [ecx]
mov dl, byte [eax + 0x1275]
test dl, dl
je 0x4054dd
mov dword [esp + 0x14], ecx
jmp 0x405512
mov eax, dword [edi + 4]
cmp edi, dword [eax + 8]
jne 0x405509
mov ecx, eax
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ecx
cmp ecx, dword [eax + 8]
je 0x4054f9
mov edi, ecx
cmp dword [edi + 8], eax
je 0x405516
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x14]
cmp edi, dword [esp + 0x30]
jne 0x40525f
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x405538
lea edx, [esp + 0x44]
mov ecx, ebp
push edx
call fcn.00404e90
push 0
mov ecx, ebx
call fcn.0049c660
push 1
mov ecx, ebx
call fcn.0049c6b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x310c
ret 4