Function at 0x40b790
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43f2b6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x45407c]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
mov eax, dword [0x45407c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], ecx
mov dword [ebx + 0xc], esi
mov byte [ebx + 0x20], 0
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov word [ebx + 0x10], 0
call fcn.0040b720
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea ecx, [eax + ecx - 0x12c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x2c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax + ecx - 0x12c]
mov dword [esp + 0x20], edx
xor ecx, ecx
mov eax, 0x4474fa
movzx edx, word [eax - 2]
mov edi, ecx
shl edi, 5
sub edi, ecx
add edx, edi
mov ecx, edx
shl ecx, 5
sub ecx, edx
movzx edx, word [eax]
add ecx, edx
mov edx, ecx
shl edx, 5
sub edx, ecx
movzx ecx, word [eax + 2]
add edx, ecx
mov ecx, edx
shl ecx, 5
sub ecx, edx
movzx edx, word [eax + 4]
add ecx, edx
mov edx, ecx
shl edx, 5
sub edx, ecx
movzx ecx, word [eax + 6]
add edx, ecx
mov ecx, edx
shl ecx, 5
sub ecx, edx
movzx edx, word [eax + 8]
add eax, 0xc
add ecx, edx
cmp eax, 0x447512
jl 0x40b840
lea eax, [esi + 0x264]
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ecx
call fcn.00405250
mov eax, dword [eax]
test eax, eax
jne 0x40b8b5
mov eax, str.USER_LICENSE
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0
push edi
push 0
push ecx
mov ecx, dword [esp + 0x20]
push 0x258
push 0x258
push edx
push ecx
push 0xc80000
push eax
push 0x448268
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x18
mov dword [ebx + 8], eax
call fcn.00427771
add esp, 4
test eax, eax
je 0x40b910
mov edx, dword [ebx + 8]
push edx
push edi
lea edi, [esi + 8]
mov esi, eax
call fcn.00426dc0
mov esi, dword [esp + 0x14]
jmp 0x40b912
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov ecx, dword [ebx + 0x14]
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x18
call fcn.00427771
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x48], 0
test edi, edi
je 0x40b9d1
lea edx, [esp + 0xc]
lea eax, [esi + 0x264]
mov dword [esp + 0xc], 0x3d3e5d8
call fcn.00405250
mov ecx, dword [eax]
test ecx, ecx
jne 0x40b96e
mov ecx, str.CLOSE
mov eax, dword [ebx + 8]
push 0
push 0
push 0
push eax
push 0x19
push 0x64
push 0x21c
push 0x1e5
push 0x50000000
push ecx
push str.Button
add esi, 8
push 0
mov dword [edi + 4], esi
mov dword [edi + 8], 0x64
mov dword [edi + 0xc], 0x19
mov dword [edi + 0x10], 0x1e5
mov dword [edi + 0x14], 0x21c
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
mov dword [edi], eax
mov esi, dword [esi]
push esi
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x14]
jmp 0x40b9d3
xor edi, edi
mov dword [esp + 0x48], 0xffffffff
push 0x18
mov dword [ebx + 0x18], edi
call fcn.00427771
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
mov dword [esp + 0x48], 1
test edi, edi
je 0x40ba7f
lea edx, [esp + 0xc]
lea eax, [esi + 0x264]
mov dword [esp + 0xc], 0x760d227a
call fcn.00405250
mov ecx, dword [eax]
test ecx, ecx
jne 0x40ba20
mov ecx, str.CANCEL
mov eax, dword [ebx + 8]
push 0
push 0
push 0
push eax
push 0x19
push 0x64
push 0x21c
push 0x177
push 0x50000000
push ecx
push str.Button
add esi, 8
push 0
mov dword [edi + 4], esi
mov dword [edi + 8], 0x64
mov dword [edi + 0xc], 0x19
mov dword [edi + 0x10], 0x177
mov dword [edi + 0x14], 0x21c
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
mov dword [edi], eax
mov ecx, dword [esi]
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40ba81
xor edi, edi
mov edx, dword [ebx + 8]
push ebx
push 0xffffffffffffffeb
push edx
mov dword [ebx + 0x1c], edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004276fb
mov esp, ebp
pop ebp
ret 8