Function at 0x44579a
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d27c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x88]
xor ebp, ebp
cmp eax, ebp
mov ecx, vtable.wxObject.0
push edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
je 0x4457ba
inc dword [eax + 4]
mov dword [esp + 0x50], vtable.wxPen.0
mov eax, dword [esi + 0x90]
cmp eax, ebp
mov dword [esp + 0x84], ebp
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
je 0x4457de
inc dword [eax + 4]
mov dword [esp + 0x48], vtable.wxBrush.0
mov edi, dword [esp + 0x90]
mov eax, dword [edi]
mov ecx, edi
mov byte [esp + 0x84], 1
call dword [eax + 0x28]
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x12], al
call dword [edx + 0x2c]
mov byte [esp + 0x13], al
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov edi, dword [esp + 0x94]
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x14], al
call dword [edx + 0x28]
mov byte [esp + 0x15], al
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x16], al
call dword [edx + 0x30]
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x98]
cmp eax, 0x20
je 0x445a9d
cmp eax, 0x10
je 0x445a9d
mov ebx, dword [esp + 0x8c]
mov ecx, dword [ebx + 0xc]
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
cmp ebp, 1
mov dword [esp + 0x40], ecx
jge 0x445882
mov ebp, 1
test ecx, ecx
jle 0x445ce3
movzx eax, byte [esp + 0x12]
movzx edx, byte [esp + 0x15]
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x16]
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x13]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x17]
mov dword [esp + 0x24], eax
movzx eax, byte [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, ebp
neg eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], eax
xor edi, edi
jmp 0x4458d8
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
sub ecx, ebp
sub edi, eax
mov al, byte [esp + 0x12]
mov dword [esp + 0x38], ecx
mov cl, byte [esp + 0x15]
cmp al, cl
jbe 0x445908
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
sub eax, edx
imul eax, edi
cdq
idiv ecx
mov dl, byte [esp + 0x12]
sub dl, al
mov byte [esp + 0x34], dl
jmp 0x445922
mov eax, edx
sub eax, dword [esp + 0x18]
imul eax, edi
cdq
idiv dword [esp + 0x40]
add al, byte [esp + 0x12]
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x34], al
mov al, byte [esp + 0x16]
cmp byte [esp + 0x13], al
jbe 0x445948
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub eax, edx
imul eax, edi
cdq
idiv ecx
mov dl, byte [esp + 0x13]
sub dl, al
mov byte [esp + 0x30], dl
jmp 0x445960
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub eax, edx
imul eax, edi
cdq
idiv ecx
add al, byte [esp + 0x13]
mov byte [esp + 0x30], al
mov al, byte [esp + 0x17]
cmp byte [esp + 0x14], al
jbe 0x445986
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub eax, edx
imul eax, edi
cdq
idiv ecx
mov cl, byte [esp + 0x14]
sub cl, al
mov byte [esp + 0x2c], cl
jmp 0x44599e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub eax, edx
imul eax, edi
cdq
idiv ecx
add al, byte [esp + 0x14]
mov byte [esp + 0x2c], al
mov dword [esp + 0x6c], 0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0xff
push edx
push eax
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], 6
mov dword [esp + 0x78], vtable.wxColour.0
call dword [0x4e3578]
push 0x64
push 1
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x90], 7
call fcn.0043bd50
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x88], 8
call dword [edx + 0x30]
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 7
call fcn.004b4600
push 0x64
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x68]
call fcn.0043c620
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x88], 9
call dword [edx + 0x34]
lea ecx, [esp + 0x60]
mov byte [esp + 0x84], 7
call fcn.004b4600
cmp dword [esp + 0x98], 0x40
push ebp
jne 0x445a5b
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [esp + 0x40]
add ecx, eax
push ecx
jmp 0x445a6e
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebx + 8]
sub eax, ebp
sub eax, edx
add eax, dword [ebx + 4]
push ecx
push eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx + 0xf0]
lea ecx, [esp + 0x68]
mov byte [esp + 0x84], 1
call fcn.004b4600
mov eax, dword [esp + 0x38]
test eax, eax
jg 0x4458cc
jmp 0x445ce3
mov ebx, dword [esp + 0x8c]
mov ecx, dword [ebx + 8]
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
mov edi, eax
sar edi, 8
cmp edi, 1
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], ecx
jge 0x445ac9
mov edi, 1
cmp ecx, edi
jl 0x445ce3
movzx eax, byte [esp + 0x15]
movzx edx, byte [esp + 0x12]
mov dword [esp + 0x3c], eax
movzx eax, byte [esp + 0x16]
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + 0x17]
mov dword [esp + 0x18], edx
movzx edx, byte [esp + 0x13]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
movzx edx, byte [esp + 0x14]
mov eax, edi
neg eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], eax
jmp 0x445b20
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea esp, [esp]
mov edx, dword [esp + 0x38]
sub edx, edi
sub ebp, eax
mov al, byte [esp + 0x15]
mov dword [esp + 0x38], edx
cmp byte [esp + 0x12], al
jbe 0x445b52
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
mov dl, byte [esp + 0x12]
sub dl, al
mov byte [esp + 0x34], dl
jmp 0x445b6a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
add al, byte [esp + 0x12]
mov byte [esp + 0x34], al
mov al, byte [esp + 0x16]
cmp byte [esp + 0x13], al
jbe 0x445b90
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
mov dl, byte [esp + 0x13]
sub dl, al
mov byte [esp + 0x30], dl
jmp 0x445ba8
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
add al, byte [esp + 0x13]
mov byte [esp + 0x30], al
mov al, byte [esp + 0x17]
cmp byte [esp + 0x14], al
jbe 0x445bce
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
mov cl, byte [esp + 0x14]
sub cl, al
mov byte [esp + 0x2c], cl
jmp 0x445be6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
add al, byte [esp + 0x14]
mov byte [esp + 0x2c], al
mov dword [esp + 0x6c], 0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0xff
push edx
push eax
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0x94], 2
mov dword [esp + 0x78], vtable.wxColour.0
call dword [0x4e3578]
push 0x64
push 1
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x90], 3
call fcn.0043bd50
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x88], 4
call dword [edx + 0x30]
lea ecx, [esp + 0x60]
mov byte [esp + 0x84], 3
call fcn.004b4600
push 0x64
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x60]
call fcn.0043c620
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x88], 5
call dword [edx + 0x34]
lea ecx, [esp + 0x58]
mov byte [esp + 0x84], 3
call fcn.004b4600
cmp dword [esp + 0x98], 0x20
jne 0x445cac
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov edx, dword [esp + 0x38]
sub eax, edi
push ecx
mov ecx, dword [ebx + 4]
sub eax, edx
mov edx, dword [ebx + 8]
push edi
add eax, edx
push ecx
jmp 0x445cbd
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push edi
push ecx
mov ecx, dword [esp + 0x44]
add eax, ecx
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx + 0xf0]
lea ecx, [esp + 0x68]
mov byte [esp + 0x84], 1
call fcn.004b4600
cmp dword [esp + 0x38], edi
jge 0x445b11
mov edx, dword [esi]
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [esi]
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call dword [edx + 0x34]
lea ecx, [esp + 0x48]
mov byte [esp + 0x84], 0
call fcn.004b4600
lea ecx, [esp + 0x50]
mov dword [esp + 0x84], 0xffffffff
call fcn.004b4600
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 0x10