Function at 0x43f120
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2ab2
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x536014]
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 edi, ecx
mov dword [ebp - 0x5c], edi
push 0
push 0x5393dc
push 0x5393bc
push 0
push dword [edi + 0x248]
call fcn.0048befc
add esp, 0x14
test eax, eax
je 0x43f3af
mov esi, dword [eax + 0x94]
mov ebx, dword [eax + 0x9c]
cmp esi, ebx
jle 0x43f18a
mov eax, esi
mov esi, ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
cmp esi, ebx
jg 0x43f293
nop dword [eax]
test esi, esi
js 0x43f281
mov ecx, dword [edi + 0x248]
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp esi, eax
jge 0x43f281
mov eax, dword [edi + 0x258]
test eax, eax
je 0x43f281
nop dword [eax]
mov edi, dword [eax + 8]
lea ecx, [eax]
mov eax, dword [eax]
cmp dword [edi + 0x268], esi
je 0x43f1f8
test eax, eax
jne 0x43f1e0
jmp 0x43f27e
push 0x50d418
lea ecx, [ebp - 0x60]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_char__struct_SOUI::char_traits_::constructor_char_const__]
push 0
push 0
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.utilities.dll_public:_static_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits____cdecl_SOUI::SStrCpCvt::CvtA2W_class_SOUI::TStringT_char__struct_SOUI::char_traits__const___unsigned_int__unsigned_int_]
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [edi + 4]
push dword [eax]
call fcn.0042c100
lea ecx, [ebp - 0x64]
mov edi, eax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_char__struct_SOUI::char_traits_::destructor_void_]
test edi, edi
je 0x43f27e
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00436410
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0041b060
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x43f27e
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407a10
mov edi, dword [ebp - 0x5c]
inc esi
cmp esi, ebx
jle 0x43f1b0
cmp dword [ebp - 0x2c], 8
mov edx, dword [ebp - 0x40]
jae 0x43f296
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0044b850
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
mov edi, dword [ebp - 0x18]
cmovae esi, dword [ebp - 0x28]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43f2fa
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [edi + 1]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x43f2d6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x43f344
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x43f33b
test cl, 0x1f
je 0x43f317
call fcn.004ab969
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x43f323
call fcn.004ab969
sub ecx, eax
cmp ecx, 4
jae 0x43f32f
call fcn.004ab969
cmp ecx, 0x23
jbe 0x43f339
call fcn.004ab969
mov ecx, eax
push ecx
call fcn.00466902
add esp, 4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 8
jb 0x43f3af
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
jbe 0x43f36e
call fcn.004ab969
add eax, eax
cmp eax, 0x1000
jb 0x43f3a6
test byte [ebp - 0x40], 0x1f
je 0x43f382
call fcn.004ab969
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x43f38e
call fcn.004ab969
sub ecx, eax
cmp ecx, 4
jae 0x43f39a
call fcn.004ab969
cmp ecx, 0x23
jbe 0x43f3a4
call fcn.004ab969
mov ecx, eax
push ecx
call fcn.00466902
add esp, 4
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.00466907
mov esp, ebp
pop ebp
ret