Function at 0x479320
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50f67b
push eax
mov eax, 0x4558
mov dword fs:[0], esp
call fcn.0050c9c0
mov eax, dword [ebp + 8]
push ebx
and eax, 0xffff
mov ebx, ecx
push esi
cmp eax, 0xb7
push edi
mov dword [ebp - 0x10], ebx
jg 0x4794a0
je 0x479384
test eax, eax
jle 0x479699
cmp eax, 2
jg 0x479699
mov eax, dword [ebx + 0x1060]
push 1
push eax
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x479699
mov edx, dword [ebx + 0x1060]
xor esi, esi
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x1056]
mov word [ebp - 0x1058], si
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x1058]
push 0x823
push ecx
push 0xb6
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea eax, [ebp - 0x1058]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [eax + eax + 1]
add esp, 4
test ecx, ecx
jle 0x47948c
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x47948c
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea edx, [ebp - 0x1058]
test edx, edx
je 0x479432
lea eax, [ebp - 0x1058]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0050c9c0
mov esi, esp
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x1058]
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
inc ebx
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebx
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x1060]
push 1
push eax
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x479699
cmp eax, 0x434
jne 0x479699
mov edx, dword [ebx + 0x1060]
xor esi, esi
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x4562]
mov word [ebp - 0x4564], si
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x4564]
push 0x823
push ecx
push 0xb6
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x1056]
mov word [ebp - 0x1058], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x10]
mov dword [ebp + 8], esi
cmp eax, esi
je 0x479537
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0x78]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1058]
push eax
push 0x528430
push 0x823
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov edx, dword [ebp + 8]
add esp, 0x10
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.00427680
mov ecx, dword [eax + 4]
lea esi, [eax + 0x18]
mov dword [ebp - 0x3518], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x3510], edx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x350c], ecx
mov edx, dword [eax + 0x14]
mov ecx, 0x41
lea edi, [ebp - 0x3504]
mov dword [ebp - 0x3508], edx
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x11c]
mov ecx, 0x41
lea edi, [ebp - 0x3400]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x220]
mov ecx, 0x209
lea edi, [ebp - 0x32fc]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0xa44]
mov ecx, 0x209
lea edi, [ebp - 0x2ad8]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x1268]
mov ecx, 0x209
lea edi, [ebp - 0x22b4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x1a8c]
lea esi, [eax + 0x1a90]
mov dword [ebp - 0x1a90], ecx
mov ecx, 0x41
lea edi, [ebp - 0x1a8c]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x1b94]
mov ecx, 0x41
lea edi, [ebp - 0x1988]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x1c98]
mov ecx, 0x209
lea edi, [ebp - 0x1884]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x3514], 0x514d00
mov edx, dword [eax + 0x24bc]
mov dword [ebp - 0x1060], edx
mov eax, dword [eax + 0x24c0]
mov dword [ebp - 0x105c], eax
mov dword [ebp - 0x351c], 0x514274
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x351c]
call fcn.00428190
mov edx, dword [ebx + 0xc]
push 0
push 0
push 0
push 1
push 1
push edx
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x1058]
push 0
lea ecx, [ebp - 0x4564]
push eax
push ecx
lea ecx, [ebp - 0x351c]
call fcn.00427dc0
mov edx, dword [ebx + 0x1060]
push 1
push edx
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x351c]
call fcn.00427650
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x4570]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8