Function at 0x4a2c30
Capabilities:
Get graphical window text
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a0
mov eax, dword [0x522f10]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
xor eax, eax
cmp word [ebp + 0xc], 0x43
mov dword [ebp - 0x3a0], edi
jne 0x4a2ef3
push esi
push edi
lea esi, [eax + 1]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a2ef0
push ebx
push 0x4000
call fcn.004a9c0c
mov ebx, eax
mov eax, str.____________________________r_n
mov edx, ebx
add esp, 4
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a2c85
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2ca0
sub eax, edx
sar eax, 1
push 0x3e8
lea eax, [ebx + eax*2]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, ebx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a2cc4
mov ecx, dword [0x4ed92c]
mov dword [eax], ecx
mov dx, word [0x4ed930]
mov edi, ebx
mov word [eax + 4], dx
add edi, 0xfffffffe
jmp 0x4a2cf0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a2cf0
mov eax, dword [ebp - 0x3a0]
push 0x3e9
mov ecx, 0xf
mov esi, str.____________________________r_n
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov esi, eax
push esi
call edi
test eax, eax
je 0x4a2d9e
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2d30
sub eax, edx
sar eax, 1
push 0xfa0
lea ecx, [ebx + eax*2]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, ebx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a2d54
mov edx, dword [0x4ed92c]
mov dword [eax], edx
mov cx, word [0x4ed930]
mov edi, ebx
mov word [eax + 4], cx
add edi, 0xfffffffe
jmp 0x4a2d80
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a2d80
mov ecx, 0xf
mov esi, str.____________________________r_n
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov edx, dword [ebp - 0x3a0]
push 5
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x4a2e75
push esi
call edi
test eax, eax
je 0x4a2e62
push 0x102
lea eax, [ebp - 0x39c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea ecx, [ebp - 0x39c]
push str.Button
push ecx
call fcn.004b8761
add esp, 8
test eax, eax
jne 0x4a2e62
push 0xc7
lea edx, [ebp - 0x194]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2e05
sub eax, edx
sar eax, 1
lea edx, [ebp - 0x194]
cmp word [ebp - 0x194], cx
je 0x4a2e3a
movzx ecx, word [edx]
cmp cx, 0x26
je 0x4a2e31
mov word [ebx + eax*2], cx
inc eax
add edx, 2
cmp word [edx], 0
jne 0x4a2e23
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, ebx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a2e45
mov edx, dword [0x50f508]
mov dword [eax], edx
mov ecx, dword [0x50f50c]
mov dword [eax + 4], ecx
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x4a2db7
mov eax, ebx
add eax, 0xfffffffe
lea ebx, [ebx]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a2e80
mov edx, dword [0x4ed92c]
mov dword [eax], edx
mov cx, word [0x4ed930]
mov edi, ebx
mov word [eax + 4], cx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a2ea4
mov ecx, 0xf
mov esi, str.____________________________r_n
push 0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4a2ecf
mov edi, ebx
call fcn.004a2bb0
push ebx
call fcn.004a9c01
add esp, 4
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b80af
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004b80af
mov esp, ebp
pop ebp
ret 8