Function at 0x401000
Capabilities:
Check if process is running under wine
Get common file path
Get number of processors
Hide graphical window
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x1440
call sub.ntdll.dll__chkstk
mov ebx, dword [ebp + 8]
mov dword [esp + 0x1038], 4
mov dword [esp + 0x1034], 8
push 0
call dword [sym.imp.user32.dll_GetDC]
mov dword [esp + 0x10], eax
push 0x409750
push 1
call dword [sym.imp.ucrtbase.dll_setlocale]
add esp, 8
lea eax, [esp + 0x1034]
push eax
call dword [sym.imp.comctl32.dll_InitCommonControlsEx]
mov dword [esp + 0x834], 0x30
mov dword [esp + 0x838], 0
mov dword [esp + 0x83c], 0x4019d0
mov dword [esp + 0x840], 0
mov dword [esp + 0x844], 0
mov dword [esp + 0x848], ebx
push 0x64
push ebx
call dword [sym.imp.user32.dll_LoadIconW]
mov dword [esp + 0x84c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorW]
mov dword [esp + 0x850], eax
mov dword [esp + 0x854], 0
mov dword [esp + 0x858], 0
mov dword [esp + 0x85c], 0x409352
mov esi, dword [sym.imp.user32.dll_GetSystemMetrics]
push 0x32
call esi
mov edi, eax
push 0x31
call esi
push 0x8000
push edi
push eax
push 1
push 0x64
push ebx
call dword [sym.imp.user32.dll_LoadImageW]
mov dword [esp + 0x860], eax
lea eax, [esp + 0x834]
push eax
call dword [sym.imp.user32.dll_RegisterClassExW]
mov word [0x414008], ax
mov dword [esp + 0x30], 0x49
mov dword [esp + 0x34], sym._ChildWndProc_16
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ebx
push 0x64
push ebx
call dword [sym.imp.user32.dll_LoadIconW]
mov dword [esp + 0x44], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorW]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], str.WFS_Tree
lea esi, [esp + 0x30]
push esi
call dword [sym.imp.user32.dll_RegisterClassW]
push 0x65
push ebx
call dword [sym.imp.user32.dll_LoadAcceleratorsW]
mov dword [0x414004], eax
push 0x5a
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.gdi32.dll_GetDeviceCaps]
push 0x48
push eax
push 8
call dword [sym.imp.kernel32.dll_MulDiv]
neg eax
sub esp, 0x38
xorps xmm0, xmm0
movups xmmword [esp + 0x24], xmm0
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x34], 0x409328
call dword [sym.imp.gdi32.dll_CreateFontW]
mov dword [0x414034], eax
push edi
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
mov dword [section..data], ebx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x414854
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
push 0x414850
call dword [sym.imp.shell32.dll_SHGetDesktopFolder]
push str.FileNameW
call dword [sym.imp.user32.dll_RegisterClipboardFormatW]
mov dword [0x414858], eax
mov edi, dword [sym.imp.user32.dll_LoadStringW]
push 0x28
push 0x4148b0
push 0x4ba
push dword [section..data]
call edi
push 0x28
push 0x414900
push 0x4bb
push dword [section..data]
call edi
push 0x28
push 0x414950
push 0x4bc
push dword [section..data]
call edi
push 0x28
push 0x4149a0
push 0x4bd
push dword [section..data]
call edi
push 0x28
push 0x4149f0
push 0x4be
push dword [section..data]
call edi
push 0x28
push 0x414a40
push 0x4bf
push dword [section..data]
call edi
push 0x28
push 0x414a90
push 0x4c0
push dword [section..data]
call edi
push 0x28
push 0x414ae0
push 0x4c1
push dword [section..data]
call edi
push 0x28
push 0x414b30
push 0x4c2
push dword [section..data]
call edi
cmp dword [0x41400c], 0
je 0x4013aa
push 0
push 0
push 0
lea eax, [esp + 0x840]
push eax
call dword [sym.imp.user32.dll_GetMessageW]
test eax, eax
je 0x401365
mov edi, dword [sym.imp.user32.dll_GetMessageW]
mov ebx, dword [sym.imp.user32.dll_TranslateMDISysAccel]
jmp 0x401329
lea esi, [esp + 0x834]
push esi
call dword [sym.imp.user32.dll_TranslateMessage]
push esi
call dword [sym.imp.user32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x840]
push eax
call edi
test eax, eax
je 0x401365
mov eax, dword [0x414024]
test eax, eax
je 0x401341
lea ecx, [esp + 0x834]
push ecx
push eax
call ebx
test eax, eax
jne 0x401315
mov eax, dword [0x41400c]
test eax, eax
je 0x401300
lea ecx, [esp + 0x834]
push ecx
push dword [0x414004]
push eax
call dword [sym.imp.user32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401315
jmp 0x401300
mov eax, dword [0x414850]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x414854]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [0x414034]
call dword [sym.imp.gdi32.dll_DeleteObject]
push dword [0x414044]
call dword [sym.imp.comctl32.dll_ImageList_Destroy]
mov eax, dword [esp + 0x83c]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SoftwareWineWineFile
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [esp + 0x634], 4
lea edi, [esp + 0x634]
lea eax, [esp + 0x434]
lea ebx, [esp + 0x123c]
push edi
push eax
push ebx
push 0
push str.startX
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x401406
mov dword [esp + 0x434], 0x80000000
mov dword [esp + 0x634], 4
lea eax, [esp + 0x438]
push edi
push eax
push ebx
push 0
push str.startY
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x40143b
mov dword [esp + 0x438], 0x80000000
mov dword [esp + 0x634], 4
lea eax, [esp + 0x43c]
push edi
push eax
push ebx
push 0
push str.width
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x401470
mov dword [esp + 0x43c], 0x80000000
mov dword [esp + 0x634], 4
lea eax, [esp + 0x440]
push edi
push eax
push ebx
push 0
push str.height
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x4014a5
mov dword [esp + 0x440], 0x80000000
mov dword [esp + 0x634], 0x5c
push edi
push esi
push ebx
push 0
push str.logfont
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x4014da
push 0x11
call dword [sym.imp.gdi32.dll_GetStockObject]
push esi
push 0x5c
push eax
call dword [sym.imp.gdi32.dll_GetObjectW]
push dword [esp + 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push esi
call dword [sym.imp.gdi32.dll_CreateFontIndirectW]
mov dword [0x414034], eax
movups xmm0, xmmword [esp + 0x434]
movaps xmmword [esp + 0x10], xmm0
push 0x66
push dword [section..data]
call dword [sym.imp.user32.dll_LoadMenuW]
mov edi, eax
push eax
call dword [sym.imp.user32.dll_GetMenuItemCount]
add eax, 0xfffffffe
mov esi, dword [sym.imp.user32.dll_GetSubMenu]
push eax
push edi
call esi
mov ebx, eax
mov dword [0x414010], edi
push 2
push edi
call esi
mov dword [0x41401c], eax
push 3
push edi
call esi
mov dword [0x414020], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0xc000
mov esi, dword [section..data]
mov edi, dword [0x414010]
push 0x400
lea ebx, [esp + 0x838]
push ebx
push 0x4b0
push esi
call dword [sym.imp.user32.dll_LoadStringW]
movzx eax, word [0x414008]
sub esp, 0x30
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
movaps xmm0, xmmword [esp + 0x40]
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 0xcf0000
mov dword [esp], 0
mov esi, dword [sym.imp.user32.dll_CreateWindowExW]
call esi
mov dword [0x41400c], eax
mov ecx, dword [section..data]
sub esp, 0x30
lea edx, [esp + 0x58]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
movaps xmm0, xmmword [0x409660]
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], str.MDICLIENT
mov dword [esp], 0
call esi
mov dword [0x414024], eax
mov edi, dword [sym.imp.user32.dll_CheckMenuItem]
push 8
push 0x1fb
push dword [0x414020]
call edi
push 0
push 0x1ff
push dword [0x414020]
call edi
call sym._create_drive_bar
mov eax, dword [0x40965c]
mov dword [esp + 0x90], eax
movups xmm0, xmmword [0x40964c]
movups xmmword [esp + 0x80], xmm0
movups xmm0, xmmword [0x40963c]
movups xmmword [esp + 0x70], xmm0
movups xmm0, xmmword [0x40962c]
movups xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [0x40961c]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [0x40960c]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [0x4095fc]
movups xmmword [esp + 0x30], xmm0
mov eax, dword [section..data]
mov ecx, dword [0x41400c]
sub esp, 0x34
movaps xmm0, xmmword [0x409670]
movups xmmword [esp + 0x1c], xmm0
lea edx, [esp + 0x64]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [esp], ecx
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x14], 0x64
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x101
mov dword [esp + 4], 0x50000000
call sub.comctl32.dll_CreateToolbarEx
mov dword [0x41402c], eax
push 8
push 0x1fc
push dword [0x414020]
call edi
push 0x100
push dword [0x41400c]
push 0
push 0x50000000
call dword [sym.imp.comctl32.dll_CreateStatusWindowW]
mov dword [0x414028], eax
push 8
push 0x1f7
push dword [0x414020]
call edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40173c
cmp word [edi], 0
jne 0x40174f
lea edi, [esp + 0x1034]
push edi
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
push dword [ebp + 0x14]
push dword [0x41400c]
call dword [sym.imp.user32.dll_ShowWindow]
mov esi, dword [0x41400c]
mov eax, dword [0x414850]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x43c]
push edx
push edi
push 0
push esi
push eax
call dword [ecx + 0xc]
xor edx, edx
test eax, eax
js 0x40178c
mov edx, dword [esp + 0x30]
mov ebx, edi
mov ecx, edi
push esi
call sym._alloc_child_window
add esp, 4
mov edi, eax
mov dword [eax + 0x138], 3
movaps xmm0, xmmword [0x409680]
movups xmmword [eax + 0x14c], xmm0
mov ecx, eax
call sym._create_child_window
test eax, eax
je 0x40193e
mov eax, edi
add eax, 0x130
push eax
push dword [edi]
call dword [sym.imp.user32.dll_SetWindowPlacement]
mov eax, dword [section..data]
sub esp, 0x1c
movaps xmm0, xmmword [0x409690]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.comctl32.dll_ImageList_LoadImageW]
mov dword [0x414044], eax
mov dword [0x414848], 0
push dword [0x41400c]
call dword [sym.imp.user32.dll_UpdateWindow]
cmp dword [edi], 0
je 0x4012d4
cmp word [ebx], 0
je 0x4012d4
push 0x200
push 0
lea esi, [esp + 0x63c]
push esi
call sub.ucrtbase.dll_memset
add esp, 0xc
lea eax, [esp + 0x123c]
push eax
push esi
lea eax, [esp + 0x43c]
push eax
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.ucrtbase.dll__wsplitpath]
add esp, 0x14
cmp word [esp + 0x634], 0
je 0x4012d4
xor esi, esi
push 0
push 0
push 0x18b
push dword [edi + 0x98]
call dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0x10], eax
nop
movzx eax, word [esp + esi + 0x634]
mov word [esp + esi + 0x30], ax
add esi, 2
test ax, ax
jne 0x401890
lea edx, [esp + 0x30]
nop dword [eax]
mov eax, edx
cmp word [edx], 0
lea edx, [edx + 2]
jne 0x4018b0
xor eax, eax
nop dword [eax]
movzx ecx, word [esp + eax + 0x123c]
mov word [edx + eax - 2], cx
add eax, 2
test cx, cx
jne 0x4018c0
cmp dword [esp + 0x10], 0
jle 0x4012d4
xor esi, esi
mov dword [esp + 0xc], edi
nop word cs:[eax + eax]
push 0
push esi
push 0x199
push dword [edi + 0x98]
call dword [sym.imp.user32.dll_SendMessageW]
mov ebx, eax
add eax, 0x44
lea edi, [esp + 0x30]
push edi
push eax
mov eax, dword [sym.imp.kernel32.dll_lstrcmpW]
call eax
test eax, eax
je 0x401999
add ebx, 0x24c
push edi
push ebx
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
je 0x401999
add esi, 1
cmp dword [esp + 0x10], esi
mov edi, dword [esp + 0xc]
jne 0x4018f0
jmp 0x4012d4
mov eax, dword fs:[0x18]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [0x414850]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x414854]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [0x414034]
call dword [sym.imp.gdi32.dll_DeleteObject]
push dword [0x414044]
call dword [sym.imp.comctl32.dll_ImageList_Destroy]
mov eax, 1
jmp 0x4013a0
push 0
push esi
push 0x186
mov esi, dword [esp + 0x18]
push dword [esi + 0x98]
call dword [sym.imp.user32.dll_SendMessageW]
push dword [esi + 0x98]
call dword [sym.imp.user32.dll_SetFocus]
jmp 0x4012d4