Function at 0x402f1d
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
jmp 0x439a80
push 0xffffffffffffffff
push 0x527a59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x14], ebp
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebx, dword [ebp + 0xa34]
lea ecx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.004021d0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x439bf1
mov eax, dword [ebp + 0x21ec]
mov eax, dword [eax + 4]
test eax, eax
je 0x439af2
push eax
call fcn.004029eb
add esp, 4
jmp 0x439af4
xor eax, eax
mov ecx, dword [ebp + 0x21ec]
lea eax, [eax*4 + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x439b14
xor edi, edi
mov di, word [eax + 0xe]
jmp 0x439b16
xor edi, edi
test eax, eax
je 0x439b26
mov eax, dword [eax + 8]
cdq
mov esi, eax
xor esi, edx
sub esi, edx
jmp 0x439b28
xor esi, esi
call fcn.004018c0
imul eax, edi
add eax, 0x1f
sar eax, 3
and al, 0xfc
imul eax, esi
mov esi, dword [esp + 0x14]
add eax, esi
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp + 0x21ec]
mov ecx, esi
mov dword [esp + 0x10], eax
mov edi, eax
mov esi, dword [edx + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x21ec]
mov eax, dword [ecx + 4]
test eax, eax
je 0x439b8a
xor edi, edi
mov di, word [eax + 0xe]
jmp 0x439b8c
xor edi, edi
test eax, eax
je 0x439b9c
mov eax, dword [eax + 8]
cdq
mov esi, eax
xor esi, edx
sub esi, edx
jmp 0x439b9e
xor esi, esi
call fcn.004018c0
mov ecx, eax
mov edx, dword [ebp + 0x21ec]
imul ecx, edi
add ecx, 0x1f
mov eax, dword [esp + 0x10]
sar ecx, 3
and ecx, 0xfffffffc
push ebx
imul ecx, esi
mov esi, dword [edx + 8]
mov edx, dword [esp + 0x18]
lea edi, [eax + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x43a0eb
lea ecx, [esp + 0x20]
call fcn.004fdecc
mov dword [esp + 0x44c], 0
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
lea ecx, [esp + 0x44]
push 0x400
push ecx
push 0x3ec9
push eax
call fcn.0040182a
add esp, 0x10
lea ecx, [esp + 0x20]
push 0x400
call sub.MFC42.DLL_CString::GetBuffer
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44c], 0xffffffff
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CString::CString
mov ecx, ebx
call fcn.00402d29
mov ecx, dword [ebp + 0x24a0]
test ecx, ecx
je 0x439c9d
mov ebp, dword [ebp + 0x2494]
jmp 0x439c9f
mov ebp, eax
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
push ebp
call fcn.004961d0
mov esi, dword [eax + 4]
add esp, 0x10
test esi, esi
mov dword [esp + 0x18], eax
je 0x439ce4
mov eax, dword [esi + 0x20]
test eax, eax
je 0x439cd1
cmp eax, 0x100
jbe 0x439ce6
mov eax, 0x100
jmp 0x439ce6
mov cx, word [esi + 0xe]
cmp cx, 8
ja 0x439ce4
mov eax, 1
shl eax, cl
jmp 0x439ce6
xor eax, eax
lea edx, [eax*4 + 0x28]
test esi, esi
mov dword [esp + 0x1c], edx
je 0x439d01
mov eax, dword [esi + 4]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
jmp 0x439d03
xor edi, edi
test esi, esi
je 0x439d0f
xor ecx, ecx
mov cx, word [esi + 0xe]
jmp 0x439d11
xor ecx, ecx
test esi, esi
je 0x439d1f
mov eax, dword [esi + 8]
cdq
xor eax, edx
sub eax, edx
jmp 0x439d21
xor eax, eax
imul ecx, edi
add ecx, 0x1f
mov esi, dword [esp + 0x1c]
sar ecx, 3
and ecx, 0xfffffffc
imul ecx, eax
add ecx, esi
push ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
mov eax, dword [esp + 0x18]
mov ecx, esi
mov edi, ebp
mov esi, dword [eax + 4]
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 [eax + 4]
test esi, esi
je 0x439d79
mov eax, dword [esi + 4]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
jmp 0x439d7b
xor edi, edi
test esi, esi
je 0x439d87
xor ecx, ecx
mov cx, word [esi + 0xe]
jmp 0x439d89
xor ecx, ecx
test esi, esi
je 0x439d97
mov eax, dword [esi + 8]
cdq
xor eax, edx
sub eax, edx
jmp 0x439d99
xor eax, eax
imul ecx, edi
add ecx, 0x1f
mov edx, dword [esp + 0x18]
sar ecx, 3
and ecx, 0xfffffffc
mov esi, dword [edx + 8]
imul ecx, eax
mov eax, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebp]
push ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
push 0x18
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x44c], 1
je 0x439ea0
mov ecx, dword [esp + 0x14]
xor ebp, ebp
mov ebx, dword [ecx + 0x21ec]
mov esi, dword [ebx + 4]
cmp esi, ebp
je 0x439e36
mov edx, dword [esi + 0x20]
cmp edx, ebp
je 0x439e1c
cmp edx, 0x100
ja 0x439e31
jmp 0x439e2d
mov cx, word [esi + 0xe]
cmp cx, 8
ja 0x439e36
mov edx, 1
shl edx, cl
cmp edx, ebp
je 0x439e36
lea edi, [esi + 0x28]
jmp 0x439e38
xor edi, edi
mov ecx, dword [ebx + 4]
cmp ecx, ebp
je 0x439e68
mov edx, dword [ecx + 0x20]
cmp edx, ebp
je 0x439e55
cmp edx, 0x100
jbe 0x439e6a
mov edx, 0x100
jmp 0x439e6a
mov cx, word [ecx + 0xe]
cmp cx, 8
ja 0x439e68
mov edx, 1
shl edx, cl
jmp 0x439e6a
xor edx, edx
mov esi, dword [ebx + 4]
cmp esi, ebp
je 0x439e79
xor ecx, ecx
mov cx, word [esi + 0xe]
jmp 0x439e7b
xor ecx, ecx
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push ebp
push edi
push edx
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
sub edx, ebx
sub ecx, esi
push edx
push ecx
mov ecx, eax
call fcn.00492900
mov esi, eax
jmp 0x439ea4
xor esi, esi
xor ebp, ebp
mov edi, dword [esi + 4]
mov dword [esp + 0x44c], 0xffffffff
cmp edi, ebp
je 0x439ec2
mov eax, dword [edi + 4]
cdq
mov ebx, eax
xor ebx, edx
sub ebx, edx
jmp 0x439ec4
xor ebx, ebx
cmp edi, ebp
je 0x439ed0
xor ecx, ecx
mov cx, word [edi + 0xe]
jmp 0x439ed2
xor ecx, ecx
cmp edi, ebp
je 0x439ee0
mov eax, dword [edi + 8]
cdq
xor eax, edx
sub eax, edx
jmp 0x439ee2
xor eax, eax
imul ecx, ebx
add ecx, 0x1f
mov edi, dword [esi + 8]
sar ecx, 3
and ecx, 0xfffffffc
imul ecx, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x24a0], ebp
je 0x439f18
mov eax, dword [eax + 0x2490]
jmp 0x439f1e
mov eax, dword [eax + 0x21ec]
push ebp
lea ecx, [esp + 0x28]
push ebp
push ecx
push eax
call fcn.004961d0
push ebp
lea edx, [esp + 0x48]
push ebp
mov edi, eax
mov eax, dword [esp + 0x30]
push edx
push ebp
push edi
push eax
push esi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], 0x64
call fcn.004968f0
add esp, 0x2c
mov ebx, eax
cmp esi, ebp
mov dword [esp + 0x10], ebx
je 0x439f72
mov ecx, esi
call fcn.00492f70
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp edi, ebp
je 0x439f86
mov ecx, edi
call fcn.00492f70
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [ebx + 4]
cmp edi, ebp
je 0x439fb5
mov eax, dword [edi + 0x20]
cmp eax, ebp
je 0x439fa2
cmp eax, 0x100
jbe 0x439fb7
mov eax, 0x100
jmp 0x439fb7
mov cx, word [edi + 0xe]
cmp cx, 8
ja 0x439fb5
mov eax, 1
shl eax, cl
jmp 0x439fb7
xor eax, eax
lea ecx, [eax*4 + 0x28]
cmp edi, ebp
mov dword [esp + 0x1c], ecx
je 0x439fd2
mov eax, dword [edi + 4]
cdq
mov esi, eax
xor esi, edx
sub esi, edx
jmp 0x439fd4
xor esi, esi
cmp edi, ebp
je 0x439fe0
xor ecx, ecx
mov cx, word [edi + 0xe]
jmp 0x439fe2
xor ecx, ecx
cmp edi, ebp
je 0x439ff0
mov eax, dword [edi + 8]
cdq
xor eax, edx
sub eax, edx
jmp 0x439ff2
xor eax, eax
imul ecx, esi
add ecx, 0x1f
mov esi, dword [esp + 0x1c]
sar ecx, 3
and ecx, 0xfffffffc
imul ecx, eax
add ecx, esi
push ecx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [esp + 0x10]
mov ecx, esi
mov ebp, eax
mov eax, ecx
mov esi, dword [edx + 4]
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov esi, dword [ecx + 4]
test esi, esi
je 0x43a04c
mov eax, dword [esi + 4]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
jmp 0x43a04e
xor edi, edi
test esi, esi
je 0x43a05a
xor ecx, ecx
mov cx, word [esi + 0xe]
jmp 0x43a05c
xor ecx, ecx
test esi, esi
je 0x43a06a
mov eax, dword [esi + 8]
cdq
xor eax, edx
sub eax, edx
jmp 0x43a06c
xor eax, eax
imul ecx, edi
add ecx, 0x1f
mov edx, dword [esp + 0x10]
sar ecx, 3
and ecx, 0xfffffffc
mov esi, dword [edx + 8]
imul ecx, eax
mov eax, dword [esp + 0x1c]
mov edx, ecx
shr ecx, 2
lea edi, [eax + ebp]
push ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x24a0]
test ecx, ecx
jne 0x43a0d3
mov esi, dword [esp + 0x10]
test esi, esi
je 0x43a0d3
mov ecx, esi
call fcn.00492f70
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x43a0eb
mov ecx, esi
call fcn.00492f70
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x444]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x440
ret