Function at 0x47c83c
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
sub eax, ebx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jge 0x47c868
mov eax, dword [ebp - 4]
cmp ecx, dword [eax + 0x38]
je 0x47ca4c
test ebx, ebx
je 0x47ca4c
test ecx, ecx
je 0x47ca4c
mov eax, dword [ebp - 4]
mov byte [eax + 0x1c], 0
xor eax, eax
push ebp
push 0x47ca45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax + 0x34], ebx
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov edx, 0x21c
call sub.AIMP2.dll__Math_Min_qqrxixi
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov edx, 0x12c
call sub.AIMP2.dll__Math_Min_qqrxixi
mov esi, eax
mov dword [ebp - 8], 0x3fe66666
mov dword [ebp - 0xc], ebx
fild dword [ebp - 0xc]
fdiv dword [ebp - 8]
mov dword [ebp - 0x10], esi
fild dword [ebp - 0x10]
fcompp
fnstsw ax
sahf
jae 0x47c8ec
mov dword [ebp - 0xc], esi
fild dword [ebp - 0xc]
fmul dword [ebp - 8]
call sub.AIMP2.dll__System__TRUNC_qqrv
mov ebx, eax
jmp 0x47c8fc
mov dword [ebp - 0xc], ebx
fild dword [ebp - 0xc]
fdiv dword [ebp - 8]
call sub.AIMP2.dll__System__TRUNC_qqrv
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ecx, 0x47ca5c
mov edx, dword [0x48e004]
call sub.AIMP2.dll__Graphics_TBitmap_LoadFromResourceName_qqruix17System_AnsiString
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x28]
push edi
call sub.AIMP2.dll__Myskingdiplus_MyImageStretchResult_qqsp16Graphics_TBitmapiio
mov edx, eax
mov eax, edi
call sub.AIMP2.dll__Graphics_TBitmap_SetHandle_qqrui
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fld xword [0x47ca60]
fmulp st(1)
call sub.AIMP2.dll__System__TRUNC_qqrv
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x34]
sub edx, eax
sar edx, 1
jns 0x47c969
adc edx, 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
sub edx, eax
sar edx, 1
jns 0x47c989
adc edx, 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fld xword [0x47ca6c]
fmulp st(1)
call sub.AIMP2.dll__System__TRUNC_qqrv
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fld xword [0x47ca78]
fmulp st(1)
call sub.AIMP2.dll__System__TRUNC_qqrv
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x14]
xor edx, edx
call sub.AIMP2.dll__Graphics_TBrush_SetStyle_qqr20Graphics_TBrushStyle
mov cl, 0x64
mov dl, 0x64
mov al, 0x64
call fcn.00401788
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x10]
call sub.AIMP2.dll__Graphics_TPen_SetColor_qqr15Graphics_TColor
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x14]
xor edx, edx
call sub.AIMP2.dll__Graphics_TBrush_SetColor_qqr15Graphics_TColor
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ecx, 0x3c
cdq
idiv ecx
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov eax, dword [eax + 0x10]
call sub.AIMP2.dll__Graphics_TPen_SetWidth_qqri
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ca4c
mov eax, dword [ebp - 4]
mov byte [eax + 0x1c], 1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret