Function at 0x4fc3e0
Capabilities:
Read file via mapping
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa38c
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x60f074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x48], ebx
cmp esi, 4
je 0x4fc437
mov edx, dword [edi]
cmp edx, dword [edi + 4]
je 0x4fc956
mov eax, dword [edx]
cmp eax, dword [edx + 4]
je 0x4fc956
cmp esi, 2
je 0x4fc44b
cmp esi, 5
je 0x4fc44b
cmp esi, 6
je 0x4fc44b
cmp esi, 7
jne 0x4fc47d
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [edi]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x4fc956
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x4fc956
mov ecx, dword [ebp - 0x44]
cmp esi, 7
ja case.0x4fc483.3
jmp dword [esi*4 + 0x4fc97c]
mov eax, dword [edi]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor eax, eax
sub edx, ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.004712d0
mov eax, dword [ebp - 0x18]
add esp, 4
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4fc4ff
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov esi, eax
cmovae edx, dword [ebp - 0x28]
add ecx, ecx
push ecx
push edx
push esi
call fcn.0056ebe0
mov eax, dword [ebp - 0x18]
add esp, 0xc
xor ecx, ecx
push edi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x44]
push edi
push 0xd
call fcn.004fd1b0
lea ecx, [ebp - 0x28]
call fcn.00405c10
jmp 0x4fc956
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub ecx, edx
lea eax, [ecx - 0x18]
cmp eax, 0xc
jae 0x4fc54e
mov esi, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
cmp esi, eax
je 0x4fc956
mov ecx, dword [edx]
sub eax, esi
push eax
mov eax, dword [edx + 4]
push esi
sub eax, ecx
push eax
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.004fcbb0
jmp 0x4fc956
lea eax, [ecx - 0xc]
cmp eax, 0xc
jae 0x4fc956
mov ecx, dword [edx]
mov eax, dword [edx + 4]
push 0
push 0
sub eax, ecx
push eax
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.004fcbb0
jmp 0x4fc956
mov esi, dword [edi]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov edx, dword [esi]
sub eax, ecx
push eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [ebp - 0x44]
sub eax, edx
push eax
push edx
call fcn.004fce40
jmp 0x4fc956
cmp dword [0x61a268], 1
jne 0x4fc5df
cmp dword [0x61a250], 3
jg 0x4fc5df
cmp dword [ecx], ebx
jne 0x4fc5df
push 3
push 0x1c6
push str.f:my_lab_tabexplorerextab_masterlibraryui_baseclipboardclipboard.cpp
lea ecx, [ebp - 0x1b8]
call fcn.0046c100
mov dword [ebp - 4], 1
lea ecx, [eax + 8]
mov ebx, 2
mov edx, str.Check_failed:_clipboard_owner_.
mov dword [ebp - 0x48], ebx
call fcn.00403840
test bl, 2
je 0x4fc5ef
lea ecx, [ebp - 0x1b8]
call fcn.0046c520
call fcn.00529da0
push 0
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x4fc956
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0xc]
sub eax, esi
cmp eax, 8
jne 0x4fc956
mov ebx, dword [esi]
mov eax, SysReAllocString
cdq
idiv ebx
mov ecx, dword [esi + 4]
cmp eax, ecx
jle 0x4fc956
imul ecx, ebx
xor edx, edx
mov eax, SysReAllocString
div ecx
cmp eax, 4
jbe 0x4fc956
mov eax, dword [edi + 4]
mov edx, dword [edi]
sub eax, edx
shl ecx, 2
cmp ecx, eax
jne 0x4fc956
mov ecx, dword [ebp - 0x44]
push esi
push edx
call fcn.004fd000
jmp 0x4fc956
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
sub eax, esi
cmp eax, 4
jne 0x4fc956
mov esi, dword [esi]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 4], 2
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
sub eax, edx
cmp eax, 8
jne 0x4fc74b
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x48], eax
mov eax, SysReAllocString
cdq
idiv dword [ebp - 0x48]
cmp eax, ecx
jle 0x4fc74b
imul ecx, dword [ebp - 0x48]
xor edx, edx
mov eax, SysReAllocString
div ecx
cmp eax, 4
jbe 0x4fc74b
lea edx, [ecx*4]
test esi, esi
je 0x4fc74b
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x4fc74b
cmp byte [esi + 0x20], 0
mov eax, 0xf001f
push edx
push 0
mov edx, 4
push 0
cmovne eax, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esi + 0x1c], ecx
test ecx, ecx
jne 0x4fc7b0
cmp dword [0x61a250], 2
jg 0x4fc73b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 0x62
push str.f:my_lab_tabexplorerextab_masterlibraryui_baseclipboardclipboard.cpp
lea ecx, [ebp - 0x108]
call fcn.0046c7d0
mov byte [ebp - 4], 3
lea ecx, [eax + 0x10]
mov ebx, 4
mov edx, str.Failed_to_map_bitmap_memory
mov dword [ebp - 0x48], ebx
call fcn.00403840
test bl, 4
je 0x4fc74b
lea ecx, [ebp - 0x108]
call fcn.0046c870
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4fc956
mov dword [ebp - 4], 4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4fc776
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x1c], 0
cmp dword [esi + 0x18], 0
je 0x4fc78b
lea ecx, [esi + 0x18]
call fcn.005352a0
mov dword [esi + 0x18], 0
cmp dword [esi + 0x28], 0
lea ecx, [esi + 0x28]
je 0x4fc799
call fcn.005352a0
mov ecx, esi
call fcn.00405c10
push 0x2c
push esi
call fcn.0055053d
add esp, 8
jmp 0x4fc956
mov eax, dword [edi]
push dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.004fd000
mov dword [ebp - 4], 5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4fc7da
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x1c], 0
cmp dword [esi + 0x18], 0
je 0x4fc7ef
lea ecx, [esi + 0x18]
call fcn.005352a0
mov dword [esi + 0x18], 0
cmp dword [esi + 0x28], 0
lea ecx, [esi + 0x28]
je 0x4fc7fd
call fcn.005352a0
mov ecx, esi
call fcn.00405c10
push 0x2c
push esi
call fcn.0055053d
add esp, 8
jmp 0x4fc956
mov eax, dword [edi]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x48], ecx
sub ebx, ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403690
mov dword [ebp - 4], 7
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x40]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
call fcn.00471550
cmp dword [eax + 0x14], 8
jb 0x4fc872
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
movzx eax, ax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x4c], eax
call fcn.00405c10
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x4fc8c6
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4fc956
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4fc8f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fc974
jmp 0x4fc8f5
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push dword [ebp - 0x48]
mov esi, eax
push esi
call fcn.0056ebe0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
push edi
movzx eax, ax
push eax
call fcn.004fd1b0
jmp 0x4fc896
push edx
push ecx
call fcn.0055053d
add esp, 8
jmp 0x4fc956
cmp dword [0x61a268], 1
jne 0x4fc946
cmp dword [0x61a250], 3
jg 0x4fc946
push 3
push 0xc5
push str.f:my_lab_tabexplorerextab_masterlibraryui_baseclipboardclipboard.cpp
lea ecx, [ebp - 0x100]
call fcn.0046c100
mov dword [ebp - 4], 8
lea ecx, [eax + 8]
mov ebx, 1
mov edx, str.Check_failed:_false.
mov dword [ebp - 0x48], ebx
call fcn.00403840
test bl, 1
je 0x4fc956
lea ecx, [ebp - 0x100]
call fcn.0046c520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550156
mov esp, ebp
pop ebp
ret 8
call fcn.00572795
nop dword [eax]
mov al, ah
dec edi
add byte [edi], dl
lds ecx, [edi]
je 0x4fc94b
dec edi
add byte [ecx], al
leave
dec edi
add byte [esi + 0x5004fc5], dl
invalid