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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fd59c
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x53f084]
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 0x43a877
mov edx, dword [edi]
cmp edx, dword [edi + 4]
je 0x43ad6c
mov eax, dword [edx]
cmp eax, dword [edx + 4]
je 0x43ad6c
cmp esi, 2
je 0x43a88b
cmp esi, 5
je 0x43a88b
cmp esi, 6
je 0x43a88b
cmp esi, 7
jne 0x43a8bd
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 0x43ad6c
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
cmp eax, dword [ecx + 0x10]
je 0x43ad6c
mov ecx, dword [ebp - 0x44]
cmp esi, 7
ja case.0x43a8c3.3
jmp dword [esi*4 + 0x43ad90]
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.004113f0
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 0x43a93f
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.004d38f0
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.0043b4d0
lea ecx, [ebp - 0x28]
call fcn.00405080
jmp 0x43ad6c
mov ecx, dword [edi + 4]
mov edx, dword [edi]
sub ecx, edx
lea eax, [ecx - 0x18]
cmp eax, 0xc
jae 0x43a98e
mov esi, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
cmp esi, eax
je 0x43ad6c
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.0043afb0
jmp 0x43ad6c
lea eax, [ecx - 0xc]
cmp eax, 0xc
jae 0x43ad6c
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.0043afb0
jmp 0x43ad6c
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.0043b160
jmp 0x43ad6c
cmp dword [0x543fdc], 1
jne 0x43aa16
cmp dword [ecx], ebx
jne 0x43aa16
push 3
push 0x1c6
push str.f:my_lab_tabexplorerextab_masterlibraryui_baseclipboardclipboard.cpp
lea ecx, [ebp - 0x1b8]
call fcn.0040eda0
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.00405a30
test bl, 2
je 0x43aa26
lea ecx, [ebp - 0x1b8]
call fcn.0040f1c0
call fcn.004558b0
push 0
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x43ad6c
mov edi, dword [edi]
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0xc]
sub eax, esi
cmp eax, 8
jne 0x43ad6c
mov ebx, dword [esi]
mov eax, SysReAllocString
cdq
idiv ebx
mov ecx, dword [esi + 4]
cmp eax, ecx
jle 0x43ad6c
imul ecx, ebx
xor edx, edx
mov eax, SysReAllocString
div ecx
cmp eax, 4
jbe 0x43ad6c
mov eax, dword [edi + 4]
mov edx, dword [edi]
sub eax, edx
shl ecx, 2
cmp ecx, eax
jne 0x43ad6c
mov ecx, dword [ebp - 0x44]
push esi
push edx
call fcn.0043b320
jmp 0x43ad6c
mov ecx, dword [edi]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
sub eax, esi
cmp eax, 4
jne 0x43ad6c
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 0x43ab6a
mov ecx, dword [edx + 4]
mov eax, SysReAllocString
mov ebx, dword [edx]
cdq
idiv ebx
cmp eax, ecx
jle 0x43ab6a
imul ecx, ebx
xor edx, edx
mov eax, SysReAllocString
div ecx
cmp eax, 4
jbe 0x43ab6a
lea eax, [ecx*4]
test esi, esi
je 0x43ab6a
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x43ab6a
cmp byte [esi + 0x20], 0
mov edx, 4
push eax
push 0
push 0
mov eax, 0xf001f
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 0x43abcf
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.0040f430
mov byte [ebp - 4], 3
lea ecx, [eax + 0x10]
mov edx, str.Failed_to_map_bitmap_memory
mov dword [ebp - 0x48], 4
call fcn.00405a30
lea ecx, [ebp - 0x108]
call fcn.0040f4d0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x43ad6c
mov dword [ebp - 4], 4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x43ab95
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x1c], 0
cmp dword [esi + 0x18], 0
je 0x43abaa
lea ecx, [esi + 0x18]
call fcn.00472ac0
mov dword [esi + 0x18], 0
cmp dword [esi + 0x28], 0
lea ecx, [esi + 0x28]
je 0x43abb8
call fcn.00472ac0
mov ecx, esi
call fcn.00405080
push 0x2c
push esi
call fcn.004d1750
add esp, 8
jmp 0x43ad6c
mov eax, dword [edi]
push dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.0043b320
mov dword [ebp - 4], 5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x43abf9
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x1c], 0
cmp dword [esi + 0x18], 0
je 0x43ac0e
lea ecx, [esi + 0x18]
call fcn.00472ac0
mov dword [esi + 0x18], 0
cmp dword [esi + 0x28], 0
lea ecx, [esi + 0x28]
je 0x43ac1c
call fcn.00472ac0
mov ecx, esi
call fcn.00405080
push 0x2c
push esi
call fcn.004d1750
add esp, 8
jmp 0x43ad6c
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.00405250
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.00411670
cmp dword [eax + 0x14], 8
jb 0x43ac91
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.00405080
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x43ace5
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x43ad6c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43ad14
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43ad8a
jmp 0x43ad14
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push dword [ebp - 0x48]
mov esi, eax
push esi
call fcn.004d38f0
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.0043b4d0
jmp 0x43acb5
push edx
push ecx
call fcn.004d1750
add esp, 8
jmp 0x43ad6c
cmp dword [0x543fdc], 1
jne 0x43ad5c
push 3
push 0xc5
push str.f:my_lab_tabexplorerextab_masterlibraryui_baseclipboardclipboard.cpp
lea ecx, [ebp - 0x100]
call fcn.0040eda0
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.00405a30
test bl, 1
je 0x43ad6c
lea ecx, [ebp - 0x100]
call fcn.0040f1c0
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.004d170a
mov esp, ebp
pop ebp
ret 8
call fcn.004da89d
nop
retf 0x43a8