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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x1488
call fcn.0040b248
sub esp, eax
mov eax, dword [esp + eax]
mov dword [ebp - 0x143c], edx
mov dword [ebp - 0x1444], eax
mov ebx, dword [0x4153ac]
test ebx, ebx
je 0x4072e0
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0xe24]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareWineWineFile
mov dword [esp], 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
lea eax, [ebp - 0x1224]
mov dword [ebp - 0x1224], 4
sub esp, 0x14
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc1c]
mov dword [ebp - 0x1440], eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1024]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xe24]
mov dword [esp + 8], 0
mov dword [esp + 4], str.startX
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
je 0x40736e
mov dword [ebp - 0xc1c], 0x80000000
lea eax, [ebp - 0x1224]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc18]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1024]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xe24]
mov dword [esp + 4], str.startY
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
je 0x4073bb
mov dword [ebp - 0xc18], 0x80000000
lea eax, [ebp - 0x1224]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc14]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1024]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xe24]
mov dword [esp + 4], str.width
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
je 0x407408
mov dword [ebp - 0xc14], 0x80000000
lea eax, [ebp - 0x1224]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1024]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xe24]
mov dword [esp + 4], str.height
mov dword [esp], eax
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
je 0x407455
mov dword [ebp - 0xc10], 0x80000000
lea eax, [ebp - 0x1224]
lea edi, [ebp - 0x818]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1024]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xe24]
mov dword [esp + 0x10], edi
mov dword [esp + 4], str.logfont
mov dword [esp], eax
mov dword [ebp - 0x1224], 0x5c
call sub.advapi32.dll_RegQueryValueExW
sub esp, 0x18
test eax, eax
jne 0x407b00
mov eax, dword [ebp - 0xe24]
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov dword [esp], edi
call sub.gdi32.dll_CreateFontIndirectW
mov ecx, dword [ebp - 0xc18]
mov esi, dword [ebp - 0xc14]
mov dword [0x4153d4], eax
mov eax, dword [ebp - 0xc1c]
sub esp, 4
mov dword [esp + 4], 0x66
mov dword [ebp - 0x1450], eax
mov eax, dword [0x4153a0]
mov dword [ebp - 0x144c], ecx
mov ecx, dword [ebp - 0xc10]
mov dword [esp], eax
mov dword [ebp - 0x1458], ecx
mov dword [ebp - 0x1448], esi
call sub.user32.dll_LoadMenuW
sub esp, 8
mov esi, eax
mov dword [esp], eax
call sub.user32.dll_GetMenuItemCount
sub esp, 4
sub eax, 2
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.user32.dll_GetSubMenu
mov dword [0x4153b0], esi
sub esp, 8
mov dword [ebp - 0x1454], eax
mov dword [esp], esi
mov dword [esp + 4], 2
call sub.user32.dll_GetSubMenu
sub esp, 8
mov dword [0x4153bc], eax
mov dword [esp], esi
mov dword [esp + 4], 3
call sub.user32.dll_GetSubMenu
mov esi, dword [0x4153a0]
mov edx, dword [ebp - 0x1454]
mov dword [ebp - 0x1430], 0xc000
sub esp, 8
mov dword [0x4153c0], eax
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 0xc], 0x400
mov dword [esp + 4], 0x4b0
mov dword [ebp - 0x1434], edx
mov edx, dword [0x4153b0]
mov dword [ebp - 0x1454], edx
call sub.user32.dll_LoadStringW
mov ecx, dword [ebp - 0x1458]
mov eax, dword [ebp - 0x1450]
sub esp, 0x10
mov edx, dword [ebp - 0x1454]
mov dword [esp + 0x28], esi
mov esi, dword [ebp - 0x1448]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x144c]
mov dword [esp + 0x10], eax
movzx eax, word [0x4153a8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], esi
mov esi, section..data
mov dword [esp + 8], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.user32.dll_CreateWindowExW
lea edx, [ebp - 0x1434]
sub esp, 0x30
mov dword [0x4153ac], eax
mov dword [esp + 0x2c], edx
mov edx, dword [0x4153a0]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], 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], 0x52b00000
mov dword [esp + 8], 0
mov dword [esp + 4], str.MDICLIENT
mov dword [esp], 0
call sub.user32.dll_CreateWindowExW
mov dword [0x4153c4], eax
mov eax, dword [0x4153c0]
sub esp, 0x30
mov dword [esp + 8], 8
mov dword [esp + 4], 0x1fb
mov dword [esp], eax
call sub.user32.dll_CheckMenuItem
mov eax, dword [0x4153c0]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1ff
mov dword [esp], eax
call sub.user32.dll_CheckMenuItem
sub esp, 0xc
call fcn.00401eb0
lea eax, [ebp - 0xc1c]
mov edi, dword [ebp - 0x1440]
mov ecx, 0x19
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1440], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x4153a0]
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x10], eax
mov eax, dword [0x4153ac]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], 5
mov dword [esp + 0x14], 0x64
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0x101
mov dword [esp + 4], 0x50000000
mov dword [esp], eax
call sub.comctl32.dll_CreateToolbarEx
mov dword [0x4153cc], eax
mov eax, dword [0x4153c0]
sub esp, 0x34
mov dword [esp + 8], 8
mov dword [esp + 4], 0x1fc
mov dword [esp], eax
call sub.user32.dll_CheckMenuItem
mov eax, dword [0x4153ac]
sub esp, 0xc
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x50000000
call sub.comctl32.dll_CreateStatusWindowW
mov dword [0x4153c8], eax
mov eax, dword [0x4153c0]
sub esp, 0x10
mov dword [esp + 8], 8
mov dword [esp + 4], 0x1f7
mov dword [esp], eax
call sub.user32.dll_CheckMenuItem
mov eax, dword [ebp - 0x143c]
sub esp, 0xc
test eax, eax
je 0x407ad0
cmp word [eax], 0
je 0x407ad0
mov eax, dword [ebp - 0x1444]
mov dword [esp + 4], eax
mov eax, dword [0x4153ac]
mov dword [esp], eax
call sub.user32.dll_ShowWindow
mov eax, dword [0x415bf0]
mov edi, dword [ebp - 0x1440]
lea ecx, [ebp - 0x1024]
sub esp, 8
mov esi, dword [0x4153ac]
mov edx, dword [eax]
mov dword [esp + 0x10], edi
mov edi, dword [ebp - 0x143c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0xc]
mov ecx, esi
sub esp, 0x1c
test eax, eax
cmovns ebx, dword [ebp - 0x1024]
mov eax, edi
mov edx, ebx
call fcn.00405c30
mov dword [eax + 0x138], 3
mov ebx, eax
mov dword [eax + 0x14c], 0
mov dword [eax + 0x150], 0
mov dword [eax + 0x154], 0x140
mov dword [eax + 0x158], 0x118
call fcn.00401980
test eax, eax
je 0x407b30
lea eax, [ebx + 0x130]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call sub.user32.dll_SetWindowPlacement
mov eax, dword [0x4153a0]
sub esp, 8
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0xff00
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x66
mov dword [esp], eax
call sub.comctl32.dll_ImageList_LoadImageW
mov dword [0x415be8], 0
mov dword [0x4153e4], eax
mov eax, dword [0x4153ac]
sub esp, 0x1c
mov dword [esp], eax
call sub.user32.dll_UpdateWindow
mov edx, dword [ebx]
sub esp, 4
test edx, edx
je 0x4072cc
mov eax, dword [ebp - 0x143c]
cmp word [eax], 0
je 0x4072cc
xor eax, eax
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x1224]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1024]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x1224]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1424]
mov dword [esp + 8], eax
lea eax, [ebp - 0x142c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x143c]
mov dword [esp], eax
call sub.ucrtbase.dll__wsplitpath
cmp word [ebp - 0x1224], 0
je 0x4072cc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x18b
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call sub.user32.dll_SendMessageW
mov ecx, dword [ebp - 0x1440]
mov dword [ebp - 0x143c], eax
sub esp, 0x10
xor eax, eax
lea esi, [esi]
movzx edx, word [ebp + eax - 0x1224]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x4079c0
cmp word [ebp - 0xc1c], 0
mov edx, dword [ebp - 0x1440]
je 0x4079f1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4079e8
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebp + eax - 0x1024]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4079f8
mov eax, dword [ebp - 0x143c]
test eax, eax
jle 0x4072cc
xor edi, edi
jmp 0x407a4e
mov eax, dword [ebp - 0x1440]
lea edx, [esi + 0x24c]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.kernel32.dll_lstrcmpW
sub esp, 8
test eax, eax
je 0x407a91
add edi, 1
cmp dword [ebp - 0x143c], edi
je 0x4072cc
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x199
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call sub.user32.dll_SendMessageW
mov esi, eax
mov eax, dword [ebp - 0x1440]
sub esp, 0x10
mov dword [esp + 4], eax
lea eax, [esi + 0x44]
mov dword [esp], eax
call sub.kernel32.dll_lstrcmpW
sub esp, 8
test eax, eax
jne 0x407a20
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0x186
mov eax, dword [ebx + 0x98]
mov dword [esp], eax
call sub.user32.dll_SendMessageW
mov eax, dword [ebx + 0x98]
sub esp, 0x10
mov dword [esp], eax
call sub.user32.dll_SetFocus
sub esp, 4
jmp 0x4072cc
lea eax, [ebp - 0xe24]
mov dword [esp], 0x104
mov dword [esp + 4], eax
call sub.kernel32.dll_GetCurrentDirectoryW
lea eax, [ebp - 0xe24]
mov dword [ebp - 0x143c], eax
sub esp, 8
jmp 0x4077e8
mov dword [esp], 0x11
call sub.gdi32.dll_GetStockObject
sub esp, 4
mov dword [esp + 8], edi
mov dword [esp + 4], 0x5c
mov dword [esp], eax
call sub.gdi32.dll_GetObjectW
sub esp, 0xc
jmp 0x4074a6
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call sub.kernel32.dll_HeapFree
xor eax, eax
sub esp, 0xc
jmp 0x4072d1