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

Disassembly:
push 0xffffffffffffffff
push 0x48040e
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 0x426bf1
jmp 0x426880
mov eax, dword [ebp + 0x403c]
push eax
mov ecx, esi
call fcn.00429a30
mov ebx, eax
cmp ebx, dword [esp + 0x30]
mov dword [esp + 0x18], ebx
jg 0x426bf1
test ebx, ebx
jle 0x426bf1
mov ax, word [esi]
cmp ax, 0x64
jne 0x426a04
cmp ebx, 0xffff
mov edx, ebx
jle 0x4268c2
mov edx, 0xffff
mov eax, 6
xor ecx, ecx
cmp edx, eax
jle 0x4268db
lea ecx, [ecx]
movzx edi, byte [eax + esi]
add ecx, edi
inc eax
cmp eax, edx
jl 0x4268d0
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 0x426c3a
cmp ebx, 0x4000
jg 0x426c3a
push 0x4a99a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4a99a4]
test edi, edi
je 0x42692f
mov ecx, dword [edi + 4]
mov dword [0x4a99a4], ecx
jmp 0x426946
push 0x30
call fcn.004509e6
mov edi, eax
mov eax, dword [0x4a99a0]
add esp, 4
inc eax
mov dword [0x4a99a0], eax
push 0x4a99a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x24], 0
je 0x42696c
mov ecx, edi
call fcn.0040b470
mov edi, eax
jmp 0x42696e
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.0040b620
test al, al
je 0x426c0a
mov al, byte [ebp + 0x4064]
test al, al
je 0x4269b7
movzx eax, byte [edi + 0x2c]
push eax
lea ecx, [ebp + 0x4040]
call fcn.0040bb90
test al, al
je 0x426c32
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 + 0x4028]
mov eax, dword [edi + 4]
lea esi, [ebp + 0x4024]
lea edx, [esp + 0x14]
push edx
push eax
push edi
mov ecx, esi
call fcn.0042a570
push 1
mov ecx, esi
mov ebx, eax
call fcn.0040cab0
mov dword [edi + 4], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], ebx
jmp 0x426bca
cmp ax, 0x65
jne 0x426b6f
cmp ebx, 0xffff
mov edx, ebx
jle 0x426a1d
mov edx, 0xffff
mov eax, 6
xor ecx, ecx
cmp edx, eax
jle 0x426a33
movzx edi, byte [eax + esi]
add ecx, edi
inc eax
cmp eax, edx
jl 0x426a28
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 0x426c3a
cmp ebx, 0x4000
jg 0x426c3a
push 0x4a99a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4a99a4]
test edi, edi
je 0x426a87
mov ecx, dword [edi + 4]
mov dword [0x4a99a4], ecx
jmp 0x426a9e
push 0x30
call fcn.004509e6
mov edi, eax
mov eax, dword [0x4a99a0]
add esp, 4
inc eax
mov dword [0x4a99a0], eax
push 0x4a99a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x24], 1
je 0x426ac4
mov ecx, edi
call fcn.0040b470
mov edi, eax
jmp 0x426ac6
xor edi, edi
mov eax, dword [ebp + 0x403c]
add ebx, 0xfffffffa
test eax, eax
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x14], edi
je 0x426af3
mov ecx, eax
mov edx, dword [ecx]
push ebx
lea eax, [esi + 6]
push eax
call dword [edx + 0x10]
test al, al
je 0x426c2e
mov ecx, dword [ebp + 0x1c]
push ebx
push ecx
add esi, 6
push esi
mov ecx, edi
call fcn.0040b620
test al, al
je 0x426c2e
mov al, byte [ebp + 0x4064]
test al, al
je 0x426b2d
movzx edx, byte [edi + 0x2c]
push edx
lea ecx, [ebp + 0x4040]
call fcn.0040bb90
test al, al
je 0x426c0e
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 + 0x4028]
mov edx, dword [edi + 4]
lea esi, [ebp + 0x4024]
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
mov ecx, esi
call fcn.0042a570
push 1
mov ecx, esi
mov ebx, eax
call fcn.0040cab0
jmp 0x426bc2
cmp ax, 0xa
jne 0x426c3a
cmp ebx, 0x1a
jne 0x426c3a
push ebx
call fcn.0043add5
mov edi, eax
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp + 0x4034]
mov edx, dword [edi + 4]
add esp, 4
lea esi, [ebp + 0x4030]
lea ecx, [esp + 0x14]
push ecx
push edx
push edi
mov ecx, esi
mov dword [esp + 0x20], eax
call fcn.0042a570
push 1
mov ecx, esi
mov ebx, eax
call fcn.004267a0
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 0x426880
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 0x426c16
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 0x426c3a
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