Function at 0x417090
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a6030
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
mov eax, dword [0x4ed3dc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov esi, ecx
lea ecx, [esp + 0x18]
call fcn.0049c860
xor ebx, ebx
push 0x64
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], ebx
call fcn.00496000
push 0x4f25b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.004962d0
test al, al
jne 0x417120
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00496190
lea ecx, [esp + 0x18]
call fcn.0049c800
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
cmp ebp, ebx
je 0x4170f3
cmp esi, ebx
jge 0x417143
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x417130
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, ebx
jne 0x417175
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.00496190
lea ecx, [esp + 0x18]
call fcn.0049c800
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push ecx
push edx
push ebp
mov eax, esi
mov ecx, edi
call fcn.00416ab0
add esp, 0xc
neg al
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
sbb eax, eax
neg eax
mov esi, eax
call fcn.00496190
lea ecx, [esp + 0x18]
call fcn.0049c800
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8

Function at 0x417aa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a5148
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ed3dc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor edi, edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], fcn.0046ef1b
mov dword [esi + 0x2c], fcn.0046ec38
mov dword [esi + 0x30], fcn.0046f0cc
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 0x34], edi
mov dword [esp + 0x1c], edi
mov dword [esi], vtable.t_layoutAligned.0
call fcn.00418980
mov dword [esi + 0x5c], eax
mov byte [eax + 0x45], 1
mov eax, dword [esi + 0x5c]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x5c]
mov dword [eax], eax
mov eax, dword [esi + 0x5c]
mov dword [eax + 8], eax
mov dword [esi + 0x60], edi
xor eax, eax
xor ecx, ecx
xor edx, edx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x48], ecx
xor ebx, ebx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 4], edx
xor ebp, ebp
mov dword [esi + 0x40], eax
mov dword [esi + 0x50], eax
mov dword [esi + 8], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], edi
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4