Function at 0x4025f0
Capabilities:
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x426190
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42d414]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
cmp dword [esp + 0xa4], 0
mov ebx, ecx
mov edi, edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], edi
jne 0x402646
push edi
call fcn.00401e50
jmp 0x402cdb
lea eax, [ebx + 0x8c]
push eax
mov dword [esp + 0x3c], vtable.AutoLock.0
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebp, [edi + 0x18]
push ebp
lea eax, [esp + 0x1c]
lea esi, [ebx + 0x24]
push eax
mov dword [esp + 0xa0], 0
call fcn.0040a860
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x2c], ecx
je 0x40268e
cmp eax, esi
je 0x402697
call fcn.0041a633
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x2c]
je 0x402c9f
test eax, eax
jne 0x4026b2
call fcn.0041a633
mov eax, dword [esp + 0x18]
cmp esi, dword [eax + 4]
jne 0x4026bc
call fcn.0041a633
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 8]
sub eax, 1
je 0x4029fa
sub eax, 1
je 0x40290d
sub eax, 1
jne 0x402c9f
cmp dword [esp + 0xa4], 5
jb 0x402c9f
lea esi, [edi + 0x44]
xor edi, edi
call fcn.00409c80
cmp byte [eax], 5
jne 0x402c9b
cmp byte [eax + 1], 0
jne 0x402c9b
mov al, byte [eax + 3]
cmp al, 1
jne 0x402769
call fcn.00409c80
mov ecx, dword [ebx + 0x38]
mov dx, word [eax + 8]
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
lea esi, [esp + 0x18]
mov word [esp + 0x70], 2
mov dword [esp + 0x74], ecx
mov word [esp + 0x72], dx
call fcn.0040a530
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
add eax, 0xc
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
call fcn.0040a530
mov eax, dword [eax + 8]
mov dword [eax + 0x28], 0x10
jmp 0x4027fe
cmp al, 4
jne 0x402c9b
xor edi, edi
call fcn.00409c80
mov edx, dword [ebx + 0x40]
mov ax, word [eax + 0x14]
xor ecx, ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x88], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [esp + 0x78], ecx
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x7c], edx
mov edx, dword [ebx + 0x48]
lea esi, [esp + 0x18]
mov word [esp + 0x70], 0x17
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov word [esp + 0x72], ax
call fcn.0040a530
mov edi, dword [eax + 8]
add edi, 0xc
mov ecx, 7
lea esi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x18]
call fcn.0040a530
mov ecx, dword [eax + 8]
mov dword [ecx + 0x28], 0x1c
lea esi, [esp + 0x18]
call fcn.0040a530
mov edx, dword [eax + 8]
mov dword [edx + 8], 4
call fcn.0040a530
mov eax, dword [eax + 8]
add eax, 0x64
cmp dword [eax + 8], 0
je 0x402c9b
lea esi, [esp + 0x18]
call fcn.0040a530
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x68]
mov ecx, dword [ecx]
add eax, 0x64
lea esi, [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
call fcn.00409da0
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
add eax, 0x20
test ecx, ecx
jne 0x40285d
mov dword [esp + 0x34], ecx
jmp 0x402866
mov eax, dword [eax + 8]
sub eax, ecx
mov dword [esp + 0x34], eax
lea esi, [esp + 0x28]
call fcn.00409da0
mov esi, dword [eax]
mov eax, dword [esi + 0x24]
add esi, 0x20
test eax, eax
je 0x402882
mov edx, dword [esi + 8]
sub edx, eax
jne 0x402887
call fcn.0041a633
mov edi, dword [esi + 4]
lea esi, [esp + 0x28]
call fcn.00409da0
mov dword [esp + 0x24], eax
call fcn.00409da0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov ecx, dword [edx + 0x1c]
mov edx, dword [esp + 0x34]
push ecx
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp]
push edi
push ecx
mov ecx, dword [eax]
push edx
push ebx
call fcn.004019e0
call fcn.00409da0
mov esi, dword [eax]
test esi, esi
je 0x4028cc
call fcn.00401250
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x78]
push edx
lea esi, [esp + 0x24]
call fcn.0040a530
mov ebx, dword [eax + 8]
add ebx, 0x64
call fcn.00409d40
call fcn.0040a530
mov eax, dword [eax + 8]
mov ebx, dword [esp + 0x30]
add eax, 0x64
cmp dword [eax + 8], 0
jne 0x402826
jmp 0x402c9b
cmp dword [esp + 0xa4], 2
jb 0x402c9f
lea esi, [edi + 0x44]
xor edi, edi
call fcn.00409c80
cmp byte [eax], 1
jne 0x402c9b
cmp byte [eax + 1], 0
jne 0x402c9b
lea esi, [esp + 0x18]
call fcn.0040a530
mov ecx, dword [ebp + 4]
mov eax, dword [eax + 8]
cmp word [eax + 0x72], 2
mov edx, dword [ebp]
push ecx
push edx
jne 0x4029b0
xor eax, eax
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], ax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x7c], 5
mov byte [esp + 0x7d], 3
mov byte [esp + 0x7e], 0
mov byte [esp + 0x7f], 1
call fcn.0040a530
mov ecx, dword [eax + 8]
mov eax, 0xa
mov edx, dword [ecx]
push edx
push ebx
call fcn.00402190
test al, al
je 0x402c9b
lea esi, [esp + 0x18]
call fcn.0040a530
mov eax, dword [eax + 8]
mov dword [eax + 8], 3
jmp 0x402c9b
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov word [esp + 0x8c], ax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x7c], 5
mov byte [esp + 0x7d], 3
mov byte [esp + 0x7f], 4
call fcn.0040a530
mov ecx, dword [eax + 8]
mov eax, 0x16
jmp 0x402987
cmp dword [esp + 0xa4], 2
jb 0x402c9f
lea esi, [edi + 0x44]
xor edi, edi
call fcn.00409c80
cmp byte [eax], 5
jne 0x402c9b
cmp byte [eax + 1], 2
jne 0x402bde
lea esi, [esp + 0x18]
call fcn.0040a530
mov eax, dword [eax + 8]
add eax, 0x2c
cmp dword [eax + 0x14], edi
je 0x402be0
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov byte [esp + 0x98], 1
lea ebx, [esp + 0x17]
lea esi, [esp + 0x70]
mov byte [esp + 0x17], 1
call fcn.00409ca0
lea esi, [esp + 0x18]
call fcn.0040a530
mov eax, dword [eax + 8]
add eax, 0x2c
mov eax, dword [eax + 0x14]
lea ebx, [esp + 0x17]
lea esi, [esp + 0x70]
mov byte [esp + 0x17], al
call fcn.00409ca0
lea esi, [esp + 0x18]
call fcn.0040a530
mov edi, dword [eax + 8]
add edi, 0x2c
lea ebx, [esp + 0x48]
call fcn.00409bb0
mov dword [esp + 0x24], eax
call fcn.0040a530
mov edi, dword [eax + 8]
add edi, 0x2c
lea ebx, [esp + 0x60]
call fcn.00409b60
lea esi, [esp + 0x40]
lea edi, [esp + 0x70]
mov ebx, eax
call fcn.00409c60
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push edx
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
mov ecx, edi
push ecx
call fcn.0040ed30
lea esi, [esp + 0x18]
call fcn.0040a530
mov eax, dword [eax + 8]
add eax, 0x48
mov eax, dword [eax + 0x14]
lea ebx, [esp + 0x17]
mov esi, edi
mov byte [esp + 0x17], al
call fcn.00409ca0
lea esi, [esp + 0x18]
call fcn.0040a530
mov eax, dword [eax + 8]
add eax, 0x48
cmp dword [eax + 0x14], 0
je 0x402b78
call fcn.0040a530
mov edi, dword [eax + 8]
add edi, 0x48
lea ebx, [esp + 0x58]
call fcn.00409bb0
mov dword [esp + 0x24], eax
call fcn.0040a530
mov edi, dword [eax + 8]
add edi, 0x48
lea ebx, [esp + 0x68]
call fcn.00409b60
lea esi, [esp + 0x50]
lea edi, [esp + 0x70]
mov ebx, eax
call fcn.00409c60
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push edx
mov edx, dword [ebx + 4]
push ecx
mov ecx, dword [ebx]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
mov ecx, edi
push ecx
call fcn.0040ed30
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x402b84
xor ebx, ebx
jmp 0x402b8a
mov ebx, dword [esp + 0x78]
sub ebx, eax
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
push edx
push eax
xor edi, edi
lea esi, [esp + 0x78]
call fcn.00409c80
push eax
lea esi, [esp + 0x24]
call fcn.0040a530
mov ecx, dword [eax + 8]
mov edx, dword [ecx]
mov eax, dword [esp + 0x3c]
push edx
push eax
mov eax, ebx
call fcn.00402190
test al, al
je 0x402bcc
call fcn.0040a530
mov ecx, dword [eax + 8]
mov dword [ecx + 8], 2
lea esi, [esp + 0x70]
call fcn.00409c30
mov ebx, dword [esp + 0x30]
jmp 0x402c9b
xor edi, edi
lea esi, [esp + 0x18]
call fcn.0040a530
mov edx, dword [eax + 8]
cmp word [edx + 0x72], 2
mov ecx, dword [ebp]
jne 0x402c34
mov eax, dword [ebp + 4]
push eax
push ecx
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x7c], 5
mov byte [esp + 0x7d], 3
mov byte [esp + 0x7e], 0
mov byte [esp + 0x7f], 1
mov dword [esp + 0x80], edi
mov word [esp + 0x84], di
call fcn.0040a530
mov eax, dword [eax + 8]
mov ecx, dword [eax]
mov eax, 0xa
jmp 0x402c7d
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov word [esp + 0x84], ax
mov eax, dword [ebp + 4]
push eax
push ecx
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0x7c], 5
mov byte [esp + 0x7d], 3
mov byte [esp + 0x7f], 4
call fcn.0040a530
mov eax, dword [eax + 8]
mov ecx, dword [eax]
mov eax, 0x16
push ecx
push ebx
call fcn.00402190
test al, al
je 0x402c9b
lea esi, [esp + 0x18]
call fcn.0040a530
mov edx, dword [eax + 8]
mov dword [edx + 8], 3
mov edi, dword [esp + 0x20]
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
push ecx
mov eax, edi
mov edi, dword [esp + 0xa4]
push edx
call fcn.004020d0
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00419af5
add esp, 0x88
ret 8