Function at 0x403790
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x8030
call fcn.004095f0
mov eax, dword [0x4197a0]
push ebx
push ebp
push esi
push edi
push 2
push 0xffffffffffffffff
push 0x100c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x403a98
mov byte [esp + 0x1040], 0
mov ebx, 1
mov eax, dword [0x4197a0]
lea edx, [esp + 0x18]
push edx
push ebp
lea ecx, [esp + 0x48]
push 0x102d
push eax
mov byte [esp + 0x50], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], 0x1000
mov dword [esp + 0x3c], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1040]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1040]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4133f4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
cmp ebx, 7
rep movsb byte es:[edi], byte [esi]
jl 0x4037cb
mov edi, 0x4133f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1040]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x8044]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403a98
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea edi, [esp + 0x1040]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x2002
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
lea edi, [esp + 0x1040]
push ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [0x4197a0]
push 2
push ebp
push 0x100c
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x403a89
mov byte [esp + 0x1040], 0
mov ebx, 1
mov ecx, dword [0x4197a0]
lea eax, [esp + 0x18]
push eax
push ebp
lea edx, [esp + 0x48]
push 0x102d
push ecx
mov byte [esp + 0x50], 0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], 0x1000
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1040]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x1040]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4133f4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
cmp ebx, 7
rep movsb byte es:[edi], byte [esi]
jl 0x403936
mov edi, 0x4133f0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1040]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1044]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
not ecx
dec ecx
mov ebx, ecx
add ebx, esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
mov dword [esp + 0x14], eax
lea edi, [esp + 0x1044]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea edx, [eax + esi - 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [0x4197a0]
push 2
push ebp
push 0x100c
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x403929
mov ebx, dword [esp + 0x10]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8030
ret