Function at 0x522d30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a4199
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0
push 0x147
push dword [ebx + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebx + 0x88], 8
lea edi, [ebx + 0x74]
mov dword [ebp - 0x18], eax
jb 0x522d80
mov edi, dword [edi]
test edi, edi
je 0x522dc4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*4 + 4]
mov dword [ebp - 0x14], eax
call fcn.004c6740
mov esi, esp
test esi, esi
je 0x522dc4
push 0
push 0
push dword [ebp - 0x14]
mov byte [esi], 0
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x522dc6
xor esi, esi
push esi
push str.groupName
lea ecx, [ebx + 0x58]
call fcn.00565290
cmp dword [ebx + 0xa0], 8
lea edi, [ebx + 0x8c]
jb 0x522de5
mov edi, dword [edi]
test edi, edi
je 0x522e29
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*4 + 4]
mov dword [ebp - 0x14], eax
call fcn.004c6740
mov esi, esp
test esi, esi
je 0x522e29
push 0
push 0
push dword [ebp - 0x14]
mov byte [esi], 0
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x522e2b
xor esi, esi
push esi
push str.networkName
lea ecx, [ebx + 0x58]
call fcn.00565290
imul ecx, dword [ebp - 0x18], 0xa8
mov eax, dword [ebx + 0xa4]
add eax, 0x18
add eax, ecx
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], 8
jb 0x522e56
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x18]
call fcn.0051cad0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x522e7b
push esi
push str.certificateHash
lea ecx, [ebx + 0x58]
call fcn.00565290
mov ecx, dword [ebx + 0xa4]
mov edx, 0x5d90f0
add ecx, 0x90
add ecx, dword [ebp - 0x14]
call fcn.00474f70
test al, al
je 0x522f44
push 0
push 0xffffffffffffffff
push 0xc1
push dword [ebx + 0x4c]
call dword [sym.imp.USER32.dll_SendMessageW]
inc eax
xor ecx, ecx
mov dword [ebp - 0x14], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c5d8d
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
push dword [ebp - 0x14]
push edi
push dword [ebx + 0x4c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x5d90f0
push dword [ebx + 0x4c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
lea ecx, [ebp - 0x1c]
call fcn.0051cad0
mov byte [ebp - 4], 1
lea ecx, [ebx + 0x58]
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x522f05
push edi
jmp 0x522f0a
push 0x5d9130
push 0x5e5788
call fcn.00565290
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
lea ecx, [eax + eax]
mov eax, edx
test ecx, ecx
je 0x522f2e
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x522f23
push edx
call fcn.004c59d6
add esp, 4
test edi, edi
je 0x522f44
push edi
call fcn.004c59d6
add esp, 4
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
test esi, esi
je 0x522f5c
push esi
call fcn.004c59d6
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret 0x10