Function at 0x403f50
Capabilities:
Create process on windows
Get common file path
Hide graphical window
Open clipboard
Write clipboard data

Disassembly:
sub eax, 0x65
cmp eax, 0x20
ja case.default.0x403f6a
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x6ac
jmp dword [eax*4 + 0x4100c0]
mov eax, dword [0x41a4cc]
mov dword [esp], eax
call dword [sym.imp.user32.dll_IsWindowVisible]
sub esp, 4
test eax, eax
je 0x404970
mov eax, dword [0x41a4cc]
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 dbg.ResizeChild
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [0x41a4e4]
mov ecx, edx
and edx, 0xffffffef
and ecx, 0x10
mov eax, ecx
not eax
and eax, 0x10
or eax, edx
test eax, eax
mov dword [0x41a4e4], eax
je 0x404941
xor eax, eax
test ecx, ecx
mov dword [esp], ebx
sete al
mov esi, eax
shl esi, 3
call dword [sym.imp.user32.dll_GetMenu]
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.0x403f6a.105
mov eax, dword [0x41a4dc]
mov esi, dword [sym.imp.user32.dll_LoadStringW]
lea edi, [ebp - 0x620]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], global_wszTitle
mov dword [esp + 4], 0x1e
mov dword [esp], eax
call esi
mov eax, dword [0x41a4dc]
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 [0x41a4dc]
lea edx, [ebp - 0x420]
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x20
mov dword [esp + 8], edx
mov dword [ebp - 0x67c], edx
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x67c]
lea esi, [ebp - 0x220]
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 4], global_filterW
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
lea edx, [ebp - 0x678]
xor eax, eax
mov ecx, 0x16
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [0x41a4dc]
mov dword [ebp - 0x678], 0x58
mov dword [ebp - 0x674], ebx
mov dword [ebp - 0x648], global_wszTitle
mov dword [ebp - 0x66c], esi
mov dword [ebp - 0x65c], global_wszFileName
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x658], 0x100
mov dword [ebp - 0x644], 0x800004
mov dword [esp], edx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
sub esp, 4
test eax, eax
je case.0x403f6a.105
mov eax, dword [0x41a4dc]
mov dword [esp + 4], global_wszFileName
mov dword [esp], eax
call dbg.CreateTypeLibWindow
jmp case.0x403f6a.105
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], dbg.SysConfProc
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.0x403f6a.105
lea ebx, [ebp - 0x220]
mov dword [esp + 4], 0xf7
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
sub esp, 8
cmp word [ebp - 0x220], 0
mov edx, ebx
je 0x4041f9
mov esi, esi
lea edi, [edi]
add edx, 2
cmp word [edx], 0
jne 0x4041f0
xor eax, eax
mov ecx, 0x5c
jmp 0x404209
movzx ecx, word [eax + str._regedit.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404202
lea edx, [ebp - 0x420]
xor eax, eax
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x620]
mov dword [ebp - 0x420], 0x44
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], eax
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.0x403f6a.105
mov eax, dword [ebp - 0x620]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x61c]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
jmp case.0x403f6a.105
mov dword [esp], edx
call dword [sym.imp.user32.dll_DestroyWindow]
sub esp, 4
jmp case.0x403f6a.105
mov eax, dword [0x41a4d0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp], eax
call ebx
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0
mov dword [esp], esi
call dbg.CreateInst
mov eax, dword [0x41a4d0]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x1102
mov dword [esp], eax
call ebx
sub esp, 0x10
jmp case.0x403f6a.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.0x403f6a.105
mov eax, dword [0x41a4d0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 9
mov dword [esp + 4], 0x110a
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp], eax
call ebx
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], 0x41a4e8
jmp 0x4042f6
mov eax, dword [0x41a4d0]
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 dbg.ReleaseInst
mov dword [esp], ebx
call dbg.RefreshMenu
mov dword [esp], ebx
call dbg.RefreshDetails
jmp case.0x403f6a.105
mov eax, dword [0x41a4d0]
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 - 0x220]
mov ebx, eax
mov ecx, 0xa
xor eax, eax
sub esp, 0x10
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [0x41a4d0]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x20c], 0x100
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [esp], eax
call esi
mov eax, dword [0x41a4c0]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_OpenClipboard]
sub esp, 4
test eax, eax
je case.0x403f6a.105
call dword [sym.imp.user32.dll_EmptyClipboard]
test eax, eax
je case.0x403f6a.105
mov ebx, dword [ebp - 0x1fc]
test ebx, ebx
je case.0x403f6a.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 - 0x1fc]
sub esp, 4
add edx, 0x202
lea esi, [esi]
lea edi, [edi]
add edx, 2
movzx ecx, word [edx - 2]
add eax, 2
test cx, cx
mov word [eax - 2], cx
jne 0x4044c0
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.0x403f6a.105
mov eax, dword [0x41a4d0]
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 - 0x220]
mov ebx, eax
mov ecx, 0xa
xor eax, eax
sub esp, 0x10
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [0x41a4d0]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x20c], 0x100
mov dword [esp + 8], 0
mov dword [esp + 4], 0x113e
mov dword [esp], eax
call esi
mov eax, dword [0x41a4c0]
sub esp, 0x10
mov dword [esp], eax
call dword [sym.imp.user32.dll_OpenClipboard]
sub esp, 4
test eax, eax
je case.0x403f6a.105
call dword [sym.imp.user32.dll_EmptyClipboard]
test eax, eax
je case.0x403f6a.105
mov ecx, dword [ebp - 0x1fc]
test ecx, ecx
je case.0x403f6a.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 ecx, dword [ebp - 0x1fc]
sub esp, 4
cmp word [ecx + 0x202], 0
lea ebx, [ecx + 0x202]
mov edx, ebx
je 0x4045eb
add edx, 2
cmp word [edx], 0
jne 0x4045e2
sub edx, ebx
xor edi, edi
sar edx, 1
lea ebx, [edx + 0xff]
mov word [ecx + ebx*2 + 2], di
add ecx, 0x204
mov dword [esp + 4], str._object_n___classid_clsid:_s__n__n__object_
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp - 0x1fc]
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.0x403f6a.105
mov eax, dword [0x41a4d0]
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 dbg.IsInterface
test eax, eax
je 0x404950
mov dword [esp], ebx
call dbg.InterfaceViewer
jmp case.0x403f6a.105
mov edx, dword [0x41a4e0]
xor eax, eax
mov dword [esp], ebx
test edx, edx
sete al
lea esi, [eax*8]
mov dword [0x41a4e0], 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 dbg.EmptyTree
mov ecx, dword [0x41a4e0]
test ecx, ecx
jne 0x404937
call dbg.AddTree
mov eax, dword [0x41a4d0]
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 [0x41a4d0]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x110b
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp], ebx
call dbg.RefreshMenu
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x41a4dc]
lea esi, [ebp - 0x220]
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x14
mov dword [esp + 8], esi
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.0x403f6a.105
mov edx, dword [0x41a4e4]
mov eax, edx
mov ecx, edx
not eax
and ecx, 0xfffffffe
and eax, 1
or eax, ecx
test eax, eax
mov dword [0x41a4e4], eax
je 0x4049b3
xor eax, eax
and edx, 1
mov dword [esp], ebx
sete al
mov esi, eax
shl esi, 3
call dword [sym.imp.user32.dll_GetMenu]
sub esp, 4
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.0x403f6a.105
mov edx, dword [0x41a4e4]
mov ecx, edx
and edx, 0xfffffffd
and ecx, 2
mov eax, ecx
not eax
and eax, 2
or eax, edx
test eax, eax
mov dword [0x41a4e4], eax
je 0x404941
xor eax, eax
test ecx, ecx
mov dword [esp], ebx
sete al
mov esi, eax
shl esi, 3
call dword [sym.imp.user32.dll_GetMenu]
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.0x403f6a.105
mov edx, dword [0x41a4e4]
mov ecx, edx
and edx, 0xfffffffb
and ecx, 4
mov eax, ecx
not eax
and eax, 4
or eax, edx
test eax, eax
mov dword [0x41a4e4], eax
je 0x404941
xor eax, eax
test ecx, ecx
mov dword [esp], ebx
sete al
mov esi, eax
shl esi, 3
call dword [sym.imp.user32.dll_GetMenu]
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.0x403f6a.105
mov eax, dword [0x41a4c8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_IsWindowVisible]
sub esp, 4
test eax, eax
jne 0x404993
mov eax, dword [0x41a4c8]
mov dword [esp + 4], 5
mov esi, 8
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 dbg.ResizeChild
jmp case.0x403f6a.105
call dbg.EmptyTree
mov eax, dword [0x41a4e0]
test eax, eax
je 0x4046f0
call dbg.AddTreeEx
jmp 0x4046f5
mov dword [0x41a4e4], ecx
jmp case.0x403f6a.105
mov eax, dword [0x41a4dc]
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.CreateTypeLibWindow
jmp case.0x403f6a.105
mov eax, dword [0x41a4cc]
mov dword [esp + 4], 5
mov esi, 8
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
jmp 0x403fa5
mov eax, dword [0x41a4c8]
mov dword [esp + 4], 0
xor esi, esi
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
jmp 0x4048f7
mov dword [0x41a4e4], 1
jmp case.0x403f6a.105
xor eax, eax
ret