Function at 0x441050
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0x4c3fa4
call fcn.00404080
test eax, eax
jne 0x441083
mov ecx, dword [esp + 0x28]
push 0x49c820
push eax
push str.Cant_open_clipboard_for_reading.
call fcn.0042f150
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov eax, dword [esp + 0x2c]
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x441133
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4be40c]
mov dword [ecx + 0x30], eax
cmp dword [0x4c3fbc], ebx
je 0x4410ea
cmp dword [0x4c3fac], ebx
je 0x4410d8
mov edx, dword [0x4c3fa4]
push edx
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4c3fac], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4c3fbc], ebx
mov dword [0x4c3fa4], ebx
mov eax, dword [0x4be40c]
cmp byte [eax + 0x104], bl
jne 0x441115
mov ecx, dword [0x4c264c]
push ecx
or eax, 0xffffffff
mov ecx, 0x49f2c4
call fcn.00401200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x28]
push 0x49c820
push ebx
push 0x49f2c4
call fcn.0042ee20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov edx, dword [0x4be40c]
mov dword [edx + 0x30], ebx
push ebx
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], bl
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x4412d8
mov ecx, eax
sub ecx, 2
je 0x4412a1
sub ecx, 0xc
je 0x4412a1
sub ecx, 0x80
je 0x4412a1
cmp eax, 0xd
je 0x441196
cmp eax, 7
je 0x441196
cmp eax, 1
je 0x441196
xor dl, dl
jmp 0x441198
mov dl, 1
cmp eax, 8
je 0x4411a6
mov byte [esp + 0x2c], bl
cmp eax, 0x11
jne 0x4411ab
mov byte [esp + 0x2c], 1
cmp eax, 3
sete cl
cmp dl, bl
je 0x4411c0
cmp byte [esp + 0x11], 0
jne 0x44129f
cmp byte [esp + 0x2c], 0
je 0x4411d2
cmp byte [esp + 0x12], 0
jne 0x44129f
xor ebx, ebx
cmp cl, bl
je 0x4411e2
cmp byte [esp + 0x13], bl
jne 0x44129f
cmp dl, bl
je 0x4411ed
mov byte [esp + 0x11], 1
jmp 0x441203
cmp byte [esp + 0x2c], bl
je 0x4411fa
mov byte [esp + 0x12], 1
jmp 0x441203
cmp cl, bl
je 0x441203
mov byte [esp + 0x13], 1
mov esi, eax
call fcn.00403f40
mov esi, eax
cmp esi, ebx
je 0x441299
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalSize]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x441232
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x441299
push ebx
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4412b6
push ebx
lea edx, [esp + 0x20]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4412b6
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x441299
mov edx, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4be40c]
push esi
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
cmp edi, ebx
je 0x4412d4
mov eax, dword [esp + 0x14]
jmp 0x4412a1
xor ebx, ebx
push eax
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x441163
jmp 0x4412d8
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [0x4be40c]
mov dword [edx + 0x30], eax
cmp dword [esp + 0x18], ebx
je 0x4412d4
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov eax, dword [esp + 0x14]
cmp dword [0x4c3fbc], ebx
je 0x441310
cmp dword [0x4c3fac], ebx
je 0x4412fa
mov eax, dword [0x4c3fa4]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4c3fac], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x14]
mov dword [0x4c3fbc], ebx
mov dword [0x4c3fa4], ebx
cmp eax, ebx
jne 0x441339
push ebx
lea ecx, [esp + 0x20]
push ecx
push 4
lea edx, [esp + 0x20]
push edx
push ebp
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4be40c]
mov dword [ecx + 0x30], eax
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x28]
cmp edi, ebx
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042ef10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8