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

Disassembly:
push 0xffffffffffffffff
push 0x61a1c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x64]
lea eax, [esi + 0x84]
push eax
call fcn.004091c0
mov dword [esp + 0x64], vtable.wxPen.0
lea ecx, [esi + 0x8c]
mov dword [esp + 0x98], 0
push ecx
lea ecx, [esp + 0x60]
call fcn.00408f80
mov dword [esp + 0x5c], vtable.wxBrush.0
mov edi, dword [esp + 0xa4]
mov byte [esp + 0x98], 1
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x28]
mov byte [esp + 0x14], al
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x18], al
call dword [edx + 0x30]
mov edi, dword [esp + 0xa8]
mov byte [esp + 0x1c], al
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x28]
mov edx, dword [edi]
mov ecx, edi
mov byte [esp + 0x44], al
call dword [edx + 0x2c]
mov byte [esp + 0x48], al
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0xac]
cmp eax, 0x20
je 0x475467
cmp eax, 0x10
je 0x475467
mov ebp, dword [esp + 0xa0]
mov eax, 0x80808081
mov ecx, dword [ebp + 0xc]
imul ecx
add edx, ecx
mov ebx, ecx
sar edx, 7
mov eax, edx
mov dword [esp + 0x58], ebx
shr eax, 0x1f
add edx, eax
mov eax, edx
cmp eax, 1
mov dword [esp + 0x10], eax
jge 0x475217
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
test ecx, ecx
jle 0x4756d0
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
and edi, 0xff
and edx, 0xff
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x48]
and edi, 0xff
mov dword [esp + 0x50], edx
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x18]
and edi, 0xff
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x4c]
and edi, 0xff
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x1c]
and edi, 0xff
neg eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x54], eax
xor edi, edi
jmp 0x475289
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
sub ecx, dword [esp + 0x10]
sub edi, eax
mov al, byte [esp + 0x44]
mov dword [esp + 0x40], ecx
mov cl, byte [esp + 0x14]
cmp cl, al
jbe 0x4752b3
mov eax, dword [esp + 0x20]
sub eax, edx
imul eax, edi
cdq
idiv ebx
sub cl, al
mov byte [esp + 0x3c], cl
jmp 0x4752c7
mov eax, edx
mov edx, dword [esp + 0x20]
sub eax, edx
imul eax, edi
cdq
idiv ebx
add al, cl
mov byte [esp + 0x3c], al
mov cl, byte [esp + 0x18]
mov al, byte [esp + 0x48]
cmp cl, al
jbe 0x4752eb
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
sub eax, edx
imul eax, edi
cdq
idiv ebx
sub cl, al
mov byte [esp + 0x38], cl
jmp 0x475301
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub eax, edx
imul eax, edi
cdq
idiv ebx
add al, cl
mov byte [esp + 0x38], al
mov cl, byte [esp + 0x1c]
mov al, byte [esp + 0x4c]
cmp cl, al
jbe 0x475325
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
sub eax, edx
imul eax, edi
cdq
idiv ebx
sub cl, al
mov byte [esp + 0x34], cl
jmp 0x47533b
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub eax, edx
imul eax, edi
cdq
idiv ebx
add al, cl
mov byte [esp + 0x34], al
mov dword [esp + 0x80], 0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push 0xff
push ecx
push edx
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0xa8], 6
mov dword [esp + 0x8c], vtable.wxColour.0
call dword [0x63ae80]
push 0x64
lea ecx, [esp + 0x80]
push 1
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0xa4], 7
call fcn.00475e40
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x9c], 8
call dword [edx + 0x30]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 7
call fcn.0047d2b0
lea eax, [esp + 0x7c]
push 0x64
push eax
lea ecx, [esp + 0x7c]
call fcn.004768f0
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x9c], 9
call dword [edx + 0x34]
lea ecx, [esp + 0x74]
mov byte [esp + 0x98], 7
call fcn.0047d2b0
cmp dword [esp + 0xac], 0x40
jne 0x475416
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 8]
mov edx, dword [esi]
push ecx
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [ebp + 4]
add eax, ecx
mov ecx, esi
push eax
mov eax, dword [ebp]
push eax
call dword [edx + 0xf0]
jmp 0x475445
mov eax, dword [ebp + 0xc]
mov ebx, dword [esp + 0x10]
push dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp]
sub eax, ebx
mov ebx, dword [esp + 0x44]
push ecx
sub eax, ebx
mov ebx, dword [ebp + 4]
add eax, ebx
mov ebx, dword [esi]
push eax
push edx
mov ecx, esi
call dword [ebx + 0xf0]
mov ebx, dword [esp + 0x58]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 1
call fcn.0047d2b0
mov eax, dword [esp + 0x40]
test eax, eax
jg 0x47527d
jmp 0x4756d0
mov ebx, dword [esp + 0xa0]
mov ecx, dword [ebx + 8]
mov eax, ecx
mov dword [esp + 0x10], ecx
cdq
and edx, 0xff
add eax, edx
mov edi, eax
sar edi, 8
cmp edi, 1
jge 0x47548f
mov edi, 1
cmp ecx, edi
jl 0x4756d0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x44]
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x48]
and eax, 0xff
mov dword [esp + 0x50], edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
and eax, 0xff
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
and eax, 0xff
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
and eax, 0xff
mov dword [esp + 0x30], eax
mov eax, edi
neg eax
mov dword [esp + 0x58], eax
xor ebp, ebp
jmp 0x4754fe
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
sub ecx, edi
sub ebp, eax
mov al, byte [esp + 0x44]
mov dword [esp + 0x40], ecx
cmp byte [esp + 0x14], al
jbe 0x47552c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
mov dl, byte [esp + 0x14]
sub dl, al
mov byte [esp + 0x3c], dl
jmp 0x475546
mov ecx, dword [esp + 0x20]
mov eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x10]
imul eax, ebp
cdq
idiv ecx
add al, byte [esp + 0x14]
mov byte [esp + 0x3c], al
mov al, byte [esp + 0x48]
mov dl, byte [esp + 0x18]
cmp dl, al
jbe 0x47556e
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
mov dl, byte [esp + 0x18]
sub dl, al
mov byte [esp + 0x38], dl
jmp 0x475586
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
add al, byte [esp + 0x18]
mov byte [esp + 0x38], al
mov al, byte [esp + 0x4c]
mov dl, byte [esp + 0x1c]
cmp dl, al
jbe 0x4755ae
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
mov cl, byte [esp + 0x1c]
sub cl, al
mov byte [esp + 0x34], cl
jmp 0x4755c6
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
sub eax, edx
imul eax, ebp
cdq
idiv ecx
add al, byte [esp + 0x1c]
mov byte [esp + 0x34], al
lea ecx, [esp + 0x7c]
call fcn.004091e0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0xff
push edx
push eax
push ecx
lea ecx, [esp + 0x8c]
mov byte [esp + 0xa8], 2
mov dword [esp + 0x8c], vtable.wxColour.0
call dword [0x63ae80]
push 0x64
lea edx, [esp + 0x80]
push 1
push edx
lea ecx, [esp + 0x80]
mov byte [esp + 0xa4], 3
call fcn.00475e40
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x9c], 4
call dword [edx + 0x30]
lea ecx, [esp + 0x74]
mov byte [esp + 0x98], 3
call fcn.0047d2b0
lea eax, [esp + 0x7c]
push 0x64
push eax
lea ecx, [esp + 0x74]
call fcn.004768f0
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [esp + 0x9c], 5
call dword [edx + 0x34]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x98], 3
call fcn.0047d2b0
cmp dword [esp + 0xac], 0x20
jne 0x475699
mov eax, dword [ebx]
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x40]
sub eax, edi
sub eax, edx
mov edx, dword [ebx + 8]
push ecx
mov ecx, dword [ebx + 4]
push edi
add eax, edx
push ecx
jmp 0x4756aa
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [ebx]
push edi
push ecx
mov ecx, dword [esp + 0x4c]
add eax, ecx
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx + 0xf0]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x98], 1
call fcn.0047d2b0
cmp dword [esp + 0x40], edi
jge 0x4754f2
mov edx, dword [esi]
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [esi]
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
call dword [edx + 0x34]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x98], 0
call fcn.0047d2b0
lea ecx, [esp + 0x64]
mov dword [esp + 0x98], 0xffffffff
call fcn.0047d2b0
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 0x10