Function at 0x4741e0
Capabilities:
Access peb ldr_data
Check os version
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45ca6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
mov dword [esp + 0x30], ecx
push edi
lea ecx, [esp + 0x10]
call 0x49a3b4
xor esi, esi
lea ecx, [esp + 0x70]
mov dword [esp + 0xac], esi
call 0x49ab6f
mov ebx, 0x462694
mov dword [esp + 0x70], ebx
call 0x49abcf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x80], eax
push esi
or edi, 0xffffffff
push esi
lea ecx, [esp + 0x88]
mov byte [esp + 0xb4], 1
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], edi
call fcn.00466e00
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x70]
push eax
push esi
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 2
call 0x49a6b8
test eax, eax
jne 0x4742bf
mov byte [esp + 0xac], al
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov dword [esp + 0x70], ebx
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4742b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0xac], edi
jmp 0x47485d
lea ecx, [esp + 0x84]
call fcn.0046cac0
push esi
push esi
push 2
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 3
call 0x49a14c
push 4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call 0x49a0c1
push 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call 0x49a0c1
lea ecx, [esp + 0x10]
call 0x49a19d
cmp edx, esi
jb 0x47438b
ja 0x474314
cmp eax, 2
jbe 0x47438b
mov ebx, 0x16
lea esp, [esp]
fld dword [esp + 0x28]
push 0
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x98]
fld dword [esp + 0x44]
fstp qword [esp]
call fcn.0046cb30
xor esi, esi
push esi
mov edi, ebx
push esi
push edi
lea ecx, [esp + 0x1c]
add ebx, 0x14
call 0x49a14c
push 4
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
call 0x49a0c1
push 4
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call 0x49a0c1
lea ecx, [esp + 0x10]
call 0x49a19d
cmp esi, edx
jb 0x474320
ja 0x474386
cmp edi, eax
jb 0x474320
mov ebx, 0x462694
lea ecx, [esp + 0x10]
call 0x49a352
call 0x49abcf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xb4], 4
call fcn.0046b850
mov esi, dword [esp + 0x2c]
mov eax, dword [esi - 4]
mov edi, dword [esi - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, edi
add esp, 8
or eax, ecx
jge 0x4743e8
push edi
lea ecx, [esp + 0x28]
call fcn.00466c20
mov esi, dword [esp + 0x24]
push esi
call fcn.00487b63
add esp, 4
push 0x46155c
mov dword [esi - 0xc], edi
push 0x461550
lea ecx, [esp + 0x2c]
mov word [esi + edi*2], 0
call fcn.004735d0
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x70]
push edx
push 0
push esi
lea ecx, [esp + 0x1c]
call 0x49a6b8
test eax, eax
je 0x4747e3
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call 0x49a14c
push 2
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call 0x49a0c1
push 2
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call 0x49a0c1
lea ecx, [esp + 0x10]
call 0x49a19d
test edx, edx
jb 0x4747da
ja 0x47447c
test eax, eax
jbe 0x4747da
xor ebx, ebx
mov edi, edi
mov edx, dword [esp + 0x2c]
xor esi, esi
push esi
lea edi, [ebx + edx + 6]
push esi
push edi
lea ecx, [esp + 0x1c]
call 0x49a14c
push 4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call 0x49a0c1
push 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call 0x49a0c1
push 4
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x18]
call 0x49a0c1
push 4
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call 0x49a0c1
push 4
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x18]
call 0x49a0c1
lea ecx, [esp + 0x10]
call 0x49a19d
cmp esi, edx
ja 0x4747d1
jb 0x474501
cmp edi, eax
jae 0x4747d1
mov ax, word [esp + 0xc]
add ebx, 0x32
cmp ax, 6
jbe 0x474517
add dword [esp + 0x2c], 0x642
test ax, ax
fld dword [esp + 0x38]
fmul qword [0x4612f0]
fmul qword [0x461348]
fstp dword [esp + 0x38]
jne 0x4745d0
cmp word [esp + 0x20], ax
je 0x47459a
fld dword [esp + 0x40]
fcomp dword [0x46154c]
fnstsw ax
test ah, 0x41
jne 0x47455d
fld dword [esp + 0x38]
fcomp dword [0x46154c]
fnstsw ax
test ah, 0x41
je 0x47459a
fld qword [0x4612f0]
mov ecx, dword [esp + 0x34]
fadd st(0), st(0)
sub esp, 8
add ecx, 0x64
fstp qword [esp]
push 0
fld dword [esp + 0x64]
push 0
sub esp, 0x18
fstp qword [esp + 0x10]
fld dword [esp + 0x50]
fstp qword [esp + 8]
fld dword [esp + 0x58]
fstp qword [esp]
call fcn.00476500
jmp 0x474781
fld dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
sub esp, 0x20
fstp qword [esp + 0x18]
add ecx, 0x80
fld dword [esp + 0x78]
fstp qword [esp + 0x10]
fld dword [esp + 0x48]
fstp qword [esp + 8]
fld dword [esp + 0x50]
fstp qword [esp]
call fcn.00477730
jmp 0x474781
cmp ax, 6
jbe 0x4745e3
mov edx, dword [esp + 0x2c]
lea eax, [ebx + edx - 0x640]
jmp 0x4745eb
mov eax, dword [esp + 0x2c]
lea eax, [ebx + eax - 0x18]
push 0
push 0
push eax
lea ecx, [esp + 0x1c]
call 0x49a14c
cmp word [esp + 0xc], 0
mov dword [esp + 0x5c], 0
jbe 0x474781
lea ecx, [ecx]
push 2
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call 0x49a0c1
push 2
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x18]
call 0x49a0c1
mov esi, dword [esp + 0x88]
xor edx, edx
xor eax, eax
test esi, esi
mov ecx, esi
je 0x474781
movzx edi, word [esp + 0x3c]
inc edi
jmp 0x474650
cmp edx, edi
jge 0x474660
mov eax, ecx
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
inc edx
test ecx, ecx
jne 0x474650
test eax, eax
je 0x474781
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x54], edx
mov edx, dword [eax + 0x14]
mov eax, esi
movzx esi, word [esp + 0x44]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
xor edx, edx
xor ecx, ecx
inc esi
cmp edx, esi
jge 0x4746a0
mov ecx, eax
mov eax, dword [eax]
mov ecx, dword [ecx + 8]
inc edx
test eax, eax
jne 0x474690
test ecx, ecx
je 0x474781
cmp word [esp + 0x20], 0
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
je 0x474736
fld dword [esp + 0x40]
fcomp dword [0x46154c]
fnstsw ax
test ah, 0x41
jne 0x4746ee
fld dword [esp + 0x38]
fcomp dword [0x46154c]
fnstsw ax
test ah, 0x41
je 0x474736
mov edx, dword [esp + 0x4c]
fld dword [esp + 0x28]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x64]
push eax
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push eax
sub esp, 0x10
fstp qword [esp + 8]
add ecx, 0x64
fld dword [esp + 0x60]
fstp qword [esp]
call fcn.00476a60
jmp 0x47476d
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push eax
push ecx
mov ecx, dword [esp + 0x50]
push edx
add ecx, 0x80
call fcn.00477730
mov eax, dword [esp + 0x5c]
inc eax
cmp ax, word [esp + 0xc]
mov dword [esp + 0x5c], eax
jb 0x474610
mov eax, dword [esp + 0x2c]
xor esi, esi
push esi
lea edi, [ebx + eax]
push esi
push edi
lea ecx, [esp + 0x1c]
call 0x49a14c
push 2
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
call 0x49a0c1
push 2
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
call 0x49a0c1
lea ecx, [esp + 0x10]
call 0x49a19d
cmp esi, edx
jb 0x474480
ja 0x4747d1
cmp edi, eax
jb 0x474480
mov esi, dword [esp + 0x24]
mov ebx, 0x462694
lea ecx, [esp + 0x10]
call 0x49a352
lea ecx, [esp + 0x84]
call fcn.004764d0
lea eax, [esi - 0x10]
mov byte [esp + 0xac], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474811
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x84]
mov byte [esp + 0xac], 2
call fcn.0046cae0
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov byte [esp + 0xac], 0
mov dword [esp + 0x70], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474852
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0xac], 0xffffffff
lea ecx, [esp + 0x10]
call 0x49a3f3
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4