Function at 0x6c12d910
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x1dc
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 0x1b4], eax
mov dword [esp + 4], 0x403
mov dword [esp], eax
mov dword [ebp - 0x1bc], esi
call esi
sub esp, 8
mov dword [ebp - 0x1b0], eax
mov dword [esp], edi
lea edi, [ebp - 0x118]
mov dword [esp + 4], 0x404
call esi
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b8], eax
sub esp, 8
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x6c12d978
cmp word [ebp - 0x118], 0
mov edx, edi
je 0x6c12d9a1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6c12d998
xor eax, eax
mov esi, 0x2f
jmp 0x6c12d9b7
movzx esi, word [eax + 0x6c1494b4]
mov word [edx + eax], si
add eax, 2
test si, si
jne 0x6c12d9b0
cmp word [ebp - 0x118], 0
mov edx, edi
je 0x6c12d9d9
nop
add edx, 2
cmp word [edx], 0
jne 0x6c12d9d0
xor eax, eax
lea esi, [esi]
nop
movzx esi, word [ecx + eax]
mov word [edx + eax], si
add eax, 2
test si, si
jne 0x6c12d9e0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x6c12db80
mov esi, pe_nt_image_headers32
cmp word [ebp - 0x118], 0
mov word [ebp - 0x19a], si
je 0x6c12dca8
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x6c12da20
sub eax, edi
add eax, 2
movzx eax, ax
lea edx, [ebp - 0x19a]
lea esi, [ebp - 0x198]
mov dword [esp + 0x10], 0x13
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [ebp - 0x1ac], ecx
call sym._WNetGetCachedPassword_20
mov edx, eax
sub esp, 0x14
xor eax, eax
test edx, edx
je 0x6c12da78
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x3a
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcschr]
mov ecx, dword [ebp - 0x1ac]
test eax, eax
mov edi, eax
je 0x6c12db6c
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1c0], ecx
mov dword [esp + 4], 0xffffffeb
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowLongW]
mov ecx, dword [ebp - 0x1b0]
sub esp, 8
mov dword [ebp - 0x1ac], eax
xor eax, eax
mov word [edi], ax
mov dword [esp + 4], esi
mov esi, dword [sym.imp.user32.dll_SetWindowTextW]
mov dword [esp], ecx
call esi
mov ecx, dword [ebp - 0x1ac]
sub esp, 8
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x1c0]
mov edx, dword [eax + 0x7c]
test edx, edx
jne 0x6c12db58
lea edx, [edi + 2]
mov edi, dword [ebp - 0x1b8]
mov dword [esp + 4], edx
mov dword [esp], edi
call esi
mov eax, dword [ebp - 0x1b4]
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x1bc]
mov dword [esp + 4], 0x405
call eax
sub esp, 8
test eax, eax
je 0x6c12db6c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xf1
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, 1
sub esp, 0x10
jmp 0x6c12da6a
mov dword [esp], 1
mov eax, dword [ebp - 0x1b4]
mov edx, ebx
call sym._WININET_GetSetPassword
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
lea ebx, [ebp - 0x198]
mov dword [esp + 8], 0x3f
mov esi, dword [sym.imp.user32.dll_GetWindowTextW]
mov word [ebp - 0x198], ax
mov eax, dword [ebp - 0x1b0]
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
mov edx, ebx
sub esp, 0xc
cmp word [ebp - 0x198], 0
je 0x6c12dbc9
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x6c12dbc0
xor eax, eax
mov ecx, 0x3a
jmp 0x6c12dbdf
movzx ecx, word [eax + 0x6c1494b8]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x6c12dbd8
cmp word [ebp - 0x198], 0
je 0x6c12dcb2
mov eax, ebx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x6c12dc00
mov ecx, eax
mov edx, 0x40
sub ecx, ebx
sar ecx, 1
sub edx, ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1b8]
mov dword [esp + 8], edx
mov dword [esp], eax
call esi
sub esp, 0xc
cmp word [ebp - 0x118], 0
je 0x6c12dcc5
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6c12dc40
sub eax, edi
add eax, 2
movzx eax, ax
cmp word [ebp - 0x198], 0
je 0x6c12dcbe
mov edx, ebx
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x6c12dc60
sub edx, ebx
add edx, 2
movzx edx, dx
mov dword [esp + 8], ebx
mov dword [esp], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x13
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call sym._WNetCachePassword_24
sub esp, 0x18
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x6c12da31
mov edx, 0x40
mov eax, ebx
jmp 0x6c12dc16
mov edx, 2
jmp 0x6c12dc71
mov eax, 2
jmp 0x6c12dc51