Function at 0x660500
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x6c13a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x70]
mov eax, dword [esi + 0x1c8]
mov ebp, dword [esi + 0x204]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [esi + 0x1d8]
mov ebx, dword [edi + 4]
sub eax, ebp
mov dword [esp + 0x30], ebp
cdq
sub eax, edx
mov edx, dword [edi]
sar eax, 1
add ecx, edx
add eax, ebx
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x200]
cmp eax, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
jge 0x660569
mov dword [esp + 0x28], ebx
mov eax, dword [edi + 0xc]
cmp ebp, eax
jle 0x660574
mov dword [esp + 0x30], eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xa4]
test al, al
jne 0x660587
or dword [esp + 0x10], 1
mov ecx, dword [esi + 0x1e4]
lea edx, [esi + 0x1e0]
xor ebp, ebp
cmp ecx, ebp
je 0x6605a2
cmp dword [ecx + 0x14], ebp
jne 0x660735
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x6c]
cmp eax, ebp
je 0x660718
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], ebp
mov dword [esp + 0x34], vtable.wxColour.0
call fcn.004f4f00
mov eax, dword [esi + 0x208]
mov dword [esp + 0x64], 1
test ah, 2
je 0x660639
mov ecx, dword [esi + 0x2c]
lea eax, [esp + 0x48]
push eax
call fcn.004da560
mov ebp, eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 2
cmp ecx, ebp
je 0x660604
push ebp
lea ecx, [esp + 0x38]
call fcn.0056f8a0
mov edx, dword [ebp + 8]
mov byte [esp + 0x64], 1
mov dword [esp + 0x3c], edx
mov al, byte [ebp + 0xc]
mov byte [esp + 0x40], al
mov cl, byte [ebp + 0xd]
mov byte [esp + 0x41], cl
mov dl, byte [ebp + 0xe]
mov byte [esp + 0x42], dl
mov al, byte [ebp + 0xf]
mov byte [esp + 0x43], al
mov cl, byte [ebp + 0x10]
mov byte [esp + 0x44], cl
lea ecx, [esp + 0x48]
jmp 0x660689
lea edx, [esp + 0x48]
mov ecx, esi
push edx
call fcn.004da560
mov ebp, eax
push ebp
lea ecx, [esp + 0x38]
mov byte [esp + 0x68], 3
call fcn.0040eca0
mov eax, dword [ebp + 8]
mov byte [esp + 0x64], 1
mov dword [esp + 0x3c], eax
mov cl, byte [ebp + 0xc]
mov byte [esp + 0x40], cl
mov dl, byte [ebp + 0xd]
mov byte [esp + 0x41], dl
mov al, byte [ebp + 0xe]
mov byte [esp + 0x42], al
mov cl, byte [ebp + 0xf]
mov byte [esp + 0x43], cl
mov dl, byte [ebp + 0x10]
mov byte [esp + 0x44], dl
lea ecx, [esp + 0x48]
call fcn.004dd920
lea eax, [esp + 0x34]
push 0x64
push eax
lea ecx, [esp + 0x1c]
call fcn.004f0f30
mov edx, dword [ebx]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
mov byte [esp + 0x68], 4
call dword [edx + 0x34]
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 1
call fcn.004dd920
push 0x64
lea ecx, [esp + 0x38]
push 1
push ecx
lea ecx, [esp + 0x20]
call fcn.004fc0a0
mov edx, dword [ebx]
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
mov byte [esp + 0x68], 5
call dword [edx + 0x30]
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], 1
call fcn.004dd920
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [ebx]
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push eax
push ecx
mov ecx, ebx
call dword [edx + 0xf0]
lea ecx, [esp + 0x34]
mov dword [esp + 0x64], 0xffffffff
call fcn.004dd920
call fcn.0054be60
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x28]
push ecx
push ebx
push esi
mov ecx, eax
call dword [edx + 0x18]
jmp 0x6608bd
test al, al
jne 0x660820
lea edx, [esi + 0x1f8]
mov dword [esp + 0x70], edx
mov al, byte [esi + 0x20c]
mov ebp, dword [esp + 0x6c]
test al, al
mov eax, dword [esp + 0x74]
je 0x660850
test eax, eax
je 0x660806
mov ecx, dword [esi + 0x2c]
lea edx, [esp + 0x48]
push edx
call fcn.004da560
push 0x64
lea eax, [esp + 0x4c]
mov ebx, 6
push 1
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x70], ebx
call fcn.004fc0a0
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
mov byte [esp + 0x68], 7
call dword [edx + 0x30]
lea ecx, [esp + 0x14]
mov byte [esp + 0x64], bl
call fcn.004dd920
lea ecx, [esp + 0x48]
push 0x64
push ecx
lea ecx, [esp + 0x24]
call fcn.004f0f30
mov edx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
mov byte [esp + 0x68], 8
call dword [edx + 0x34]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], bl
call fcn.004dd920
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [ebp]
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push eax
push ecx
mov ecx, ebp
call dword [edx + 0xf0]
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.004dd920
call fcn.0054be60
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x28]
push ecx
push ebp
push esi
mov ecx, eax
call dword [edx + 0x24]
jmp 0x66086e
mov eax, dword [esi + 0x1c8]
test al, 4
je 0x660839
lea eax, [esi + 0x1e8]
mov dword [esp + 0x70], eax
jmp 0x660747
test al, 0x10
je 0x660743
lea ecx, [esi + 0x1f0]
mov dword [esp + 0x70], ecx
jmp 0x660747
test eax, eax
je 0x66086e
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [ebp]
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push eax
push ecx
mov ecx, ebp
call dword [edx + 0xf0]
mov esi, dword [esp + 0x70]
mov eax, dword [esi + 4]
test eax, eax
jne 0x66087d
xor edx, edx
jmp 0x660880
mov edx, dword [eax + 0xc]
test eax, eax
jne 0x660888
xor ecx, ecx
jmp 0x66088b
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x30]
push 1
sub eax, edx
mov edi, dword [ebp]
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
add eax, edx
push eax
mov eax, dword [esp + 0x34]
sub eax, ecx
mov ecx, ebp
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
sar eax, 1
add eax, edx
push eax
push esi
call dword [edi + 0x104]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc