Function at 0x43f0c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push 0x4a7cc4
call fcn.00404220
test eax, eax
jne 0x43f0eb
mov ecx, dword [esp + 0x18]
push 0x4947f9
push eax
push str.Cant_open_clipboard_for_reading.
call fcn.0042cb30
add esp, 0x14
ret 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x43f19b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a2440]
mov dword [ecx + 0x30], eax
cmp dword [0x4a7cdc], ebx
je 0x43f154
cmp dword [0x4a7ccc], ebx
je 0x43f142
mov edx, dword [0x4a7cc4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a7ccc], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a7cdc], ebx
mov dword [0x4a7cc4], ebx
mov eax, dword [0x4a2440]
cmp byte [eax + 0xe4], bl
jne 0x43f17f
mov ecx, dword [0x4a6474]
push 1
push ebx
push 0xffffffffffffffff
push 0x495ec8
push ecx
call fcn.00471040
pop ebp
pop ebx
add esp, 0x14
ret 8
mov ecx, dword [esp + 0x20]
push 0x4947f9
push ebx
push 0x495ec8
call fcn.0042c870
pop ebp
pop ebx
add esp, 0x14
ret 8
mov edx, dword [0x4a2440]
push edi
mov dword [edx + 0x30], ebx
push ebx
mov byte [esp + 0x11], bl
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
mov dword [esp + 0x14], ebx
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x43f346
push esi
lea ecx, [ecx]
mov ecx, eax
sub ecx, 2
je 0x43f30e
sub ecx, 0xc
je 0x43f30e
sub ecx, 0x80
je 0x43f30e
cmp eax, 1
je 0x43f203
cmp eax, 7
je 0x43f203
cmp eax, 0xd
je 0x43f203
xor dl, dl
jmp 0x43f205
mov dl, 1
cmp eax, 8
je 0x43f213
mov byte [esp + 0x2c], bl
cmp eax, 0x11
jne 0x43f218
mov byte [esp + 0x2c], 1
cmp eax, 3
sete cl
cmp dl, bl
je 0x43f22d
cmp byte [esp + 0x11], 0
jne 0x43f30c
cmp byte [esp + 0x2c], 0
je 0x43f23f
cmp byte [esp + 0x12], 0
jne 0x43f30c
xor ebx, ebx
cmp cl, bl
je 0x43f24f
cmp byte [esp + 0x13], bl
jne 0x43f30c
cmp dl, bl
je 0x43f25a
mov byte [esp + 0x11], 1
jmp 0x43f270
cmp byte [esp + 0x2c], bl
je 0x43f267
mov byte [esp + 0x12], 1
jmp 0x43f270
cmp cl, bl
je 0x43f270
mov byte [esp + 0x13], 1
mov esi, eax
call fcn.004040e0
mov esi, eax
cmp esi, ebx
je 0x43f306
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x43f29f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x43f306
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 0x43f323
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 0x43f323
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x43f306
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 [0x4a2440]
push esi
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp edi, ebx
je 0x43f341
mov eax, dword [esp + 0x14]
jmp 0x43f30e
xor ebx, ebx
push eax
call dword [sym.imp.USER32.dll_EnumClipboardFormats]
mov dword [esp + 0x14], eax
cmp eax, ebx
jne 0x43f1d0
jmp 0x43f345
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x4a2440]
mov dword [edx + 0x30], eax
cmp dword [esp + 0x18], ebx
je 0x43f341
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
pop esi
cmp dword [0x4a7cdc], ebx
je 0x43f37e
cmp dword [0x4a7ccc], ebx
je 0x43f368
mov eax, dword [0x4a7cc4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a7ccc], ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x10]
mov dword [0x4a7cdc], ebx
mov dword [0x4a7cc4], ebx
cmp eax, ebx
jne 0x43f3a7
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a2440]
mov dword [ecx + 0x30], eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
cmp edi, ebx
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042c960
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 8