Function at 0x48c130
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x56800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0x200
mov dword [ebp - 0x2c], eax
xor eax, eax
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call fcn.0048b390
mov esi, eax
lea eax, [ebp - 0x38]
push esi
push 0x4ef17c
push str._s__s_r_n
push eax
mov dword [ebp - 0x40], esi
call fcn.0040bfe0
mov edi, dword [ebp - 0x38]
add esp, 0x10
lea eax, [edi - 2]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x48c1fa
mov esi, 0x2d
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x38]
call fcn.0040c640
test al, al
jne 0x48c1c6
xor eax, eax
mov byte [eax], al
mov eax, dword [ebp - 0x2c]
lea ebx, [eax + edi*2]
mov eax, dword [ebp - 0x38]
cmp eax, edi
jbe 0x48c1e5
sub eax, edi
add eax, eax
push eax
lea eax, [ebx + 2]
push ebx
push eax
call fcn.004bdaf0
add esp, 0xc
sub dword [ebp - 0x3c], 1
lea eax, [edi + 1]
mov dword [ebp - 0x38], eax
mov word [ebx], si
mov edi, dword [ebp - 0x38]
jne 0x48c1b2
mov esi, dword [ebp - 0x40]
push ecx
push 2
push edi
lea ecx, [ebp - 0x38]
call fcn.0040c520
mov ecx, dword [0x4ef72c]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov edx, 0x569860
mov dword [eax], ecx
mov eax, dword [0x569860]
test eax, eax
je 0x48c257
mov ecx, eax
test ecx, ecx
je 0x48c245
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c230
sub ecx, edi
sar ecx, 1
cmp ebx, ecx
jae 0x48c245
mov ebx, ecx
mov ecx, dword [edx + 0x2c]
add edx, 0x2c
test ecx, ecx
jne 0x48c227
mov eax, dword [0x569860]
mov dword [ebp - 0x3c], ebx
mov ebx, 0x569860
mov dword [ebp - 0x48], ebx
test eax, eax
je 0x48c31c
mov esi, dword [ebp - 0x3c]
lea ebx, [ebx]
mov ecx, dword [ebx]
test ecx, ecx
je 0x48c291
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c280
sub ecx, edx
sar ecx, 1
jmp 0x48c293
xor ecx, ecx
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x44], eax
je 0x48c2ec
mov esi, 0x20
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
lea eax, [edi + 1]
push eax
call fcn.0040c640
test al, al
jne 0x48c2b8
xor eax, eax
mov byte [eax], al
mov eax, dword [ebp - 0x2c]
lea ebx, [eax + edi*2]
mov eax, dword [ebp - 0x38]
cmp eax, edi
jbe 0x48c2d7
sub eax, edi
add eax, eax
push eax
lea eax, [ebx + 2]
push ebx
push eax
call fcn.004bdaf0
add esp, 0xc
sub dword [ebp - 0x44], 1
lea eax, [edi + 1]
mov dword [ebp - 0x38], eax
mov word [ebx], si
jne 0x48c2a1
mov ebx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x48c2f6
mov eax, dword [ebx + 4]
push eax
push dword [ebx]
lea eax, [ebp - 0x38]
push str._s:__s_r_n
push eax
call fcn.0040bfe0
add ebx, 0x2c
add esp, 0x10
mov dword [ebp - 0x48], ebx
cmp dword [ebx], 0
jne 0x48c270
mov esi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x48c395
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x48c395
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ecx, ebx
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48c340
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x40], eax
add eax, eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x48c38f
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x48c37f
mov edx, dword [ebp - 0x40]
mov ecx, eax
push ebx
call fcn.0041a480
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call fcn.004bf8aa
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
add esp, 4
pop edi
pop esi
pop ebx
cmp ecx, eax
je 0x48c3d0
mov edx, dword [ebp - 8]
push ecx
test edx, edx
jne 0x48c3c9
call fcn.004bf8aa
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bcb15
mov esp, ebp
pop ebp
ret