Function at 0x48a300
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push esi
mov esi, ecx
cmp eax, 0x50
ja case.default.0x48a31e
movzx eax, byte [eax + 0x48ab78]
push ebx
push edi
jmp dword [eax*4 + 0x48ab48]
cmp dword [esi + 0x430], 0
je case.0x48a31e.19
cmp dword [esi + 0x418], 0
je case.0x48a31e.19
mov ecx, dword [0x5256e8]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x48a31e.19
mov eax, dword [esi + 0x424]
sub eax, dword [esi + 0x41c]
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x48a3c4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x48a3ad
mov eax, dword [esi + 0x41c]
mov edx, dword [esi + 0x424]
sub edx, eax
push edx
lea eax, [eax + esi + 4]
push eax
push edi
call fcn.004cd640
mov ecx, dword [esi + 0x424]
add esp, 0xc
sub ecx, dword [esi + 0x41c]
mov byte [ecx + edi], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 7
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
pop esi
pop ebp
ret 4
cmp dword [esi + 0x430], 0
je case.0x48a31e.19
cmp dword [esi + 0x418], 0
je case.0x48a31e.19
mov edx, dword [0x5256e8]
push edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x48a31e.19
mov eax, dword [esi + 0x424]
sub eax, dword [esi + 0x41c]
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x48a470
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x48a459
mov eax, dword [esi + 0x41c]
mov ecx, dword [esi + 0x424]
sub ecx, eax
push ecx
lea edx, [eax + esi + 4]
push edx
push edi
call fcn.004cd640
mov eax, dword [esi + 0x424]
add esp, 0xc
sub eax, dword [esi + 0x41c]
mov byte [eax + edi], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 7
call dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x200
lea edi, [esi + 0x204]
push 0
push edi
call fcn.004cce10
mov ecx, dword [esi + 0x410]
push ecx
lea ebx, [esi + 4]
push ebx
push edi
call fcn.004cd640
push 0x200
push 0
push ebx
call fcn.004cce10
mov eax, dword [esi + 0x41c]
add esp, 0x24
test eax, eax
jle 0x48a4bf
push eax
push edi
push ebx
call fcn.004cd640
add esp, 0xc
mov eax, dword [esi + 0x424]
cmp eax, dword [esi + 0x410]
jge 0x48a9ee
mov edx, dword [esi + 0x41c]
lea ecx, [eax + esi + 0x204]
lea edx, [esi + edx + 4]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x48a4e2
jmp 0x48a9ee
cmp dword [esi + 0x430], 0
je case.0x48a31e.19
mov eax, dword [0x5256e8]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je case.0x48a31e.19
push 7
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp + 8], eax
test eax, eax
je 0x48a5ea
cmp dword [esi + 0x418], 0
je 0x48a5e2
push 0x200
lea edi, [esi + 0x204]
push 0
push edi
call fcn.004cce10
mov ecx, dword [esi + 0x410]
push ecx
lea ebx, [esi + 4]
push ebx
push edi
call fcn.004cd640
push 0x200
push 0
push ebx
call fcn.004cce10
mov eax, dword [esi + 0x41c]
add esp, 0x24
test eax, eax
jle 0x48a57b
push eax
push edi
push ebx
call fcn.004cd640
add esp, 0xc
mov eax, dword [esi + 0x424]
cmp eax, dword [esi + 0x410]
jge 0x48a5aa
mov edx, dword [esi + 0x41c]
lea ecx, [eax + esi + 0x204]
lea edx, [esi + edx + 4]
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x48a5a0
mov eax, dword [esi + 0x41c]
mov dword [esi + 0x404], eax
sub eax, dword [esi + 0x424]
add dword [esi + 0x40c], eax
mov eax, dword [esi + 0x40c]
push eax
push ebx
call fcn.004cf8cf
add esp, 8
mov ecx, esi
mov dword [esi + 0x410], eax
call fcn.00489ed0
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.0048a180
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
pop esi
pop ebp
ret 4
pop edi
pop ebx
mov dword [esi + 0x42c], 1
pop esi
pop ebp
ret 4
pop edi
pop ebx
mov dword [esi + 0x430], 1
pop esi
pop ebp
ret 4
cmp dword [esi + 0x42c], 0
mov eax, dword [esi + 0x404]
mov dword [esi + 0x408], eax
mov dword [esi + 0x404], 0
je 0x48aa1e
cmp dword [esi + 0x418], 0
jne 0x48a64b
push eax
call fcn.00489f00
mov edx, dword [esi + 0x404]
push edx
mov ecx, esi
call fcn.00489f80
pop edi
pop ebx
pop esi
pop ebp
ret 4
cmp dword [esi + 0x42c], 0
mov eax, dword [esi + 0x404]
mov ecx, dword [esi + 0x410]
mov dword [esi + 0x408], eax
mov dword [esi + 0x404], ecx
je 0x48aa1c
cmp dword [esi + 0x418], 0
jne 0x48a696
push eax
mov ecx, esi
call fcn.00489f00
mov eax, dword [esi + 0x404]
push eax
mov ecx, esi
call fcn.00489f80
pop edi
pop ebx
pop esi
pop ebp
ret 4
cmp dword [esi + 0x410], 0
jle case.0x48a31e.19
mov eax, dword [esi + 0x404]
mov dword [esi + 0x408], eax
test eax, eax
jle 0x48a705
lea ecx, [eax + esi + 3]
push ecx
lea edx, [esi + 4]
push edx
call fcn.00438f70
add esp, 8
test eax, eax
je 0x48a6ff
mov eax, dword [esi + 0x404]
cmp eax, 1
jle 0x48a6f3
add eax, 0xfffffffe
mov dword [esi + 0x404], eax
jmp 0x48a705
mov dword [esi + 0x404], 0
jmp 0x48a705
dec dword [esi + 0x404]
cmp dword [esi + 0x42c], 0
je 0x48aa1c
cmp dword [esi + 0x418], 0
jne 0x48a729
mov eax, dword [esi + 0x408]
push eax
mov ecx, esi
call fcn.00489f00
mov ecx, dword [esi + 0x404]
push ecx
mov ecx, esi
call fcn.00489f80
pop edi
pop ebx
pop esi
pop ebp
ret 4
mov ecx, dword [esi + 0x410]
test ecx, ecx
jle case.0x48a31e.19
mov eax, dword [esi + 0x404]
mov dword [esi + 0x408], eax
cmp eax, ecx
jge 0x48a798
movzx edx, byte [eax + esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x48a792
mov eax, dword [esi + 0x410]
mov ecx, dword [esi + 0x404]
lea edx, [eax - 1]
cmp ecx, edx
jge 0x48a78a
add ecx, 2
mov dword [esi + 0x404], ecx
jmp 0x48a798
mov dword [esi + 0x404], eax
jmp 0x48a798
inc dword [esi + 0x404]
cmp dword [esi + 0x42c], 0
je 0x48aa1c
cmp dword [esi + 0x418], 0
jne 0x48a7bc
mov eax, dword [esi + 0x408]
push eax
mov ecx, esi
call fcn.00489f00
mov ecx, dword [esi + 0x404]
push ecx
mov ecx, esi
call fcn.00489f80
pop edi
pop ebx
pop esi
pop ebp
ret 4
cmp dword [esi + 0x418], 0
je 0x48a855
push 0x200
lea edi, [esi + 0x204]
push 0
push edi
call fcn.004cce10
mov edx, dword [esi + 0x410]
push edx
lea ebx, [esi + 4]
push ebx
push edi
call fcn.004cd640
push 0x200
push 0
push ebx
call fcn.004cce10
mov eax, dword [esi + 0x41c]
add esp, 0x24
test eax, eax
jle 0x48a823
push eax
push edi
push ebx
call fcn.004cd640
add esp, 0xc
mov eax, dword [esi + 0x424]
cmp eax, dword [esi + 0x410]
jge 0x48a9ee
lea ecx, [eax + esi + 0x204]
mov eax, dword [esi + 0x41c]
lea edx, [esi + eax + 4]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x48a846
jmp 0x48a9ee
mov ecx, dword [esi + 0x404]
test ecx, ecx
jle case.0x48a31e.19
mov eax, dword [esi + 0x40c]
cmp eax, 1
je 0x48aa47
test eax, eax
jle case.0x48a31e.19
lea ecx, [ecx + esi + 3]
push ecx
lea edi, [esi + 4]
push edi
call fcn.00438f70
add esp, 8
push 0x200
lea ebx, [esi + 0x204]
push 0
push ebx
test eax, eax
je 0x48a91a
call fcn.004cce10
mov edx, dword [esi + 0x410]
push edx
push edi
push ebx
call fcn.004cd640
push 0x200
push 0
push edi
call fcn.004cce10
mov eax, dword [esi + 0x404]
sub eax, 2
push eax
push ebx
push edi
call fcn.004cd640
mov eax, dword [esi + 0x404]
add esp, 0x30
lea ecx, [eax + esi + 0x204]
lea edx, [eax + esi + 2]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x48a8e2
mov ebx, 0xfffffffe
add dword [esi + 0x40c], ebx
mov eax, dword [esi + 0x40c]
push eax
push edi
call fcn.004cf8cf
add esp, 8
add dword [esi + 0x404], ebx
pop edi
pop ebx
mov dword [esi + 0x410], eax
pop esi
pop ebp
ret 4
call fcn.004cce10
mov edx, dword [esi + 0x410]
push edx
push edi
push ebx
call fcn.004cd640
push 0x200
push 0
push edi
call fcn.004cce10
mov eax, dword [esi + 0x404]
dec eax
push eax
push ebx
push edi
call fcn.004cd640
mov eax, dword [esi + 0x404]
add esp, 0x30
lea ecx, [eax + esi + 0x204]
lea edx, [eax + esi + 3]
lea ecx, [ecx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x48a960
or ebx, 0xffffffff
jmp 0x48a8f1
cmp dword [esi + 0x418], 0
je 0x48aa2a
push 0x200
lea edi, [esi + 0x204]
push 0
push edi
call fcn.004cce10
mov edx, dword [esi + 0x410]
push edx
lea ebx, [esi + 4]
push ebx
push edi
call fcn.004cd640
push 0x200
push 0
push ebx
call fcn.004cce10
mov eax, dword [esi + 0x41c]
add esp, 0x24
test eax, eax
jle 0x48a9c5
push eax
push edi
push ebx
call fcn.004cd640
add esp, 0xc
mov eax, dword [esi + 0x424]
cmp eax, dword [esi + 0x410]
jge 0x48a9ee
lea ecx, [eax + esi + 0x204]
mov eax, dword [esi + 0x41c]
lea edx, [esi + eax + 4]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x48a9e4
mov eax, dword [esi + 0x41c]
mov dword [esi + 0x404], eax
sub eax, dword [esi + 0x424]
add dword [esi + 0x40c], eax
mov eax, dword [esi + 0x40c]
push eax
push ebx
call fcn.004cf8cf
add esp, 8
mov dword [esi + 0x410], eax
mov ecx, esi
call fcn.00489ed0
pop edi
pop ebx
pop esi
pop ebp
ret 4
mov ecx, dword [esi + 0x404]
cmp ecx, dword [esi + 0x410]
jge case.0x48a31e.19
mov eax, dword [esi + 0x40c]
cmp eax, 1
jne 0x48aa55
mov ecx, esi
call fcn.00489db0
pop edi
pop ebx
pop esi
pop ebp
ret 4
test eax, eax
jle case.0x48a31e.19
movzx ecx, byte [ecx + esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0x200
lea edi, [esi + 0x204]
push 0
push edi
test eax, eax
je 0x48aad3
call fcn.004cce10
mov edx, dword [esi + 0x410]
push edx
lea ebx, [esi + 4]
push ebx
push edi
call fcn.004cd640
push 0x200
push 0
push ebx
call fcn.004cce10
mov eax, dword [esi + 0x404]
push eax
push edi
push ebx
call fcn.004cd640
mov eax, dword [esi + 0x404]
add esp, 0x30
lea ecx, [eax + esi + 0x206]
lea edx, [eax + esi + 4]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x48aac0
add dword [esi + 0x40c], 0xfffffffe
jmp 0x48ab28
call fcn.004cce10
mov edx, dword [esi + 0x410]
push edx
lea ebx, [esi + 4]
push ebx
push edi
call fcn.004cd640
push 0x200
push 0
push ebx
call fcn.004cce10
mov eax, dword [esi + 0x404]
push eax
push edi
push ebx
call fcn.004cd640
mov eax, dword [esi + 0x404]
add esp, 0x30
lea ecx, [eax + esi + 0x205]
lea edx, [eax + esi + 4]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x48ab18
dec dword [esi + 0x40c]
mov eax, dword [esi + 0x40c]
push eax
push ebx
call fcn.004cf8cf
add esp, 8
mov dword [esi + 0x410], eax
pop edi
pop ebx
pop esi
pop ebp
ret 4