Function at 0x4048e0
Capabilities:
Check for time delay via gettickcount
Get number of processors
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419fa5
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x425010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x124], edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x130], esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x30], 0
mov dword [ebp - 0x144], eax
jne 0x404964
push esi
push ecx
mov ecx, dword [ebp + 8]
mov edx, esp
mov dword [edx], ecx
test ecx, ecx
je 0x40494a
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, edi
call fcn.00404f60
test eax, eax
je 0x404964
mov dword [ebp - 0x118], 1
jmp 0x404f1d
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x118], eax
test esi, esi
jne 0x40497e
mov dword [ebp - 0x118], eax
jmp 0x404f20
mov dword [ebp - 0x14c], eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004054f0
test eax, eax
je 0x404b7d
mov dword [ebp - 0x114], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x114]
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x5c]
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x404b6c
mov dword [ebp - 0x11c], 0
lea edx, [ebp - 0x11c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0xe8]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0xe8], xmm0
call esi
lea eax, [ebp - 0x140]
xorps xmm0, xmm0
push eax
movdqu xmmword [ebp - 0x140], xmm0
call esi
mov eax, 3
xor ecx, ecx
mov word [ebp - 0xe8], ax
mov dword [ebp - 0x110], ecx
xor esi, esi
mov byte [ebp - 4], 5
mov dword [ebp - 0x120], esi
cmp dword [ebp - 0x11c], esi
jle 0x404b40
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x140]
push edx
mov dword [ebp - 0xe0], esi
lea edx, [ebp - 0xe8]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x404b0d
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x110]
push edx
push str.D_3
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x404b0d
xor esi, esi
mov dword [ebp - 0x12c], esi
push ecx
mov ecx, esp
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x110]
mov dword [ecx], eax
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x404a9f
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
lea eax, [ebp - 0x128]
push eax
call fcn.004026e0
mov edi, dword [eax]
test edi, edi
je 0x404abf
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov esi, edi
mov dword [ebp - 0x12c], esi
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x404acf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x130]
push ecx
mov eax, esp
mov dword [eax], esi
test esi, esi
je 0x404ae4
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov edi, dword [ebp - 0x124]
mov ecx, edi
call fcn.004048e0
mov byte [ebp - 4], 5
test eax, eax
jne 0x404bc6
test esi, esi
je 0x404b07
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov esi, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x110]
test ecx, ecx
je 0x404b2d
mov dword [ebp - 0x110], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x110]
inc esi
mov dword [ebp - 0x120], esi
cmp esi, dword [ebp - 0x11c]
jl 0x404a31
mov byte [ebp - 4], 4
test ecx, ecx
je 0x404b4e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x140]
push eax
call esi
lea eax, [ebp - 0xe8]
push eax
call esi
mov eax, dword [ebp - 0x114]
mov byte [ebp - 4], 1
test eax, eax
je 0x404b7a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 8]
mov ecx, dword [edi + 0x115c]
lea eax, [edi + 0x115c]
mov dword [ebp - 0x128], eax
test ecx, ecx
je 0x404ba2
mov dword [eax], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
lea ecx, [edi + 0x115c]
push ecx
push esi
call dword [eax + 0x20]
mov ecx, dword [edi + 0x115c]
test ecx, ecx
jne 0x404c1f
xor eax, eax
mov dword [ebp - 0x118], eax
jmp 0x404f1d
test esi, esi
je 0x404bd0
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x404be4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x140]
push eax
call esi
lea eax, [ebp - 0xe8]
push eax
call esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x404c10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x118], 1
jmp 0x404f1d
mov eax, dword [ecx]
lea esi, [edi + 0x1188]
push esi
push ecx
mov dword [ebp - 0x120], esi
call dword [eax + 0x24]
cmp dword [esi], 0
mov eax, 3
mov word [ebp - 0x140], ax
mov dword [ebp - 0x11c], 0
jle 0x404ee3
mov esi, dword [ebp - 0x124]
add edi, 0x1164
add esi, 0x1178
mov dword [ebp - 0x110], esi
lea esp, [esp]
mov ecx, dword [esi]
test ecx, ecx
je 0x404c82
mov dword [esi], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x404c94
mov dword [edi], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x128]
movdqu xmm0, xmmword [ebp - 0x140]
push esi
sub esp, 0x10
mov ecx, dword [eax]
mov eax, esp
sub esp, 0x10
mov edx, dword [ecx]
movdqu xmmword [eax], xmm0
mov eax, esp
push ecx
movdqu xmmword [eax], xmm0
call dword [edx + 0x2c]
test eax, eax
jne 0x404ec8
mov ecx, dword [esi]
test ecx, ecx
je 0x404f1d
mov eax, dword [ecx]
push edi
push 0x41b298
push ecx
call dword [eax]
mov eax, dword [edi]
lea edx, [ebp - 0x12c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebp - 0x12c]
xor eax, eax
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], ax
cmp word [edx], ax
jne 0x404d21
xor ecx, ecx
jmp 0x404d35
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404d26
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xf0]
call fcn.00408800
mov esi, dword [ebp - 0x130]
mov byte [ebp - 4], 7
cmp dword [esi + 0x14], 8
jb 0x404d56
mov eax, dword [esi]
jmp 0x404d58
mov eax, esi
push dword [esi + 0x10]
push eax
push dword [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0xf0]
call fcn.00409610
test eax, eax
mov byte [ebp - 4], 1
sete al
cmp dword [ebp - 0xdc], 8
mov byte [ebp - 0x109], al
jb 0x404d9a
push dword [ebp - 0xf0]
call fcn.0040bdac
mov al, byte [ebp - 0x109]
add esp, 4
test al, al
je 0x404ec2
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x114], 0
sub eax, 0
je 0x404de6
dec eax
je 0x404dd2
dec eax
jne 0x404ec2
mov eax, dword [edi]
lea edx, [ebp - 0x114]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x100]
jmp 0x404df5
mov eax, dword [edi]
lea edx, [ebp - 0x114]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf8]
jmp 0x404df5
mov eax, dword [edi]
lea edx, [ebp - 0x114]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x404ec2
push eax
lea ecx, [ebp - 0x108]
call fcn.00407a80
cmp dword [esi + 0x2c], 8
jb 0x404e1a
mov ecx, dword [esi + 0x18]
jmp 0x404e1d
lea ecx, [esi + 0x18]
push dword [esi + 0x28]
push ecx
push ecx
mov ecx, eax
call fcn.00408200
test eax, eax
setns al
cmp dword [ebp - 0xf4], 8
mov byte [ebp - 0x109], al
jb 0x404e51
push dword [ebp - 0x108]
call fcn.0040bdac
mov al, byte [ebp - 0x109]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xf4], 7
mov dword [ebp - 0xf8], 0
mov word [ebp - 0x108], cx
test al, al
je 0x404eb6
mov ecx, dword [ebp - 0x124]
push edi
lea ecx, [ecx + 0x1160]
call fcn.00401270
mov ecx, dword [ebp - 0x124]
push dword [ebp - 0x110]
lea ecx, [ecx + 0x1174]
call fcn.00401270
mov edx, str.class_in_txt__type_text_
mov dword [ebp - 0x118], 1
lea ecx, [esi + 0x18]
call fcn.00409380
test al, al
jne 0x404ee3
push dword [ebp - 0x114]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [ebp - 0x110]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x11c], eax
cmp eax, dword [ecx]
jl 0x404c70
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x144]
push str.ms_r_n
push eax
push str.GetElement_time_consuming:
push str._s_d_s
lea eax, [ebp - 0xd8]
push 0x64
push eax
call fcn.0040c655
add esp, 0x18
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x404f37
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bdb1
mov esp, ebp
pop ebp
ret 8