Function at 0x3004c580
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
add eax, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov ax, word [ecx + 0x24]
sub ax, word [ecx + 0x2c]
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], ax
movzx ecx, ax
pushfd
mov eax, dword fs:[0x18]
pop ebx
test eax, eax
jne 0x3004c5c4
or esi, 0xffffffff
or edi, 0xffffffff
jmp 0x3004c5cd
mov esi, dword [eax + 0x34]
mov edi, dword [eax + 0xbf4]
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 8
push dword [0x30272510]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword fs:[0x18]
mov edx, eax
test ecx, ecx
je 0x3004c5fe
mov dword [ecx + 0x34], esi
mov dword [ecx + 0xbf4], edi
test ebx, ebx
je 0x3004c5fe
push ebx
popfd
movzx eax, word [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], edx
push dword [eax + 0x28]
push edx
call fcn.301619b0
mov ecx, dword [ebp - 8]
add esp, 0xc
mov eax, dword [ecx]
mov ebx, dword [eax]
mov dword [ebp - 4], ebx
cmp ebx, ecx
je 0x3004c899
jmp 0x3004c630
mov ax, word [ebx + 0x24]
sub ax, word [ebx + 0x2c]
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
movzx ecx, ax
pushfd
mov eax, dword fs:[0x18]
pop dword [ebp - 0xc]
test eax, eax
jne 0x3004c659
or esi, 0xffffffff
or edi, 0xffffffff
jmp 0x3004c662
mov esi, dword [eax + 0x34]
mov edi, dword [eax + 0xbf4]
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 8
push dword [0x30272510]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword fs:[0x18]
mov edx, eax
test ecx, ecx
je 0x3004c696
mov eax, dword [ebp - 0xc]
mov dword [ecx + 0x34], esi
mov dword [ecx + 0xbf4], edi
test eax, eax
je 0x3004c696
push eax
popfd
movzx eax, word [ebp - 0x14]
push eax
mov dword [ebp - 0x10], edx
push dword [ebx + 0x28]
push edx
call fcn.301619b0
mov esi, dword [ebp - 0x10]
push 0x14
push str.c:windows_system32_
push esi
call fcn.3016b3a4
add esp, 0x18
test eax, eax
je 0x3004c6fa
push 0x14
push str.c:windows_syswow64_
push esi
call fcn.3016b3a4
add esp, 0xc
test eax, eax
je 0x3004c6fa
push 0x15
push str.c:windows_sysnative_
push esi
call fcn.3016b3a4
add esp, 0xc
test eax, eax
je 0x3004c6fa
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [0x302465fc]
test eax, eax
jne 0x3004c705
mov eax, dword [ebx + 0x18]
cmp eax, dword [0x3026d3e8]
jne 0x3004c75d
mov ecx, dword [ebp - 0x10]
pushfd
mov eax, dword fs:[0x18]
pop esi
test eax, eax
jne 0x3004c71c
or edi, 0xffffffff
or ebx, 0xffffffff
jmp 0x3004c725
mov edi, dword [eax + 0x34]
mov ebx, dword [eax + 0xbf4]
push ecx
push 0
push dword [0x30272510]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword fs:[0x18]
test eax, eax
je 0x3004c83e
mov dword [eax + 0xbf4], ebx
mov ebx, dword [ebp - 4]
mov dword [eax + 0x34], edi
test esi, esi
je 0x3004c841
push esi
popfd
jmp 0x3004c841
xor esi, esi
nop
mov edx, dword [esi + 0x302700e0]
test edx, edx
je 0x3004c79f
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x3004c770
sub eax, edi
sar eax, 1
push eax
push edx
push dword [ebx + 0x30]
call fcn.3016b3a4
add esp, 0xc
test eax, eax
je 0x3004c851
add esi, 4
cmp esi, 0x200
jb 0x3004c760
mov ecx, dword [ebp - 0x10]
pushfd
mov eax, dword fs:[0x18]
pop esi
test eax, eax
jne 0x3004c7ba
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
jmp 0x3004c7c6
mov edi, dword [eax + 0x34]
mov eax, dword [eax + 0xbf4]
mov dword [ebp - 4], eax
push ecx
push 0
push dword [0x30272510]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword fs:[0x18]
test eax, eax
je 0x3004c7f1
mov ecx, dword [ebp - 4]
mov dword [eax + 0x34], edi
mov dword [eax + 0xbf4], ecx
test esi, esi
je 0x3004c7f1
push esi
popfd
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx + 0x18]
add esi, edx
mov ecx, dword [0x3026d724]
cmp ecx, 0x64
jae 0x3004c841
xor eax, eax
test ecx, ecx
je 0x3004c827
lea ebx, [ebx]
cmp edx, dword [eax*8 + 0x3026d400]
jb 0x3004c822
cmp edx, dword [eax*8 + 0x3026d404]
jb 0x3004c841
inc eax
cmp eax, ecx
jb 0x3004c810
mov dword [ecx*8 + 0x3026d400], edx
mov dword [ecx*8 + 0x3026d404], esi
inc ecx
mov dword [0x3026d724], ecx
jmp 0x3004c841
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
mov dword [ebp - 4], ebx
cmp ebx, dword [ebp - 8]
jne 0x3004c630
jmp 0x3004c899
mov ecx, dword [ebp - 0x10]
pushfd
mov eax, dword fs:[0x18]
pop esi
test eax, eax
jne 0x3004c868
or edi, 0xffffffff
or ebx, 0xffffffff
jmp 0x3004c871
mov edi, dword [eax + 0x34]
mov ebx, dword [eax + 0xbf4]
push ecx
push 0
push dword [0x30272510]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword fs:[0x18]
test eax, eax
je 0x3004c899
mov dword [eax + 0x34], edi
mov dword [eax + 0xbf4], ebx
test esi, esi
je 0x3004c899
push esi
popfd
mov ecx, dword [ebp - 0x18]
pushfd
mov eax, dword fs:[0x18]
pop esi
test eax, eax
jne 0x3004c8b0
or edi, 0xffffffff
or ebx, 0xffffffff
jmp 0x3004c8b9
mov edi, dword [eax + 0x34]
mov ebx, dword [eax + 0xbf4]
push ecx
push 0
push dword [0x30272510]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword fs:[0x18]
test eax, eax
je 0x3004c8e1
mov dword [eax + 0x34], edi
mov dword [eax + 0xbf4], ebx
test esi, esi
je 0x3004c8e1
push esi
popfd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret