Function at 0x46ed60
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x499108
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x46f08c
mov ecx, dword [eax + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x80]
push edi
mov edi, dword [esp + 0x88]
push 1
push ecx
add eax, 0xec
push eax
push edi
push ebp
call fcn.00448470
mov edx, edi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 8]
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x30], eax
sub eax, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x134]
mov edx, ecx
add esp, 0x14
sub edx, dword [esi + 0x130]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x84], eax
jne 0x46edf4
mov dword [esp + 0x88], 0
jmp 0x46ee37
mov eax, dword [esi + 0x130]
mov edx, dword [esi + 0x12c]
sub edx, eax
mov dword [esp + 0x88], edx
fild dword [esp + 0x88]
sub ecx, eax
mov dword [esp + 0x88], ecx
fimul dword [esp + 0x84]
fidiv dword [esp + 0x88]
call fcn.0049212c
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x20]
mov ecx, dword [edx + 0x1b0]
sub ecx, 0
je 0x46f013
dec ecx
je 0x46ef20
dec ecx
jne 0x46f089
mov eax, dword [esp + 0x88]
test eax, eax
je 0x46f089
mov eax, edx
mov ebx, dword [eax + 0x190]
mov edx, dword [eax + 0x188]
mov eax, dword [esp + 0x88]
sub ebx, edx
cdq
idiv ebx
mov dword [esp + 0x84], ebx
test eax, eax
jle 0x46f089
xor ecx, ecx
mov dword [esp + 0x88], eax
jmp 0x46eea1
mov ebx, dword [esp + 0x84]
mov eax, dword [edi]
mov edx, dword [edi + 0xc]
push edx
add ebx, ecx
lea edx, [ebx + eax]
push edx
mov edx, dword [edi + 4]
push edx
add ecx, eax
push ecx
lea eax, [esp + 0x64]
push eax
call fcn.00446630
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi + 0x20]
push eax
add ecx, 0x154
mov dword [esp + 0x48], edx
push ecx
lea edx, [esp + 0x40]
push edx
push ebp
call fcn.00449170
mov eax, dword [esp + 0xac]
add esp, 0x24
dec eax
mov ecx, ebx
mov dword [esp + 0x88], eax
jne 0x46ee9a
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 8
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x46f089
sub ebx, dword [esp + 0x18]
push ebx
push eax
push 0
lea eax, [esp + 0x70]
push 0
push eax
call fcn.00446630
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x2c]
add esp, 0x14
sub eax, edx
push eax
sub ecx, dword [esp + 0x18]
push ecx
push ebp
lea ecx, [esp + 0x50]
call fcn.0045c860
mov eax, dword [esi + 0x20]
mov edx, dword [eax + 0x14]
mov ecx, dword [esp + 0x48]
push 1
push edx
add eax, 0x154
push eax
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x90], 0
call fcn.00448470
add esp, 0x14
lea ecx, [esp + 0x44]
call fcn.0045c8f0
mov edx, dword [esi + 0x10c]
mov ecx, dword [esp + 0x20]
push 0
push edx
mov edx, dword [esp + 0x90]
push 0
push 0
mov edi, eax
mov eax, dword [esp + 0x28]
push edi
sub ecx, eax
push ecx
push edx
push eax
mov eax, dword [esp + 0x34]
push eax
push ebp
call fcn.004477f0
add esp, 0x28
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [esp + 0x44]
mov dword [esp + 0x7c], 0xffffffff
call fcn.0045c8b0
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 8
mov eax, dword [esp + 0x88]
test eax, eax
je 0x46f089
mov ecx, dword [esp + 0x14]
add edx, 0x154
add ecx, eax
push edx
mov dword [esp + 0x20], ecx
call fcn.00447640
add esp, 4
test eax, eax
lea eax, [esp + 0x14]
je 0x46f06e
mov esi, dword [esi + 0x20]
mov edx, dword [esi + 0x14]
push 1
push edx
add esi, 0x154
push esi
push eax
push ebp
call fcn.00448470
add esp, 0x14
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 8
mov ecx, dword [esi + 0x10c]
mov edx, dword [esi + 0x20]
push ecx
add edx, 0x154
push edx
push eax
push ebp
call fcn.00449170
add esp, 0x10
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 8