Function at 0x4086a0
Capabilities:
Hide graphical window

Disassembly:
sub eax, 0x65
cmp eax, 0x20
ja case.default.0x407d1a
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x688
jmp dword [eax*4 + 0x40f03c]
mov edx, dword [0x40e340]
xor eax, eax
mov dword [esp], ebx
test edx, edx
sete al
lea esi, [eax*8]
mov dword [0x40e340], eax
call dword [sym.imp.user32.dll_GetMenu]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x78
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
call sym._EmptyTree
mov ecx, dword [0x40e340]
test ecx, ecx
je 0x4084e2
call sym._AddTreeEx
mov eax, dword [0x40e330]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0xffff0000
mov dword [esp + 8], 4
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call esi
sub esp, 0x10
mov ebx, eax
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x110b
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp], ebx
call sym._RefreshMenu
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
ret
mov edx, dword [0x40e344]
mov ecx, edx
and edx, 0xffffffef
and ecx, 0x10
mov eax, ecx
not eax
and eax, 0x10
or eax, edx
mov dword [0x40e344], eax
je 0x408708
xor eax, eax
test ecx, ecx
mov dword [esp], ebx
sete al
mov esi, eax
call dword [sym.imp.user32.dll_GetMenu]
shl esi, 3
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x85
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
jmp case.0x407d1a.105
mov edx, dword [0x40e344]
mov ecx, edx
and edx, 0xfffffffb
and ecx, 4
mov eax, ecx
not eax
and eax, 4
or eax, edx
mov dword [0x40e344], eax
je 0x408708
xor eax, eax
test ecx, ecx
mov dword [esp], ebx
sete al
mov esi, eax
call dword [sym.imp.user32.dll_GetMenu]
shl esi, 3
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x84
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
jmp case.0x407d1a.105
mov edx, dword [0x40e344]
mov ecx, edx
and edx, 0xfffffffd
and ecx, 2
mov eax, ecx
not eax
and eax, 2
or eax, edx
mov dword [0x40e344], eax
je 0x408708
xor eax, eax
test ecx, ecx
mov dword [esp], ebx
sete al
mov esi, eax
call dword [sym.imp.user32.dll_GetMenu]
shl esi, 3
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x83
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
jmp case.0x407d1a.105
mov eax, dword [0x40e344]
mov edx, eax
and eax, 0xfffffffe
and edx, 1
mov ecx, edx
xor ecx, 1
or eax, ecx
mov dword [0x40e344], eax
jne 0x408738
mov dword [0x40e344], edx
jmp case.0x407d1a.105
mov eax, dword [0x40e33c]
lea esi, [ebp - 0x214]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 0x14
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.shell32.dll_ShellAboutW]
sub esp, 0x10
jmp case.0x407d1a.105
mov eax, dword [0x40e330]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call esi
lea edx, [ebp - 0x214]
mov ecx, 0xa
mov edi, edx
mov ebx, eax
xor eax, eax
sub esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [0x40e330]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x200], 0x100
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [esp], eax
call esi
mov eax, dword [0x40e320]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_OpenClipboard]
sub esp, 4
test eax, eax
je case.0x407d1a.105
call dword [sym.imp.user32.dll_EmptyClipboard]
test eax, eax
je case.0x407d1a.105
mov ebx, dword [ebp - 0x1f0]
test ebx, ebx
je case.0x407d1a.105
mov dword [esp + 4], 0x200
mov dword [esp], 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
sub esp, 8
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, dword [ebp - 0x1f0]
mov ecx, eax
sub esp, 4
lea eax, [edx + 0x202]
sub ecx, edx
lea esi, [esi]
mov edx, eax
add eax, 2
movzx edx, word [edx]
mov word [eax + ecx - 0x204], dx
test dx, dx
jne 0x408060
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GlobalUnlock]
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0xd
call dword [sym.imp.user32.dll_SetClipboardData]
sub esp, 8
call dword [sym.imp.user32.dll_CloseClipboard]
jmp case.0x407d1a.105
mov eax, dword [0x40e330]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov ebx, eax
mov dword [esp], eax
call sym._ReleaseInst
mov dword [esp], ebx
call sym._RefreshMenu
mov dword [esp], ebx
call sym._RefreshDetails
jmp case.0x407d1a.105
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], sym._CreateInstOnProc_16
mov dword [esp + 8], edx
mov dword [esp + 4], 0x3e8
mov dword [esp], 0
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
cmp eax, 2
je case.0x407d1a.105
mov eax, dword [0x40e330]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call esi
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0x40e348
mov dword [esp], ebx
call sym._CreateInst
mov eax, dword [0x40e330]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], eax
call esi
sub esp, 0x10
jmp case.0x407d1a.105
mov eax, dword [0x40e330]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call esi
sub esp, 0x10
mov ebx, eax
mov dword [esp + 4], 0
jmp 0x40815a
mov dword [esp], edx
call dword [sym.imp.user32.dll_DestroyWindow]
sub esp, 4
jmp case.0x407d1a.105
lea ebx, [ebp - 0x214]
mov dword [esp + 4], 0xf7
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
mov edx, ebx
sub esp, 8
cmp word [ebp - 0x214], 0
je 0x408219
nop
add edx, 2
cmp word [edx], 0
jne 0x408210
xor eax, eax
mov ecx, 0x5c
jmp 0x40822f
movzx ecx, word [eax + str._regedit.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x408228
lea edx, [ebp - 0x410]
xor eax, eax
mov ecx, 0x10
mov edi, edx
lea esi, [ebp - 0x414]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x614]
mov dword [esp + 0x20], esi
mov dword [ebp - 0x414], 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
je case.0x407d1a.105
mov eax, dword [ebp - 0x614]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x610]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
jmp case.0x407d1a.105
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], sym._SysConfProc_16
mov dword [esp + 8], edx
mov dword [esp + 4], 0x3f2
mov dword [esp], 0
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
jmp case.0x407d1a.105
mov eax, dword [0x40e33c]
mov esi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [esp + 0xc], 0x100
lea edi, [ebp - 0x614]
mov dword [esp + 8], 0x40ea40
mov dword [esp + 4], 0x1e
mov dword [esp], eax
call esi
mov eax, dword [0x40e33c]
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x1f
mov dword [esp], eax
call esi
mov eax, dword [0x40e33c]
lea edx, [ebp - 0x414]
sub esp, 0x10
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x20
mov dword [esp], eax
call esi
lea edx, [ebp - 0x414]
lea esi, [ebp - 0x214]
sub esp, 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 8], edi
lea edi, [ebp - 0x65c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], str._s_c.tlb_.olb_.dll_.ocx_.exe_c_s_c._c
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
xor eax, eax
mov ecx, 0x12
lea edx, [ebp - 0x66c]
rep stosd dword es:[edi], eax
mov eax, dword [0x40e33c]
mov dword [ebp - 0x668], ebx
mov dword [ebp - 0x66c], 0x58
mov dword [ebp - 0x664], eax
mov dword [ebp - 0x63c], 0x40ea40
mov dword [ebp - 0x660], esi
mov dword [ebp - 0x650], 0x40e840
mov dword [ebp - 0x64c], 0x100
mov dword [ebp - 0x638], 0x800004
mov dword [esp], edx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
sub esp, 4
test eax, eax
je case.0x407d1a.105
mov eax, dword [0x40e33c]
mov dword [esp + 4], 0x40e840
mov dword [esp], eax
call sym._CreateTypeLibWindow
jmp case.0x407d1a.105
mov eax, dword [0x40e32c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_IsWindowVisible]
sub esp, 4
test eax, eax
je 0x408770
mov eax, dword [0x40e32c]
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetMenu]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x7a
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
call sym._ResizeChild
jmp case.0x407d1a.105
call sym._EmptyTree
mov eax, dword [0x40e340]
test eax, eax
jne 0x407d78
call sym._AddTree
jmp 0x407d7d
mov eax, dword [0x40e330]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov ebx, eax
mov dword [esp], eax
call sym._IsInterface
test eax, eax
je 0x408718
mov dword [esp], ebx
call sym._InterfaceViewer
jmp case.0x407d1a.105
mov eax, dword [0x40e330]
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov dword [esp], eax
call esi
lea edx, [ebp - 0x214]
mov ecx, 0xa
mov edi, edx
mov ebx, eax
xor eax, eax
sub esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [0x40e330]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x200], 0x100
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [esp], eax
call esi
mov eax, dword [0x40e320]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_OpenClipboard]
sub esp, 4
test eax, eax
je case.0x407d1a.105
call dword [sym.imp.user32.dll_EmptyClipboard]
test eax, eax
je case.0x407d1a.105
mov ecx, dword [ebp - 0x1f0]
test ecx, ecx
je case.0x407d1a.105
mov dword [esp + 4], 0x200
mov dword [esp], 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
sub esp, 8
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, dword [ebp - 0x1f0]
sub esp, 4
mov ecx, eax
lea edi, [edx + 0x202]
cmp word [edx + 0x202], 0
mov eax, edi
je 0x408631
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x408628
sub eax, edi
xor edi, edi
mov ebx, eax
sar ebx, 1
add ebx, 0xff
mov word [edx + ebx*2 + 2], di
add edx, 0x204
mov dword [esp], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], str._object_n___classid_clsid:_s__n__n__object_
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0x1f0]
mov edx, 0x7d
mov word [eax + ebx*2 + 2], dx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
sub esp, 4
mov dword [esp + 4], esi
mov dword [esp], 0xd
call dword [sym.imp.user32.dll_SetClipboardData]
sub esp, 8
call dword [sym.imp.user32.dll_CloseClipboard]
jmp case.0x407d1a.105
mov eax, dword [0x40e328]
mov dword [esp], eax
call dword [sym.imp.user32.dll_IsWindowVisible]
sub esp, 4
test eax, eax
je 0x408798
mov eax, dword [0x40e328]
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetMenu]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x7b
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
call sym._ResizeChild
jmp case.0x407d1a.105
mov dword [0x40e344], ecx
jmp case.0x407d1a.105
mov eax, dword [0x40e33c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._CreateTypeLibWindow
jmp case.0x407d1a.105
mov esi, edx
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetMenu]
xor esi, 1
sub esp, 4
shl esi, 3
mov dword [esp + 8], esi
mov dword [esp + 4], 0x82
mov dword [esp], eax
call dword [sym.imp.user32.dll_CheckMenuItem]
sub esp, 0xc
jmp case.0x407d1a.105
mov eax, dword [0x40e32c]
mov dword [esp + 4], 5
mov esi, 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
jmp 0x40849c
mov eax, dword [0x40e328]
mov dword [esp + 4], 5
mov esi, 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
jmp 0x4086d4