Function at 0x4874f0
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d1be8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50397c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x84], esi
call fcn.004867b0
add esp, 4
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x84], 1
call fcn.00486b80
xor ebx, ebx
xor ebp, ebp
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov byte [esp + 0x80], 2
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
mov byte [esp + 0x80], 3
cmp dword [esp + 0x38], esi
mov dword [esp + 0x1c], eax
jbe 0x48775b
mov ebx, dword [esp + 0x34]
add ebx, 4
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x18], ebx
jae 0x487891
lea ecx, [esp + 0x44]
push ecx
lea esi, [ebx + 4]
push esi
call fcn.00486b30
add esp, 8
test eax, eax
je 0x487735
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00486650
add esp, 8
test eax, eax
jne 0x487602
lea eax, [esp + 0x14]
push eax
mov eax, esi
call fcn.00487430
add esp, 4
lea edi, [ebp + 1]
lea eax, [esp + 0x24]
mov esi, ebp
call fcn.00489ce0
test al, al
je 0x48789b
cmp esi, dword [esp + 0x28]
jae 0x487891
mov edx, dword [esp + 0x24]
lea ecx, [esi + esi*2]
lea ebp, [edx + ecx*4]
mov ecx, dword [ebx]
mov esi, dword [ebp + 4]
lea edi, [ebp + 4]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x487682
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x487677
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x487677
call fcn.00402a60
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x48766c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x487682
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00406770
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 4]
mov esi, dword [ebp + 8]
lea edi, [ebp + 8]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x4876dd
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4876d2
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4876d2
call fcn.00402a60
mov dword [esp + 0x20], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4876c7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x20]
add ecx, 0x10
mov dword [edi], ecx
jmp 0x4876dd
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.00406770
mov eax, dword [esp + 0x14]
mov esi, dword [ebp]
add eax, 0xfffffff0
sub esi, 0x10
cmp eax, esi
je 0x487731
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x487722
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x487722
call fcn.00402a60
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x48771a
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp], ebx
jmp 0x487731
mov eax, dword [esp + 0x14]
mov ebx, dword [eax - 0xc]
push eax
mov eax, ebp
call fcn.00406770
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
add eax, 1
add ebx, 0x18
cmp eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
jb 0x4875c8
mov ebx, dword [esp + 0x24]
xor esi, esi
lea ecx, [esp + 0x54]
push ecx
call fcn.004864b0
xor edi, edi
cmp ebp, esi
mov byte [esp + 0x80], 4
jbe 0x48779d
cmp edi, ebp
lea esi, [ebx + 4]
jae 0x487891
mov eax, dword [esi + 4]
mov edx, dword [esi]
mov ecx, dword [esi - 4]
push eax
push edx
lea edx, [esp + 0x5c]
call fcn.00486570
add edi, 1
add esi, 0xc
cmp edi, ebp
jb 0x48777e
xor esi, esi
cmp dword [esp + 0x58], esi
jbe 0x4877b0
lea edx, [esp + 0x54]
push edx
call fcn.004893c0
add esp, 4
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4877d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x6c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4877f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esp + 0x54]
call fcn.004897e0
mov eax, dword [esp + 0x68]
cmp eax, esi
je 0x487812
push eax
call fcn.004aa09f
add esp, 4
mov byte [esp + 0x80], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48783a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, esi
je 0x487850
mov eax, ebp
mov ecx, ebx
call fcn.00489d70
push ebx
call fcn.004aa09f
add esp, 4
mov eax, dword [esp + 0x44]
cmp eax, esi
je 0x487861
push eax
call fcn.004aa09f
add esp, 4
mov edi, dword [esp + 0x34]
cmp edi, esi
je 0x48787d
mov eax, dword [esp + 0x38]
mov ecx, edi
call fcn.00489c80
push edi
call fcn.004aa09f
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402940
push 0x8007000e
call fcn.00402940
int3