Function at 0x407391
Capabilities:
Create thread
Hide graphical window
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [ebp + 0xc]
cmp esi, 0x110
jne 0x40762e
lea edi, [ebp - 0x48]
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov eax, dword [0x43ba60]
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [eax + 0x5c]
mov eax, dword [eax + 0x60]
mov dword [esp + 4], 0x403
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], ecx
mov dword [esp], eax
call edi
mov dword [0x43cb04], eax
mov eax, dword [ebp + 8]
push edx
push edx
mov dword [esp + 4], 0x3ee
mov dword [esp], eax
call edi
mov dword [0x43cb20], eax
mov eax, dword [ebp + 8]
push ecx
push ecx
mov dword [esp + 4], 0x3f8
mov dword [esp], eax
call edi
mov dword [0x43cb08], eax
push ebx
push ebx
mov ebx, eax
mov eax, dword [0x43cb04]
mov dword [esp], eax
call sym._22
push esi
mov dword [esp], 4
call sym._17
mov dword [0x43cb14], eax
push edx
lea eax, [ebp - 0x5c]
mov dword [0x43cb0c], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [ebp - 0x54]
push ecx
push ecx
mov dword [esp], 2
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub esi, eax
push edx
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1061
mov dword [esp], ebx
call esi
sub esp, 0x10
mov dword [esp + 0xc], 0x4000
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 0x1036
mov dword [esp], ebx
call esi
sub esp, 0x10
cmp dword [ebp - 0x6c], 0
js 0x407506
mov eax, dword [ebp - 0x6c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1001
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call esi
mov eax, dword [ebp - 0x6c]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1026
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call esi
sub esp, 0x10
cmp dword [ebp - 0x70], 0
js 0x40752f
mov eax, dword [ebp - 0x70]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1024
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x30]
mov dword [esp + 4], 0x1b
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.n_
sub esp, 0xc
test byte [0x43bac4], 3
je 0x4075a4
mov eax, dword [0x43cb04]
mov dword [esp + 4], 0
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esp], eax
call esi
test byte [0x43bac4], 2
push eax
push eax
jne 0x40758c
mov dword [esp + 4], 8
mov dword [esp], ebx
call esi
push esi
push esi
jmp 0x407596
mov dword [0x43cb04], 0
mov eax, dword [0x43cb20]
mov dword [esp], eax
call sym._22
push ebx
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x3ec
mov dword [esp], eax
call edi
push ecx
push ecx
mov esi, eax
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0xc], 0x75300000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401
mov dword [esp], eax
call ebx
sub esp, 0x10
test byte [0x43bac4], 4
je 0x40790f
mov eax, dword [ebp - 0x70]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x409
mov dword [esp], esi
mov dword [esp + 0xc], eax
call ebx
mov eax, dword [ebp - 0x6c]
sub esp, 0x10
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2001
mov dword [esp], esi
mov dword [esp + 0xc], eax
call ebx
sub esp, 0x10
jmp 0x40790f
cmp esi, 0x405
mov ebx, dword [0x43cb08]
jne 0x407693
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x3ec
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push edx
push edx
lea edx, [ebp - 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], sym._21
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407745
cmp esi, 0x111
jne 0x4076da
cmp word [ebp + 0x10], 0x403
jne 0x407746
mov eax, dword [0x43cb04]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 4], 8
call edi
push eax
push eax
mov dword [esp], ebx
call sym._22
jmp 0x407745
cmp esi, 0x404
jne 0x407746
cmp dword [0x43cb00], 0
je 0x4076fe
mov dword [0x435d48], 2
mov dword [esp], 0x78
jmp 0x407740
mov eax, dword [0x43bae8]
mov dword [esp + 4], 8
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x43ba2c], 0
push eax
push eax
jne 0x407739
mov eax, dword [0x435d40]
mov dword [esp + 4], 0
mov eax, dword [eax + 0x34]
mov dword [esp], eax
call sym._33
push eax
push eax
mov dword [esp], 1
call sym.K
push eax
cmp esi, 0x7b
jne 0x407913
cmp ebx, dword [ebp + 0x10]
jne 0x407913
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1004
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
sub esp, 0x10
test eax, eax
mov dword [ebp - 0x6c], eax
jle 0x40790f
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [esp + 4], 0xffffffe1
mov dword [esp], 0
mov esi, eax
call sym.3
push edi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [ebp + 0x14]
sub esp, 0x10
movsx eax, word [ebp + 0x14]
sar edx, 0x10
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4077ed
lea eax, [ebp - 0x4c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x180
mov dword [esp + 0x14], ecx
mov dword [esp], esi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
sub esp, 0x1c
dec eax
jne 0x40790f
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x44], 0
mov esi, 1
mov dword [ebp - 0x38], 0x435d60
mov dword [ebp - 0x34], 0x1000
dec edx
lea edi, [ebp - 0x4c]
cmp edx, 0xffffffff
je 0x407875
mov dword [esp + 8], edx
mov dword [ebp - 0x70], edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0x1073
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x70]
sub esp, 0x10
lea esi, [eax + esi + 2]
jmp 0x407844
mov dword [esp], 0
add esi, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
push ecx
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov dword [esp + 4], esi
mov dword [esp], 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push esi
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
push edx
xor edx, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x74], ecx
mov dword [esp + 8], edx
mov dword [ebp - 0x70], edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0x1073
mov dword [esp], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x70]
add eax, eax
sub esp, 0x10
add eax, ecx
inc edx
cmp dword [ebp - 0x6c], edx
lea ecx, [eax + 4]
mov dword [eax], 0xa000d
jne 0x4078ae
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push eax
mov dword [esp + 4], esi
mov dword [esp], 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
push edx
push edx
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x40792c
mov eax, dword [ebp + 0x14]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
call fcn.0040513b
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10