Function at 0x492080
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5263ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x20]
cmp eax, 6
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
mov ebp, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x30], eax
jb 0x492431
jmp 0x4920c0
mov eax, dword [ebp + 0x1003c]
push eax
mov ecx, esi
call fcn.004b4120
mov ebx, eax
cmp ebx, dword [esp + 0x30]
mov dword [esp + 0x18], ebx
jg 0x492431
test ebx, ebx
jle 0x492431
mov ax, word [esi]
cmp ax, 0x64
jne 0x492244
cmp ebx, 0xffff
mov edx, ebx
jle 0x492102
mov edx, 0xffff
mov eax, 6
xor ecx, ecx
cmp edx, eax
jle 0x49211b
lea ecx, [ecx]
movzx edi, byte [eax + esi]
add ecx, edi
inc eax
cmp eax, edx
jl 0x492110
movzx eax, byte [esi + 2]
movzx edx, byte [esi + 3]
add edx, eax
movzx eax, byte [esi + 1]
add edx, eax
movzx eax, byte [esi]
add edx, eax
sub ecx, edx
mov eax, ecx
shr eax, 0x10
add eax, ecx
cmp word [esi + 4], ax
jne 0x49247a
cmp ebx, 0x4000
jg 0x49247a
push 0x57e40c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x57e408]
test edi, edi
je 0x49216f
mov ecx, dword [edi + 4]
mov dword [0x57e408], ecx
jmp 0x492186
push 0x30
call fcn.004f5012
mov edi, eax
mov eax, dword [0x57e404]
add esp, 4
inc eax
mov dword [0x57e404], eax
push 0x57e40c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x24], 0
je 0x4921ac
mov ecx, edi
call fcn.0041f210
mov edi, eax
jmp 0x4921ae
xor edi, edi
mov edx, dword [ebp + 0x1c]
add ebx, 0xfffffffa
push ebx
push edx
add esi, 6
push esi
mov ecx, edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x20], edi
call fcn.0041f4e0
test al, al
je 0x49244a
mov al, byte [ebp + 0x10064]
test al, al
je 0x4921f7
movzx eax, byte [edi + 0x2c]
push eax
lea ecx, [ebp + 0x10040]
call fcn.0041fa50
test al, al
je 0x492472
mov ecx, dword [ebp + 0xc]
mov dword [edi + 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [edi + 0xc], edx
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x10], eax
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0x14], ecx
mov edi, dword [ebp + 0x10028]
mov eax, dword [edi + 4]
lea esi, [ebp + 0x10024]
lea edx, [esp + 0x14]
push edx
push eax
push edi
mov ecx, esi
call fcn.004928f0
push 1
mov ecx, esi
mov ebx, eax
call fcn.00422b20
mov dword [edi + 4], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], ebx
jmp 0x49240a
cmp ax, 0x65
jne 0x4923af
cmp ebx, 0xffff
mov edx, ebx
jle 0x49225d
mov edx, 0xffff
mov eax, 6
xor ecx, ecx
cmp edx, eax
jle 0x492273
movzx edi, byte [eax + esi]
add ecx, edi
inc eax
cmp eax, edx
jl 0x492268
movzx eax, byte [esi + 2]
movzx edx, byte [esi + 3]
add edx, eax
movzx eax, byte [esi + 1]
add edx, eax
movzx eax, byte [esi]
add edx, eax
sub ecx, edx
mov eax, ecx
shr eax, 0x10
add eax, ecx
cmp word [esi + 4], ax
jne 0x49247a
cmp ebx, 0x4000
jg 0x49247a
push 0x57e40c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x57e408]
test edi, edi
je 0x4922c7
mov ecx, dword [edi + 4]
mov dword [0x57e408], ecx
jmp 0x4922de
push 0x30
call fcn.004f5012
mov edi, eax
mov eax, dword [0x57e404]
add esp, 4
inc eax
mov dword [0x57e404], eax
push 0x57e40c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x24], 1
je 0x492304
mov ecx, edi
call fcn.0041f210
mov edi, eax
jmp 0x492306
xor edi, edi
mov eax, dword [ebp + 0x1003c]
add ebx, 0xfffffffa
test eax, eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x14], edi
je 0x492333
mov ecx, eax
mov edx, dword [ecx]
push ebx
lea eax, [esi + 6]
push eax
call dword [edx + 0x10]
test al, al
je 0x49246e
mov ecx, dword [ebp + 0x1c]
push ebx
push ecx
add esi, 6
push esi
mov ecx, edi
call fcn.0041f4e0
test al, al
je 0x49246e
mov al, byte [ebp + 0x10064]
test al, al
je 0x49236d
movzx edx, byte [edi + 0x2c]
push edx
lea ecx, [ebp + 0x10040]
call fcn.0041fa50
test al, al
je 0x49244e
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0xc], ecx
mov edx, dword [ebp + 0x14]
mov dword [edi + 0x10], edx
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x14], eax
mov edi, dword [ebp + 0x10028]
mov edx, dword [edi + 4]
lea esi, [ebp + 0x10024]
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
mov ecx, esi
call fcn.004928f0
push 1
mov ecx, esi
mov ebx, eax
call fcn.00422b20
jmp 0x492402
cmp ax, 0xa
jne 0x49247a
cmp ebx, 0x1a
jne 0x49247a
push ebx
call fcn.004dbe89
mov edi, eax
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp + 0x10034]
mov edx, dword [edi + 4]
add esp, 4
lea esi, [ebp + 0x10030]
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.004928f0
push 1
mov ecx, esi
mov ebx, eax
call fcn.00491fe0
mov dword [edi + 4], ebx
mov eax, dword [ebx + 4]
mov dword [eax], ebx
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
add esi, ecx
sub eax, ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
add esi, ecx
cmp eax, 6
mov dword [esp + 0x30], eax
jae 0x4920c0
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
test edi, edi
je 0x492456
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 8
test edi, edi
je 0x49247a
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8