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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4be354
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c4
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x160]
test eax, eax
mov dword [esp + 0x30], eax
je 0x45757d
mov eax, dword [edi + 0xd0]
shr eax, 3
and al, 1
mov byte [esp + 0x1e], al
mov eax, dword [0x4e4f74]
push eax
push 0
or ebp, 0xffffffff
push str.msw.remap
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b], 0
mov byte [esp + 0x23], 0
mov esi, ebp
call fcn.00472c90
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1e0], 0
call fcn.0047d050
mov bl, al
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
add esp, 4
cmp ecx, ebp
mov dword [esp + 0x1dc], ebp
je 0x456aeb
dec ecx
mov dword [eax], ecx
jne 0x456aeb
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
test bl, bl
je 0x456b44
mov edx, dword [0x4e4f74]
push edx
push 0
push str.msw.remap
lea ecx, [esp + 0x24]
call fcn.00472c90
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1e0], 1
call fcn.0047d0f0
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff4
add esp, 4
cmp ecx, ebp
mov dword [esp + 0x1dc], ebp
je 0x456b44
dec ecx
mov dword [eax], ecx
jne 0x456b44
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
cmp esi, 2
sete bl
test bl, bl
jne 0x456b5e
test esi, esi
setne al
test al, al
mov byte [esp + 0x1f], al
sete byte [esp + 0x17]
mov eax, dword [edi + 0x19c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
test eax, eax
jbe 0x456b8d
mov eax, dword [edi + 0x11c]
push 0
push 0
push 0x416
push eax
call ebp
mov eax, dword [edi + 0x19c]
inc esi
cmp esi, eax
jb 0x456b70
mov edx, dword [edi + 0xd0]
xor ecx, ecx
shr edx, 7
test dl, 1
mov dword [esp + 0x34], ecx
je 0x456ba8
xor edx, edx
jmp 0x4570c3
mov esi, dword [edi + 0x18c]
mov eax, dword [edi + 0x194]
mov ebp, dword [edi + 0x190]
mov dword [esp + 0x78], esi
imul esi, dword [esp + 0x30]
lea ecx, [esp + 0xb8]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x60], esi
call fcn.00440740
push 0xffffffffffffffff
push ebp
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x1e8], 2
call fcn.00422bc0
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0xbc]
mov byte [esp + 0x1e0], 3
call fcn.00440640
test bl, bl
je 0x456c25
mov edx, dword [0x51398c]
push edx
lea ecx, [esp + 0xbc]
call fcn.0042bcf0
jmp 0x456c82
lea eax, [esp + 0x8c]
push eax
mov ecx, edi
call fcn.0041d110
push 0x64
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x1e4], 4
call fcn.00437710
push eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x1e0], 5
call fcn.0042bcf0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1dc], 4
call fcn.00407300
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1dc], 3
call fcn.00407300
lea ecx, [esp + 0xb8]
call fcn.0042a880
mov eax, dword [esp + 0x68]
test eax, eax
je 0x456c99
mov eax, dword [eax + 0x14]
mov ebx, eax
mov dword [edi + 0x194], eax
mov al, byte [esp + 0x17]
test al, al
mov dword [esp + 0x28], ebx
je 0x456cde
push 0x513a40
lea ecx, [esp + 0xbc]
call fcn.00440640
push ebp
push esi
push ebx
call fcn.00456310
add esp, 0xc
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0xbc]
mov dword [esp + 0x2c], eax
call fcn.00440640
xor eax, eax
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
call fcn.00456920
mov eax, dword [edi + 0x168]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x456f99
mov ebp, dword [eax + 8]
cmp dword [ebp + 0xc], 1
jne 0x456f8a
mov eax, dword [ebp + 0x24]
test eax, eax
lea esi, [ebp + 0x20]
jne 0x456d1c
xor ebx, ebx
jmp 0x456d1f
mov ebx, dword [eax + 8]
test eax, eax
jne 0x456d29
mov dword [esp + 0x20], eax
jmp 0x456d30
mov edx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
test eax, eax
je 0x456d8c
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x456d8c
mov eax, dword [edi + 0x18c]
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
xor ecx, ecx
test eax, eax
setl cl
push 1
dec ecx
and ecx, eax
mov eax, dword [edi + 0x190]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
xor edx, edx
test eax, eax
setl dl
dec edx
and eax, edx
mov edx, dword [esp + 0xbc]
push eax
mov eax, dword [esp + 0x20]
add ecx, eax
push ecx
push esi
lea ecx, [esp + 0xc8]
call dword [edx + 0x11c]
mov eax, dword [edi + 0x198]
test eax, eax
je 0x456f72
add ebp, 0x2c
push ebp
lea ecx, [esp + 0x3c]
call fcn.00404200
mov eax, dword [esp + 0x3c]
test eax, eax
mov byte [esp + 0x1dc], 6
je 0x456dc2
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x456f2e
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], vtable.wxImage.0
lea eax, [esp + 0x58]
push eax
mov ecx, esi
mov byte [esp + 0x1e0], 7
call fcn.00422310
lea ecx, [esp + 0x50]
push ecx
push eax
mov byte [esp + 0x1e4], 8
call fcn.00458af0
add esp, 8
lea ecx, [esp + 0x58]
mov byte [esp + 0x1dc], 7
mov dword [esp + 0x58], vtable.wxObject.0
call fcn.00474100
mov al, byte [esp + 0x1f]
test al, al
je 0x456e9e
mov eax, dword [esp + 0x20]
xor ebp, ebp
test eax, eax
jle 0x456e9e
jmp 0x456e30
xor esi, esi
test ebx, ebx
jle 0x456e95
push 0x80
push ebp
push esi
lea ecx, [esp + 0x5c]
call fcn.0040a320
test al, al
je 0x456e90
mov eax, dword [0x51395c]
mov dl, byte [eax + 0xe]
mov cl, byte [eax + 0xf]
mov byte [esp + 0x84], dl
mov dl, byte [eax + 0xd]
mov eax, dword [esp + 0x84]
mov byte [esp + 0x80], cl
mov ecx, dword [esp + 0x80]
push eax
push ecx
mov byte [esp + 0x90], dl
mov edx, dword [esp + 0x90]
push edx
push ebp
push esi
lea ecx, [esp + 0x64]
call fcn.0040a180
inc esi
cmp esi, ebx
jl 0x456e36
mov eax, dword [esp + 0x20]
inc ebp
cmp ebp, eax
jl 0x456e30
mov dword [esp + 0x90], 0
mov byte [esp + 0x94], 0
push 0xffffffffffffffff
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x1e4], 9
mov dword [esp + 0x94], vtable.wxBitmap.0
call fcn.00422a60
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x90]
mov byte [esp + 0x1dc], 0xa
je 0x456efd
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x3c]
call fcn.00474180
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1dc], 7
call fcn.00407300
lea ecx, [esp + 0x50]
mov byte [esp + 0x1dc], 6
mov dword [esp + 0x50], vtable.wxObject.0
call fcn.00474100
mov eax, dword [esp + 0x3c]
mov cl, byte [esp + 0x1f]
test cl, cl
je 0x456f4c
test eax, eax
je 0x456f3d
mov eax, dword [eax + 0x14]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push eax
call fcn.00456310
add esp, 0xc
mov ecx, dword [edi + 0x198]
push 0x513a40
lea edx, [esp + 0x3c]
push edx
call fcn.0045c0e0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1dc], 3
call fcn.00407300
mov eax, dword [edi + 0x18c]
mov ecx, dword [esp + 0x18]
add ecx, eax
inc dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x456d01
push 0x513a40
lea ecx, [esp + 0xbc]
call fcn.00440640
lea ecx, [esp + 0x64]
call fcn.004741d0
mov al, byte [esp + 0x1f]
mov ecx, dword [esp + 0x68]
xor ebx, ebx
test al, al
mov dword [ecx + 0x14], ebx
je 0x456fdf
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call fcn.00456310
add esp, 0xc
mov dword [esp + 0x28], eax
mov ebp, dword [esp + 0x4c]
cmp ebp, ebx
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
je 0x45703e
call fcn.00408710
cmp eax, 0x190
jl 0x457034
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x38]
push ecx
push ebx
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x11c]
push 0x42e
mov dword [esp + 0x44], ebx
mov dword [esp + 0x4c], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], edx
call ebx
push ebp
call esi
jmp 0x457068
mov edx, dword [edi + 0x19c]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x58]
push ecx
push edx
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0x11c]
push 0x413
mov dword [esp + 0x64], ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
call ebx
mov eax, dword [edi + 0x198]
test eax, eax
je 0x45708d
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x11c]
push eax
push 0
push 0x436
push ecx
call ebx
test eax, eax
je 0x45708d
push eax
call esi
lea ecx, [esp + 0x64]
mov byte [esp + 0x1dc], 2
call fcn.00407300
lea ecx, [esp + 0xb8]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.0042d010
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov eax, dword [edi + 0x11c]
movzx edx, dx
movzx ecx, cx
shl edx, 0x10
or edx, ecx
push edx
push 0
push 0x420
push eax
call ebp
mov eax, dword [esp + 0x30]
lea edx, [eax + eax*4]
shl edx, 2
push edx
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea ecx, [esp + 0xac]
mov dword [esp + 0x24], eax
call fcn.00476ad0
mov eax, dword [edi + 0x168]
test eax, eax
mov dword [esp + 0x1dc], 0xb
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], eax
je 0x4572b8
mov ebx, dword [esp + 0x24]
add ebx, 8
mov ebp, eax
mov al, byte [esp + 0x1e]
test al, al
mov esi, dword [ebp + 8]
je 0x457156
cmp dword [esi + 0xc], 2
jne 0x457156
call fcn.00408710
cmp eax, 0x1d8
jle 0x4572a9
xor eax, eax
lea ecx, [ebx - 8]
mov edx, ecx
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov eax, dword [esi + 0xc]
xor dl, dl
dec eax
je 0x45718f
dec eax
je 0x457183
dec eax
jne 0x457299
mov eax, dword [esi + 0x10]
mov dword [ebx - 4], eax
mov byte [ebx], 4
mov byte [ebx + 1], 1
jmp 0x457299
mov eax, dword [edi + 0xd0]
shr eax, 7
test al, 1
jne 0x4571a2
mov eax, dword [esp + 0x34]
mov dword [ecx], eax
mov ecx, dword [edi + 0xd0]
shr ecx, 8
test cl, 1
je 0x4571bd
mov eax, dword [esi + 0x38]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4571bd
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebx - 4], eax
mov al, byte [esi + 0x1d]
test al, al
je 0x4571cd
or byte [ebx], 4
mov al, byte [esi + 0x1c]
test al, al
je 0x4571d7
or byte [ebx], 1
mov eax, dword [esi + 0x14]
sub eax, 0
je 0x457288
dec eax
je 0x457282
dec eax
jne 0x457288
mov al, byte [esp + 0x17]
test al, al
mov byte [ebx + 1], 6
jne 0x457221
mov al, byte [ebx]
or al, 1
push 1
mov ecx, esi
mov byte [ebx], al
call fcn.004579e0
test al, al
je 0x45727e
mov edx, dword [edi]
push 1
push esi
mov ecx, edi
call dword [edx + 0x3a4]
mov dl, 1
jmp 0x45728c
mov al, byte [esi + 0x1c]
test al, al
je 0x45727e
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 0x10]
test esi, esi
je 0x45727e
lea ecx, [ebx - 0x14]
mov dword [esp + 0x30], ecx
lea ebx, [ebx]
mov ebp, dword [esi + 8]
cmp dword [ebp + 0xc], 1
jne 0x45727e
cmp dword [ebp + 0x14], 2
jne 0x45727e
push 0
mov ecx, ebp
call fcn.004579e0
test al, al
je 0x457269
mov edx, dword [edi]
push 0
push ebp
mov ecx, edi
call dword [edx + 0x3a4]
mov eax, dword [esp + 0x30]
mov byte [eax], 4
mov esi, dword [esi + 0x10]
sub eax, 0x14
test esi, esi
mov dword [esp + 0x30], eax
jne 0x457240
mov dl, 1
jmp 0x45728c
mov byte [ebx + 1], 2
jmp 0x45728c
mov byte [ebx + 1], 0
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x2c]
inc eax
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x18]
inc ecx
mov byte [esp + 0x17], dl
mov dword [esp + 0x18], ecx
add ebx, 0x14
mov ebp, dword [ebp + 0xc]
test ebp, ebp
mov dword [esp + 0x2c], ebp
jne 0x457135
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x11c]
push esi
push ecx
push 0x414
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov eax, dword [edi + 0x168]
xor ecx, ecx
add esp, 4
cmp eax, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
je 0x45751a
mov esi, eax
jmp 0x457300
mov ebp, dword [esi + 8]
cmp dword [ebp + 0xc], 3
sete bl
test bl, bl
mov dword [esp + 0x4c], ebp
jne 0x45731e
mov al, byte [esp + 0x1e]
test al, al
je 0x457502
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + 0x11c]
lea edx, [esp + 0x38]
push edx
push ecx
push 0x41d
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test bl, bl
jne 0x457357
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
sub edx, ecx
add eax, edx
mov dword [esp + 0x28], eax
jmp 0x457502
mov esi, dword [ebp + 0x18]
mov eax, dword [esi]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call dword [eax + 0x234]
mov dword [esp + 0x24], 0xffffffff
call fcn.00408710
cmp eax, 0x1d7
jl 0x4573c8
mov ax, word [esp + 0x30]
mov ecx, dword [edi + 0x11c]
lea edx, [esp + 0x8c]
push edx
mov word [esp + 0xa2], ax
mov eax, dword [ebp + 0x10]
push eax
push 0x442
push ecx
mov dword [esp + 0x9c], 0x20
mov dword [esp + 0xa0], 0x40
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x45745e
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
sub ebp, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
cdq
idiv ebp
mov byte [esp + 0x6c], 4
mov byte [esp + 0x6d], 1
mov ebx, eax
test ebx, ebx
jbe 0x457440
mov dword [esp + 0x18], ebx
jmp 0x457410
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x11c]
lea ecx, [esp + 0x64]
push ecx
push edx
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
inc ecx
dec eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
jne 0x457410
mov eax, dword [esp + 0x4c]
mov dword [eax + 0x44], ebx
mov edx, dword [esi]
inc ebx
imul ebx, ebp
push 0
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call dword [edx + 0x244]
mov ebp, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
sub ebp, edx
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x18], eax
jns 0x457494
mov eax, dword [esi]
push 0
lea ecx, [ebp - 2]
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x244]
mov dword [esp + 0x18], 2
mov al, byte [esp + 0x1e]
test al, al
je 0x4574c9
mov edx, dword [edi]
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x58]
push eax
mov ecx, edi
mov dword [esp + 0x28], 0
call dword [edx + 0x368]
mov ecx, dword [esp + 0x5c]
lea edx, [ebp + ecx*2]
mov eax, ebx
add eax, edx
mov dword [esp + 0x28], eax
jmp 0x4574dc
cmp dword [esp + 0x24], 0xffffffff
jne 0x4574d8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esi]
inc eax
cdq
push 0
sub eax, edx
push 0xffffffffffffffff
sar eax, 1
push 0xffffffffffffffff
add eax, ebx
push eax
push ecx
mov ecx, esi
call dword [ebp + 0x244]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esi + 0xc]
inc ecx
test esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], ecx
jne 0x457300
mov cl, byte [esp + 0x1e]
test cl, cl
mov eax, dword [esp + 0x20]
mov dword [edi + 0x19c], eax
jne 0x45753a
mov eax, dword [edi + 0x17c]
test eax, eax
jne 0x457553
push 1
jmp 0x457549
test eax, eax
jbe 0x457553
mov ecx, dword [edi + 0x17c]
test ecx, ecx
jne 0x457553
push eax
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x374]
mov ecx, edi
call fcn.0041a770
push 0x50a08c
mov ecx, edi
call fcn.0041aff0
lea ecx, [esp + 0xac]
mov dword [esp + 0x1dc], 0xffffffff
call fcn.00476b40
mov ecx, dword [esp + 0x1d4]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret