Function at 0x4060e0
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp esi, 0x113
je 0x406158
ja 0x406170
cmp esi, 5
je 0x406708
lea esi, [esi]
jbe 0x406238
cmp esi, 6
je 0x406730
cmp esi, 0x111
jne 0x406284
mov dword [ebp - 0x11c], ecx
mov edx, ebx
mov eax, edi
call sym.__CmdWndProc.isra.0
mov ecx, dword [ebp - 0x11c]
test eax, eax
je 0x4067d0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
cmp esi, 0x211
je 0x4062a0
jbe 0x4061a8
cmp esi, 0x212
jne 0x406284
mov dword [esp], edi
mov ebx, 1
mov dword [esp + 4], ebx
call sym._SetupStatusBar
call sym._UpdateStatusBar
xor eax, eax
jmp 0x40615a
cmp esi, 0x117
je 0x4062f0
cmp esi, 0x11f
jne 0x406284
xor eax, eax
movzx esi, bx
mov word [ebp - 0xe0], ax
and ebx, 0x100000
jne 0x406798
mov eax, dword [0x416ec0]
lea edi, [ebp - 0xe0]
mov ecx, 0x64
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
test eax, eax
jne 0x4067f8
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x40b
mov dword [esp + 4], eax
mov eax, dword [0x416ec4]
mov dword [esp], eax
call sym._SendMessageW_16
xor eax, eax
sub esp, 0x10
jmp 0x40615a
cmp esi, 1
je 0x4065e8
cmp esi, 2
jne 0x406284
mov dword [esp], edi
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 2
mov dword [esp + 8], eax
mov eax, 0x4122aa
mov dword [esp + 4], eax
mov dword [ebp - 0x11c], ecx
call sym._WinHelpW_16
sub esp, 0x10
mov dword [esp], 0
call sym._PostQuitMessage_4
mov ecx, dword [ebp - 0x11c]
sub esp, 4
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._DefWindowProcW_16
sub esp, 0x10
jmp 0x40615a
lea eax, [ebp - 0xe0]
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, 1
mov edi, 0xffffffff
mov dword [esp + 8], eax
mov eax, 0x404
mov dword [esp + 4], eax
mov eax, dword [0x416ec4]
mov word [ebp - 0x108], si
mov dword [ebp - 0xe0], edi
mov dword [esp], eax
call sym._SendMessageW_16
lea eax, [ebp - 0x108]
sub esp, 0x10
mov dword [esp + 0xc], eax
jmp 0x40620b
shr ecx, 0x10
mov dword [ebp - 0x11c], ecx
jne 0x406158
mov eax, dword [0x416ecc]
mov ecx, 1
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._GetSubMenu_8
sub esp, 8
cmp ebx, eax
je 0x4068c5
mov eax, 3
mov dword [esp + 4], eax
mov eax, dword [0x416ecc]
mov dword [esp], eax
call sym._GetSubMenu_8
sub esp, 8
cmp ebx, eax
je 0x406775
mov eax, dword [0x416e20]
mov edi, dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x10c], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 9
mov dword [esp + 8], eax
mov eax, 0x110a
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._SendMessageW_16
sub esp, 0x10
mov esi, eax
mov dword [esp + 4], esi
lea eax, [ebp - 0x10c]
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._GetItemPath
mov edx, 0xffffffff
mov ecx, 0x100c
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x120], eax
mov eax, 2
mov dword [esp + 0xc], eax
mov eax, dword [0x416e20]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._SendMessageW_16
mov dword [ebp - 0x104], esi
mov esi, 0x58
mov dword [ebp - 0x108], esi
mov esi, 0x416140
mov dword [ebp - 0x124], eax
mov eax, 0x20
sub esp, 0x10
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x108]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x113e
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._SendMessageW_16
mov edi, dword [ebp - 0xe8]
mov eax, 0x30
mov dword [ebp - 0xe0], eax
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0xd8], edx
mov eax, 0x141
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xbc], esi
sub esp, 0x10
test edi, edi
je 0x4068a0
test byte [ebp - 0x100], 0x20
je 0x406459
mov ecx, 0x416100
mov dword [ebp - 0xbc], ecx
mov dword [esp], ebx
lea edi, [ebp - 0xe0]
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x8151
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
call sym._SetMenuItemInfoW_16
sub esp, 0x10
cmp dword [ebp - 0x124], 0xffffffff
mov dword [esp], ebx
sete al
movzx esi, al
mov eax, 0x8010
mov dword [esp + 8], esi
mov dword [esp + 4], eax
call sym._EnableMenuItem_12
mov eax, 0x8066
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._EnableMenuItem_12
mov eax, dword [0x416e20]
mov edx, dword [eax + 0xc]
sub esp, 0xc
test edx, edx
jne 0x406820
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x4068b0
cmp word [eax], 0
je 0x4068b0
mov dword [esp], ebx
mov edx, 0x800a
xor eax, eax
mov dword [esp + 4], edx
mov esi, 0x800b
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
xor ecx, ecx
sub esp, 0xc
mov dword [esp + 8], ecx
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._EnableMenuItem_12
xor eax, eax
sub esp, 0xc
mov edx, dword [eax + 0x411010]
mov dword [ebp + eax - 0xe0], edx
add eax, 4
cmp eax, 0x1c
jb 0x406518
lea esi, [esi]
lea esi, [ebp - 0xc4]
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x11c]
add edi, 4
mov dword [esp + 8], eax
mov eax, dword [edi - 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._EnableMenuItem_12
sub esp, 0xc
cmp edi, esi
jne 0x406540
mov edx, dword [ebp - 0x10c]
xor eax, eax
mov ecx, 0x8004
mov dword [esp + 4], ecx
mov esi, 0x8005
mov dword [esp], ebx
test edx, edx
sete al
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp], ebx
call sym._GetMenuItemCount_4
sub esp, 4
cmp eax, 2
mov dword [esp + 4], esi
setle al
xor edi, edi
mov dword [esp], ebx
movzx eax, al
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
mov edx, dword [ebp - 0x120]
mov eax, dword fs:[0x18]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
sub esp, 0xc
jmp 0x40615a
xor eax, eax
mov edx, 0x80000000
mov dword [esp + 0x2c], eax
mov eax, dword [0x416ec0]
mov ecx, 0x80000000
mov dword [esp + 0x20], edi
mov ebx, 0x80000000
mov esi, 0x80000000
mov dword [esp + 0x1c], edx
mov edi, 0x50000000
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, 0x412450
mov dword [esp + 8], eax
mov eax, 0x4128a0
mov dword [esp + 0x14], ebx
mov ebx, 0x8153
mov dword [esp + 0x10], esi
mov esi, 0x20
mov dword [esp + 0xc], edi
mov edi, 0x4160c0
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateWindowExW_48
mov eax, 0x20
sub esp, 0x30
mov dword [esp + 0xc], eax
mov eax, 0x416140
mov dword [esp + 8], eax
mov eax, 0x8152
mov dword [esp + 4], eax
mov eax, dword [0x416ec0]
mov dword [esp], eax
call sym._LoadStringW_16
mov eax, dword [0x416ec0]
mov edx, 0x20
mov ecx, 0x416100
sub esp, 0x10
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._LoadStringW_16
mov eax, 0x8154
sub esp, 0x10
mov dword [esp + 4], eax
mov eax, dword [0x416ec0]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp], eax
call sym._LoadStringW_16
mov eax, 0x40
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, 0x416040
mov dword [esp + 8], eax
mov eax, 0x8155
mov dword [esp + 4], eax
mov eax, dword [0x416ec0]
mov dword [esp], eax
call sym._LoadStringW_16
xor eax, eax
sub esp, 0x10
jmp 0x40615a
mov dword [esp], edi
lea ebx, [ebp - 0xe0]
mov dword [esp + 4], ebx
call sym._GetClientRect_8
mov eax, edi
mov edx, ebx
sub esp, 8
call sym._resize_frame_rect
xor eax, eax
jmp 0x40615a
test di, di
je 0x406158
mov eax, dword [0x416e20]
mov eax, dword [eax]
mov dword [esp], eax
call sym._SetFocus_4
xor eax, eax
sub esp, 4
jmp 0x40615a
mov dword [esp], ebx
mov eax, 0x400
mov dword [esp + 8], eax
mov eax, 2
mov dword [esp + 4], eax
call sym._DeleteMenu_12
sub esp, 0xc
mov dword [esp], ebx
call sym._GetMenuItemCount_4
sub esp, 4
cmp eax, 2
jg 0x406758
xor edx, edx
mov eax, ebx
call sym._add_favourite_key_items
jmp 0x406341
mov dword [esp], edi
mov dword [ebp - 0x11c], ecx
call sym._GetMenu_4
sub esp, 4
cmp esi, 2
jne 0x4061d8
mov ecx, dword [ebp - 0x11c]
cmp eax, ecx
mov eax, 5
cmovne esi, eax
jmp 0x4061d8
mov dword [esp + 0xc], ecx
mov eax, 0x111
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._DefWindowProcW_16
sub esp, 0x10
jmp 0x40615a
mov dword [esp], edi
mov edx, 0xa
mov dword [esp + 4], edx
call dword [sym.imp.ucrtbase.dll_wcschr]
test eax, eax
je 0x406207
mov word [eax], 0
jmp 0x406207
mov eax, dword [ebp - 0x124]
test eax, eax
cmovg esi, dword [ebp - 0x11c]
setle al
mov dword [ebp - 0x11c], esi
movzx esi, al
mov dword [esp], ebx
mov eax, dword [ebp - 0x11c]
mov ecx, 0x800a
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._EnableMenuItem_12
sub esp, 0xc
mov dword [esp + 8], esi
mov esi, 0x800b
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._EnableMenuItem_12
xor eax, eax
sub esp, 0xc
mov edx, dword [eax + 0x411010]
mov dword [ebp + eax - 0xe0], edx
add eax, 4
cmp eax, 0x1c
jb 0x406873
mov edx, dword [ebp - 0x120]
xor eax, eax
test edx, edx
sete al
mov dword [ebp - 0x11c], eax
jmp 0x406530
mov esi, 3
mov dword [ebp - 0xd4], esi
jmp 0x406459
mov eax, 1
mov esi, 1
mov dword [ebp - 0x11c], eax
jmp 0x40683b
mov eax, dword [0x416e20]
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4068f2
jmp 0x406907
mov dword [esp], ebx
mov eax, 0x400
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sym._DeleteMenu_12
sub esp, 0xc
mov dword [esp], ebx
call sym._GetMenuItemCount_4
sub esp, 4
cmp eax, 9
jg 0x4068d8
jmp 0x406341
mov dword [esp], ebx
call sym._GetMenuItemCount_4
sub esp, 4
cmp eax, 9
jg 0x406341
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xc00
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._InsertMenuW_20
sub esp, 0x14
mov dword [esp + 0x10], 0x416040
mov dword [esp + 0xc], 0x8066
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._InsertMenuW_20
sub esp, 0x14
mov dword [esp + 0x10], 0x4160c0
mov dword [esp + 0xc], 0x8010
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._InsertMenuW_20
sub esp, 0x14
jmp 0x406341