Function at 0x401050
Capabilities:
Get number of processors
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 4
push 0x3000
push 0x258
push 0
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x4057c4], eax
test eax, eax
jne 0x4010a4
mov eax, 0x22
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0040186a
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push eax
push 0x67
push edi
call ebx
push 0x64
push 0x4056f8
push 0x68
push edi
call ebx
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [esp + 0x40], 0x30
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 0x4013b0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 6
mov dword [esp + 0x64], 0x6d
mov dword [esp + 0x68], 0x4056f8
call esi
mov dword [esp + 0x64], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [0x405960], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0xc
push 0x405630
push 0x6d
push edi
call ebx
push 0xc
push 0x405898
push 0x6a
push edi
call ebx
mov eax, dword [0x405960]
cmp word [eax + 0x20], 0
je 0x40117f
nop
add eax, 2
cmp word [eax + 0x20], 0
jne 0x401170
mov dword [0x405960], eax
push 0
push edi
push 0
push 0
push 0x384
push 0x384
push 0x32
push 0x32
push 0xcf0000
push dword [0x4057c4]
mov dword [0x405628], edi
push 0x4056f8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40562c], eax
test eax, eax
jne 0x4011cf
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0040186a
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x405960]
xorps xmm0, xmm0
mov dword [esp + 0xc], eax
movlpd qword [esp + 0x10], xmm0
movzx eax, word [eax]
test ax, ax
je 0x401255
mov ebx, dword [esp + 0x14]
mov ecx, 2
mov edi, dword [esp + 0x10]
movzx esi, ax
mov eax, esi
imul eax, esi
shld ebx, edi, 1
add edi, edi
mul ecx
add eax, edi
mov ecx, eax
adc edx, ebx
add eax, eax
shrd ecx, edx, 0x1f
shr edx, 0x1f
or eax, edx
mul esi
mov ebx, eax
mov eax, ecx
mul esi
mov edi, eax
add ebx, edx
mov eax, dword [esp + 0xc]
add eax, 2
mov dword [esp + 0xc], eax
movzx ecx, word [eax]
mov eax, ecx
test cx, cx
mov ecx, 2
jne 0x4011f6
mov dword [esp + 0xc], ebx
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x18]
jmp 0x401259
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0x32
mov dword [0x405894], eax
lea eax, [esp + 0x3c]
push 0
push eax
mov dword [0x405890], ecx
call sub.VCRUNTIME140.dll_memset
push dword [0x40562c]
lea eax, [esp + 0x48]
push 0x403178
push 0x32
push eax
call fcn.00401010
movzx eax, byte [0x405890]
add esp, 0x1c
add eax, 0xffffff10
mov dword [0x405964], eax
push 0
je 0x4012bd
push str.hWndAddress
lea eax, [esp + 0x40]
push eax
push dword [0x40562c]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 4
push dword [0x40562c]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push dword [0x40562c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x64
push 0x4057c8
push 0x69
push edi
call ebx
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [esp + 0x10], eax
call fcn.00401620
push 0x64
push 0x4051d0
push 0x69
push edi
call ebx
push 1
push dword [0x40562c]
call esi
push 0x80000
push 0x5dc
push dword [0x40562c]
call dword [sym.imp.USER32.dll_AnimateWindow]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 3
push dword [0x40562c]
call esi
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x1c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x401396
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop dword [eax]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401385
lea eax, [esp + 0x1c]
push eax
call edi
lea eax, [esp + 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call esi
test eax, eax
jne 0x401360
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040186a
mov esp, ebp
pop ebp
ret 0x10