Function at 0x403b30
Capabilities:
Check for peb ntglobalflag flag
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47cc01
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4a9188]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [esp + 0x34]
mov eax, edi
call fcn.00405c20
mov ecx, eax
mov dword [esp + 0x88], 0
call fcn.004096a0
mov esi, eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], esi
mov dword [esp + 0x88], 0xffffffff
call dword [0x4837bc]
push 0x25
mov ecx, esi
call dword [0x483748]
movzx ebx, ax
mov al, byte [edi + 0x68]
mov byte [esp + 0x2c], al
mov ecx, dword [esp + 0x2c]
push ecx
push esi
mov esi, dword [ebp + 8]
push ebx
mov ecx, esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x1d], 1
mov dword [esp + 0x30], 0xffffffff
call fcn.00405fd0
add esp, 0xc
push eax
call fcn.00405e30
xor eax, eax
push eax
push ebx
mov ecx, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x1a], al
mov dword [esp + 0x1c], eax
call dword [0x4836e4]
mov edx, dword [0x4837a0]
mov ebx, eax
cmp ebx, dword [edx]
je 0x403ef7
jmp 0x403c13
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x403c20
lea eax, [edi + 0x4c]
jmp 0x403c56
mov edx, dword [edi + 0x10]
sub edx, dword [edi + 0xc]
lea ecx, [eax - 1]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jb 0x403c4c
call dword [0x483988]
mov ecx, dword [esp + 0x2c]
mov edx, dword [edi + 0xc]
imul ecx, ecx, 0x64
lea eax, [ecx + edx + 0x20]
lea ecx, [ebx + 1]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esi + 0x14]
jbe 0x403c70
call dword [0x483988]
mov ecx, dword [esp + 0x1c]
cmp dword [esi + 0x18], 8
jb 0x403c7f
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], edx
jmp 0x403c86
lea eax, [esi + 4]
mov dword [esp + 0x2c], eax
cmp ebx, dword [esi + 0x14]
jbe 0x403c95
call dword [0x483988]
mov ecx, dword [esp + 0x1c]
cmp dword [esi + 0x18], 8
jb 0x403ca0
mov eax, dword [esi + 4]
jmp 0x403ca3
lea eax, [esi + 4]
mov edx, dword [esp + 0x2c]
mov dx, word [edx + ecx*2]
cmp dx, word [eax + ebx*2]
mov eax, dword [esp + 0x18]
jne 0x403cd0
push ecx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call fcn.004061c0
add esp, 0xc
add ebx, 2
mov dword [esp + 0x18], ebx
jmp 0x403ece
cmp ebx, eax
je 0x403cea
mov edx, dword [esp + 0x28]
push ebx
push eax
push edx
call fcn.004061c0
mov esi, dword [ebp + 8]
add esp, 0xc
mov dword [esp + 0x18], ebx
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call dword [0x4836d4]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov dword [esp + 0x4c], ebx
cmp esi, 0xfffffffc
je 0x403d45
test esi, esi
jne 0x403d0f
call dword [0x483988]
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x403d1c
mov ecx, dword [eax]
jmp 0x403d1e
mov ecx, eax
mov edx, dword [esp + 0x1c]
lea ebx, [ebx + edx*2]
mov edx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
cmp ebx, ecx
ja 0x403d3b
cmp dword [esi + 0x18], 8
jb 0x403d37
mov eax, dword [eax]
cmp ebx, eax
jae 0x403d41
call dword [0x483988]
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
lea eax, [ebx + edx*2]
mov dword [esp + 0x44], eax
mov al, byte [edi + 0x68]
mov byte [esp + 0x38], al
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x14]
add ecx, edx
cmp esi, ecx
jb 0x403d80
call dword [0x483988]
mov edx, dword [esp + 0x38]
imul esi, esi, 0x64
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0xc]
mov ebx, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x34]
push ecx
add eax, esi
push edx
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
call dword [0x4836d8]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00406240
add esp, 0x18
lea edx, [esp + 0x60]
push edx
mov ecx, ebx
mov byte [esp + 0x17], al
call dword [0x4836d4]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], eax
cmp ecx, 0xfffffffc
je 0x403de6
test ecx, ecx
je 0x403ddc
cmp ecx, dword [eax]
je 0x403de6
call dword [0x483988]
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
sub ebx, dword [eax + 4]
sar ebx, 1
cmp byte [esp + 0x13], 0
je 0x403ece
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x14], eax
jb 0x403e21
call dword [0x483988]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + esi + 0x60]
add eax, esi
test cl, 1
je 0x403e5d
mov edx, dword [eax + 0x48]
test dl, 0x40
je 0x403e3f
and ecx, 0xfffffffe
mov dword [eax + 0x60], ecx
jmp 0x403e5d
and ecx, 0xfffffffd
and edx, 0xffffff3f
mov dword [eax + 0x60], ecx
mov ecx, 0x30
or edx, 0x100
mov word [eax + 0x44], cx
mov dword [eax + 0x48], edx
mov ecx, dword [eax + 0x60]
test cl, 2
je 0x403e71
test byte [eax + 0x48], 0x20
je 0x403e71
and ecx, 0xfffffffd
mov dword [eax + 0x60], ecx
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x403e94
call dword [0x483988]
mov ecx, dword [edi + 0xc]
mov esi, dword [esi + ecx]
cmp esi, 0xfffffffd
je 0x403ece
cmp esi, 0xffffffff
jne 0x403eab
mov byte [esp + 0x11], 0
jmp 0x403ec1
cmp esi, 0xfffffffe
jne 0x403eb7
mov byte [esp + 0x12], 1
jmp 0x403ec1
cmp esi, dword [esp + 0x24]
jle 0x403ec1
mov dword [esp + 0x24], esi
mov eax, 1
add dword [esp + 0x20], eax
add dword [esp + 0x14], eax
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 8]
push ebx
push edx
call dword [0x4836e4]
mov ebx, eax
mov eax, dword [0x4837a0]
cmp ebx, dword [eax]
jne 0x403c10
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x403efc
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x4c]
jmp 0x403f2d
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
lea esi, [eax - 1]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x403f20
call dword [0x483988]
mov edx, dword [edi + 0xc]
imul esi, esi, 0x64
lea ecx, [esi + edx + 0x20]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call fcn.004061c0
mov esi, dword [esp + 0x30]
add esp, 0xc
cmp byte [esp + 0x11], 0
jne 0x403ffc
xor ebx, ebx
cmp esi, ebx
jl 0x403f88
test byte [edi + 0x68], 1
je 0x403f88
lea ecx, [esp + 0x68]
call dword [0x483994]
mov dword [esp + 0x68], 0x48639c
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x88], 1
call fcn.004023e0
xor esi, esi
cmp dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
jle 0x403ff7
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp esi, ecx
jb 0x403fb5
call dword [0x483988]
mov eax, dword [edi + 0xc]
cmp dword [ebx + eax], 0xffffffff
jne 0x403fed
mov ecx, dword [edi + 0x10]
sub ecx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x403fde
call dword [0x483988]
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xc]
mov dword [ebx + ecx], eax
inc eax
mov dword [esp + 0x28], eax
inc esi
add ebx, 0x64
cmp esi, dword [esp + 0x20]
jl 0x403f94
mov esi, dword [esp + 0x28]
dec esi
mov ecx, dword [esp + 0x30]
push 0x20
call dword [0x483748]
sub esp, 0x64
movzx eax, ax
mov edx, esp
mov dword [esp + 0xa0], esp
push eax
push edx
call fcn.00404a60
mov ecx, dword [esp + 0x84]
mov edx, edi
call fcn.00404950
cmp byte [esp + 0x12], 0
je 0x404037
or dword [edi + 0x3c], 4
inc esi
cmp byte [esp + 0x11], 0
mov dword [edi + 0x44], esi
je 0x404048
or dword [edi + 0x3c], 1
jmp 0x40404c
and dword [edi + 0x3c], 0xfffffffe
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4