Function at 0x40bed0
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5189c9
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x549950]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
mov eax, dword [0x549950]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x2c], eax
xor ebx, ebx
lea eax, [esi + 0x244]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x5c], eax
cmp eax, ebx
je 0x40bf3d
mov eax, dword [eax]
cmp eax, ebx
je 0x40bf3d
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x1c8], ebx
mov eax, dword [edi + 0x78]
sub eax, 1
je 0x40bf68
sub eax, 1
jne 0x40c858
mov ecx, dword [esp + 0x2c]
push edi
add esi, 0xffffff8c
push esi
call fcn.00416e00
jmp 0x40c877
lea eax, [edi + 0x54]
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], vtable.CBuffer_unsigned_char_.0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.0041b170
mov byte [esp + 0x1c8], 1
mov edx, dword [esp + 0x4c]
cmp edx, ebx
je 0x40c840
xor eax, eax
cmp edx, ebx
jbe 0x40bfaf
mov ecx, dword [esp + 0x50]
add byte [ecx + eax], 0x64
inc eax
cmp eax, edx
jb 0x40bfa2
xor edi, edi
lea ecx, [edx + 1]
mov dword [esp + 0x68], vtable.CBuffer_unsigned_char_.0
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], ebx
cmp ecx, ebx
je 0x40bfec
xor eax, eax
cmp ecx, ebx
jbe 0x40bfdf
push ecx
call fcn.004c015e
mov edx, dword [esp + 0x50]
add esp, 4
lea ecx, [edx + 1]
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
mov edi, eax
push ecx
push ebx
push edi
mov byte [esp + 0x1d4], 2
call fcn.004e57c0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
add esp, 0xc
push ecx
push edx
push edi
call fcn.004e9720
mov eax, edi
add esp, 0xc
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40c030
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x110]
call fcn.004014f0
mov byte [esp + 0x1c8], 3
cmp dword [esp + 0x11c], ebx
jne 0x40c099
cmp dword [esp + 0x120], 0x10
jb 0x40c072
mov eax, dword [esp + 0x10c]
push eax
call fcn.004c0153
add esp, 4
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
cmp edi, ebx
je 0x40c840
push edi
jmp 0x40c838
push 4
call fcn.004c0124
add esp, 4
cmp eax, ebx
je 0x40c0b2
lea ecx, [esp + 0x124]
mov dword [eax], ecx
jmp 0x40c0b4
xor eax, eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x134], ebx
mov dword [esp + 0x138], ebx
mov dword [esp + 0x13c], ebx
mov dword [esp + 0x140], ebx
push 4
mov byte [esp + 0x1cc], 4
call fcn.004c0124
add esp, 4
cmp eax, ebx
je 0x40c0f8
lea edx, [esp + 0x144]
mov dword [eax], edx
jmp 0x40c0fa
xor eax, eax
mov dword [esp + 0x144], eax
mov eax, 0xf
mov dword [esp + 0x154], ebx
mov dword [esp + 0x158], ebx
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x160], ebx
mov dword [esp + 0x17c], eax
mov dword [esp + 0x178], ebx
mov byte [esp + 0x168], bl
mov dword [esp + 0x1ac], eax
mov dword [esp + 0x1a8], ebx
mov byte [esp + 0x198], bl
mov byte [esp + 0x1b0], 1
mov byte [esp + 0x1b1], bl
mov eax, 0xfffffe00
and dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebx
and dword [esp + 0x84], eax
mov dword [esp + 0x88], ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x170]
mov byte [esp + 0x1d4], 9
call fcn.00401310
cmp dword [esp + 0x17c], 0x10
mov eax, dword [esp + 0x168]
jae 0x40c1ad
lea eax, [esp + 0x168]
mov ecx, dword [esp + 0x178]
lea edx, [esp + 0x34]
push edx
add ecx, eax
push ecx
push eax
lea edi, [esp + 0x130]
call fcn.0049c235
test al, al
jne 0x40c20f
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1c8], 7
call fcn.0049ae2d
lea ecx, [esp + 0x34]
mov byte [esp + 0x1c8], 5
call fcn.0049ae2d
call fcn.004023c0
cmp dword [esp + 0x120], 0x10
jb 0x40c816
mov eax, dword [esp + 0x10c]
push eax
jmp 0x40c80e
mov al, byte [esp + 0x3c]
cmp al, bl
je 0x40c21f
cmp al, 7
jne 0x40c7ce
mov edx, dword [esp + 0x1c]
and edx, 0xffffff01
or edx, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push str.sleep
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x1d4], 0xa
call fcn.0049b3a3
mov ecx, eax
mov byte [esp + 0x1c8], 0xb
call fcn.0049af32
lea ecx, [esp + 0xf4]
mov dword [esi + 0x444], eax
mov byte [esp + 0x1c8], 0xa
call fcn.0049ae2d
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c8], 9
call fcn.0049ae2d
mov edx, dword [esp + 0x1c]
and edx, 0xffffff01
or edx, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 0x52c564
lea ecx, [esp + 0xec]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x1d4], 0xc
call fcn.0049b3a3
mov ecx, eax
mov byte [esp + 0x1c8], 0xd
call fcn.0049af32
lea ecx, [esp + 0xe4]
mov dword [esi + 0x448], eax
mov byte [esp + 0x1c8], 0xc
call fcn.0049ae2d
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c8], 9
call fcn.0049ae2d
mov edx, dword [esp + 0x1c]
and edx, 0xffffff01
or edx, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push str.exec
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x1d4], 0xe
call fcn.0049b3a3
mov ecx, eax
mov byte [esp + 0x1c8], 0xf
call fcn.0049af32
lea ecx, [esp + 0xc4]
mov dword [esi + 0x400], eax
mov byte [esp + 0x1c8], 0xe
call fcn.0049ae2d
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c8], 9
call fcn.0049ae2d
mov edx, dword [esp + 0x1c]
and edx, 0xffffff01
or edx, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push str.faviexec
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x1d4], 0x10
call fcn.0049b3a3
mov ecx, eax
mov byte [esp + 0x1c8], 0x11
call fcn.0049af32
lea ecx, [esp + 0x94]
mov dword [esi + 0x404], eax
mov byte [esp + 0x1c8], 0x10
call fcn.0049ae2d
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c8], 9
call fcn.0049ae2d
mov edx, dword [esp + 0x1c]
and edx, 0xffffff01
or edx, 1
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push str.IsDaohang
lea ecx, [esp + 0xac]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x1d4], 0x12
call fcn.0049b3a3
mov ecx, eax
mov byte [esp + 0x1c8], 0x13
call fcn.0049af32
lea ecx, [esp + 0xa4]
mov dword [esi + 0x3fc], eax
mov byte [esp + 0x1c8], 0x12
call fcn.0049ae2d
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c8], 9
call fcn.0049ae2d
call fcn.004c01dc
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c487
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x58], eax
mov byte [esp + 0x1c8], 0x14
call fcn.004c01dc
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40c4b9
push 0x80004005
call fcn.00401ff0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x60], eax
mov byte [esp + 0x1c8], 0x15
mov ecx, dword [esp + 0x1c]
and ecx, 0xffffff04
or ecx, 0x104
test byte [0x550cec], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
jne 0x40c510
or dword [0x550cec], 1
push 0x51a30c
mov dword [0x550cdc], 0x5339e8
call fcn.004e088d
add esp, 4
mov ecx, dword [0x54cc58]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0xffffffffffffffff
push 0x52280c
call eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
push str.naviappurl
lea edx, [esp + 0xbc]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x1d4], 0x16
call fcn.0049b3a3
mov byte [esp + 0x1c8], 0x17
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x5c]
call fcn.004025a0
lea ecx, [esp + 0xb4]
mov byte [esp + 0x1c8], 0x16
call fcn.0049ae2d
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c8], 0x15
call fcn.0049ae2d
mov eax, dword [esp + 0x58]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push eax
mov dword [esp + 0x38], eax
call fcn.00403680
add eax, 0x10
mov dword [edi], eax
lea edi, [esi - 0x74]
add esp, 4
mov ecx, edi
call fcn.0040a2e0
mov eax, dword [esp + 0x1c]
and eax, 0xffffff04
or eax, 0x104
test byte [0x550cec], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
jne 0x40c5eb
or dword [0x550cec], 1
push 0x51a30c
mov dword [0x550cdc], 0x5339e8
call fcn.004e088d
add esp, 4
mov ecx, dword [0x54cc58]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push 0xffffffffffffffff
push 0x52280c
call eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
push ecx
push 0x522848
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x1d4], 0x18
call fcn.0049b3a3
mov byte [esp + 0x1c8], 0x19
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x64]
call fcn.004025a0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x1c8], 0x18
call fcn.0049ae2d
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c8], 0x15
call fcn.0049ae2d
mov eax, dword [esp + 0x60]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x68], esp
mov dword [esp + 0x2c], esp
push eax
mov dword [esp + 0x6c], eax
call fcn.00403680
mov ecx, dword [esp + 0x30]
add eax, 0x10
mov dword [ecx], eax
add esp, 4
mov ecx, edi
call fcn.0040a390
push str.softwarepromotion
lea edx, [esp + 0x38]
push edx
call fcn.0049b1dd
push eax
lea ecx, [esp + 0x18]
call fcn.0049acf2
mov byte [esp + 0x1c8], 0x1a
cmp byte [esp + 0x1c], bl
je 0x40c762
lea eax, [esp + 0x28]
push eax
lea edi, [esi + 0x3f4]
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x9c], esp
push 0x522764
mov dword [esp + 0x38], 0xffffffff
mov dword [edi], ebx
call fcn.00402480
mov byte [esp + 0x1d4], 0x1b
mov eax, dword [esi + 0x248]
push ecx
sub eax, 0x10
mov dword [esp + 0x9c], esp
mov dword [esp + 0x88], esp
push eax
call fcn.00403680
mov ecx, dword [esp + 0x8c]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x1dc], 0x1c
call fcn.00491110
push eax
mov byte [esp + 0x1e0], 0x1a
call fcn.004929b0
call fcn.00491110
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ebx
mov edi, dword [edi]
cmp edi, ebx
jle 0x40c762
mov edx, dword [esi - 0x54]
imul edi, edi, 0xea60
push ebx
push edi
push 0xbbc
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi - 0x54]
push ebx
push ebx
push 0x7fd
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c8], 0x15
call fcn.0049ae2d
mov eax, dword [esp + 0x64]
mov byte [esp + 0x1c8], 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
mov byte [esp + 0x1c8], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c7ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1c8], 7
call fcn.0049ae2d
lea ecx, [esp + 0x34]
mov byte [esp + 0x1c8], 5
call fcn.0049ae2d
lea edi, [esp + 0x124]
call fcn.004023c0
cmp dword [esp + 0x120], 0x10
jb 0x40c816
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.004c0153
add esp, 4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x120], 0xf
mov dword [esp + 0x11c], ebx
mov byte [esp + 0x10c], bl
cmp eax, ebx
je 0x40c840
push eax
call fcn.004c0153
add esp, 4
mov byte [esp + 0x1c8], bl
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x40c858
push eax
call fcn.004c0153
add esp, 4
mov ecx, dword [esp + 0x2c]
push ebx
xor edx, edx
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], ebx
push 0x522764
mov word [ecx + 4], dx
call fcn.00401740
mov eax, dword [esp + 0x5c]
cmp eax, ebx
je 0x40c88c
mov eax, dword [eax]
cmp eax, ebx
je 0x40c88c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a8]
xor ecx, esp
call fcn.004df2ac
mov esp, ebp
pop ebp
ret 0x10