Function at 0x461230
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5cf678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edi
call fcn.00435140
mov dword [esp + 0x58], 0
mov dword [edi], 0x5e5db4
call fcn.00401020
mov eax, dword [eax + 4]
lea esi, [edi + 8]
push 1
push 0x6093ec
mov ecx, esi
mov dword [edi + 4], eax
call fcn.005585e0
lea ebp, [edi + 0xc]
push 1
push 0x60b380
mov ecx, ebp
call fcn.005585e0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
call fcn.00558070
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [edi + 4]
call fcn.00412ba0
lea ecx, [esp + 0x18]
call fcn.005581a0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push ebp
call fcn.00558070
mov ecx, dword [edi + 4]
lea edx, [esp + 0x1c]
push edx
call fcn.00412c20
lea ecx, [esp + 0x18]
call fcn.005581a0
push 3
push 0x60b574
lea ecx, [edi + 0x64]
call fcn.00558600
lea ecx, [esp + 0x10]
call fcn.00558060
push 1
push 0x60aa24
lea ecx, [esp + 0x18]
mov byte [esp + 0x60], 1
call fcn.00558600
mov eax, dword [edi + 0x78]
lea esi, [edi + 0x70]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push 1
push 0x619c10
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push 4
push 0x60aa18
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push 1
push 0x60aa14
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x60b060
call fcn.00558100
lea ecx, [edi + 0x84]
call fcn.00558390
mov ebx, 2
lea esi, [edi + 0x68]
push ebx
push 0x60aa08
mov ecx, esi
call fcn.00558600
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
call fcn.00558070
mov ecx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
call fcn.00412ca0
lea ecx, [esp + 0x18]
call fcn.005581a0
push ebx
push 0x60aa08
lea ecx, [edi + 0x6c]
call fcn.00558600
push ebx
push 0x60acc0
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 0x5c]
lea esi, [edi + 0x54]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push 5
push 0x60b058
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push 5
push 0x60b288
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ebx
push 0x60a9e4
lea ecx, [edi + 0x40]
call fcn.00558600
push ebx
push 0x60ab64
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [edi + 0x4c]
lea esi, [edi + 0x44]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
push 1
push eax
call fcn.00402a90
push 5
push 0x60b280
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x60b278
call fcn.00558100
lea ecx, [edi + 0x14]
call fcn.00558390
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x60b270
call fcn.00558100
lea ecx, [edi + 0x10]
call fcn.00558390
push ebx
push 0x60aa08
lea ecx, [edi + 0x28]
call fcn.00558600
xor edx, edx
lea eax, [esp + 0x28]
mov dword [esp + 0x33], edx
push 0xd
mov dword [esp + 0x3b], edx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0x62
mov byte [esp + 0x31], 0x63
mov byte [esp + 0x32], 0x64
mov byte [esp + 0x33], 0x81
mov byte [esp + 0x34], 0x82
mov byte [esp + 0x35], 0x83
mov byte [esp + 0x36], 0x84
mov byte [esp + 0x37], 0x85
mov byte [esp + 0x38], 0x86
mov byte [esp + 0x39], 0x87
mov byte [esp + 0x3a], 0x88
mov byte [esp + 0x43], dl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], 5
call fcn.005585e0
mov eax, dword [edi + 0x20]
lea esi, [edi + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
lea ecx, [esp + 0x14]
call fcn.00558060
mov byte [esp + 0x58], bl
push 4
push 0x60b268
lea ecx, [esp + 0x1c]
call fcn.00558600
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ebx
push 0x60b264
lea ecx, [esp + 0x1c]
call fcn.00558600
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push 3
push 0x60b260
lea ecx, [esp + 0x1c]
call fcn.00558600
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push 3
push 0x60b25c
lea ecx, [esp + 0x1c]
call fcn.00558600
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push 3
push 0x60b258
lea ecx, [esp + 0x1c]
call fcn.00558600
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push 4
push 0x60b250
lea ecx, [esp + 0x1c]
call fcn.00558600
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ebx
push 0x60b24c
lea ecx, [esp + 0x1c]
call fcn.00558600
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ebx
push 0x60b248
lea ecx, [esp + 0x1c]
call fcn.00558600
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push 3
push 0x60b244
lea ecx, [esp + 0x1c]
call fcn.00558600
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ebx
push 0x60b240
lea ecx, [esp + 0x1c]
call fcn.00558600
mov eax, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ebx
push 0x60b23c
lea ecx, [esp + 0x1c]
call fcn.00558600
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ebx
push 0x60a9e4
lea ecx, [edi + 0x3c]
call fcn.00558600
xor eax, eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x41], eax
push 7
mov dword [esp + 0x49], eax
push ecx
mov dword [esp + 0x51], eax
lea ecx, [esp + 0x18]
mov word [esp + 0x55], ax
mov byte [esp + 0x44], 0x81
mov byte [esp + 0x45], 0x82
mov byte [esp + 0x46], 0x83
mov byte [esp + 0x47], 0x84
mov byte [esp + 0x48], 0x85
mov byte [esp + 0x57], al
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], 5
call fcn.005585e0
mov eax, dword [edi + 0x34]
lea esi, [edi + 0x2c]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
push 1
push eax
call fcn.00402a90
push ebx
push 0x60b238
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ebx
push 0x60b234
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ebx
push 0x60b230
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402a90
push ebx
push 0x60b22c
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, eax
mov ebp, eax
sar edx, 2
cmp edx, 1
jae 0x46187a
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4617de
sub eax, ecx
sar eax, 2
cmp eax, 1
mov dword [esp + 0x18], eax
ja 0x4617e6
mov dword [esp + 0x18], 1
mov ecx, esi
call fcn.0056e680
add eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
jns 0x4617f9
xor eax, eax
shl eax, 2
push eax
call fcn.005bcf2f
mov ecx, dword [esi + 4]
add esp, 4
mov dword [esp + 0x1c], eax
push eax
push ebp
push ecx
mov ecx, esi
call fcn.00402d20
lea edx, [esp + 0x10]
mov ecx, esi
push edx
push 1
push eax
mov dword [esp + 0x24], eax
call fcn.00402d60
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 8]
add eax, 4
push eax
push ecx
push ebp
mov ecx, esi
call fcn.00402d20
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.00402cf0
mov eax, dword [esi + 4]
push eax
call fcn.005bc500
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 4
lea edx, [ebp + ecx*4]
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.0056e680
lea eax, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov dword [esi + 8], eax
jmp 0x4618f7
mov ecx, eax
sub ecx, ebp
sar ecx, 2
cmp ecx, 1
jae 0x4618c6
lea edx, [ebp + 4]
mov ecx, esi
push edx
push eax
push ebp
call fcn.00402d20
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, ebp
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00402d60
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push eax
push ebp
call fcn.00402d90
add esp, 0xc
jmp 0x4618f3
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.00402d20
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push ebp
call fcn.00402dd0
lea ecx, [esp + 0x1c]
lea edx, [ebp + 4]
push ecx
push edx
push ebp
call fcn.00402d90
add esp, 0x18
add dword [esi + 8], 4
push ebx
push 0x60b228
lea ecx, [esp + 0x18]
call fcn.00558600
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov ebx, eax
sar ecx, 2
cmp ecx, 1
jae 0x4619cc
mov edx, dword [esi + 4]
test edx, edx
je 0x46192f
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x461934
mov ecx, 1
test edx, edx
jne 0x46193c
xor eax, eax
jmp 0x461941
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x1c], eax
jge 0x46194d
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.005bcf2f
add esp, 4
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebp
push ebx
push eax
call fcn.00402d20
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], eax
push ecx
push 1
push eax
mov ecx, esi
call fcn.00402d60
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 8]
add edx, 4
mov ecx, esi
push edx
push eax
push ebx
call fcn.00402d20
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00402cf0
mov eax, dword [esi + 4]
push eax
call fcn.005bc500
mov eax, dword [esp + 0x20]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.0056e680
lea edx, [ebp + eax*4 + 4]
mov dword [esi + 4], ebp
mov dword [esi + 8], edx
jmp 0x461a49
mov ecx, eax
sub ecx, ebx
sar ecx, 2
cmp ecx, 1
jae 0x461a18
lea edx, [ebx + 4]
mov ecx, esi
push edx
push eax
push ebx
call fcn.00402d20
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, ebx
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00402d60
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push eax
push ebx
call fcn.00402d90
add esp, 0xc
jmp 0x461a45
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.00402d20
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push ebx
call fcn.00402dd0
lea ecx, [esp + 0x1c]
lea edx, [ebx + 4]
push ecx
push edx
push ebx
call fcn.00402d90
add esp, 0x18
add dword [esi + 8], 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.005581a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 0
call fcn.005581a0
mov ecx, dword [esp + 0x50]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret