Function at 0x4081d0
Capabilities:
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x18c], ecx
jmp 0x4081fa
mov eax, dword [ebp - 0x18c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x408214
mov edx, dword [ebp - 0x190]
movsx eax, byte [edx]
test eax, eax
jne 0x408240
mov edi, 0x40cb7c
mov edx, dword [ebp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x4087f8
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov edi, dword [ebp + 0x10]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x18]
mov eax, dword ds:[eax + 0x30]
movzx eax, byte ds:[eax + 2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0x184]
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [ebp - 0x122]
and ecx, 0xffff
imul eax, ecx
add esi, eax
mov edx, dword [ebp - 0x148]
xor edx, 0xfcf
add esi, edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [ebp - 0x20]
imul edi, eax
mov eax, dword [ebp - 0x148]
add eax, dword [ebp - 0x144]
add edi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
add edi, eax
xor esi, edi
xor esi, 0xf1235a5
imul esi, esi, 3
mov ecx, dword [ebp - 0x124]
and ecx, 0xffff
mov edx, dword [ebp - 4]
add edx, esi
add ecx, edx
mov dword [ebp - 0x134], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
imul esi, eax
mov eax, dword [ebp - 0x124]
and eax, 0xffff
imul esi, eax
mov ecx, dword [ebp - 0x144]
xor ecx, 0x52fe
add esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [ebp - 0x20]
add edi, eax
mov edx, dword [ebp - 0x148]
imul edx, dword [ebp - 0x144]
add edi, edx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor eax, 0xf1231fe
xor edx, edx
mov ecx, 0x3a7
div ecx
add edi, eax
xor esi, edi
imul esi, esi, 3
mov edx, dword [ebp - 0x126]
and edx, 0xffff
add esi, edx
sub esi, dword [ebp - 4]
mov dword [ebp - 0x13c], esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0x188], eax
mov ecx, dword [ebp - 0x188]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebp - 0x1c], 0xd2
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x13c]
xor ecx, 0x6cf523ae
push ecx
mov edx, dword [ebp - 0x134]
xor edx, 0x7f1230cc
push edx
mov eax, dword [ebp - 0x190]
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
push str.board_canlogin.php_id_spw_scheck_p_pdd_uver_d
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x120]
push edx
push str.kokona.me
call fcn.00407c00
add esp, 0x10
test eax, eax
jne 0x408442
mov eax, dword [ebp + 0x14]
push eax
push 0x40cb24
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov byte [edx - 1], 0
xor eax, eax
jmp 0x4087f8
cmp dword [ebp - 0xc], 0
je 0x40846f
mov eax, dword [ebp + 0x14]
push eax
push 0x40cb04
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov byte [edx - 1], 0
xor eax, eax
jmp 0x4087f8
push str._r_n_r_n
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x408495
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp - 0x14], ecx
jmp 0x4084c0
push 0x40ca58
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4084b7
xor eax, eax
jmp 0x4087f8
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
cmp edx, 0x3c
je 0x4084d5
mov eax, dword [ebp - 0x14]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x4084fc
mov edx, dword [ebp + 0x14]
push edx
push 0x40cae4
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp + 0x14]
mov byte [ecx - 1], 0
xor eax, eax
jmp 0x4087f8
mov edx, dword [ebp - 0x14]
movsx eax, byte [edx]
cmp eax, 0x40
je 0x40854b
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x17c], ecx
mov edx, dword [ebp - 0x17c]
mov eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x17c]
movsx eax, byte [edx]
test eax, eax
je 0x408544
mov ecx, dword [ebp - 0x17c]
add ecx, 1
mov dword [ebp - 0x17c], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x408510
xor eax, eax
jmp 0x4087f8
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
add ecx, 0x20
mov dword [ebp - 0x140], ecx
push 0x40cae0
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4085ab
mov eax, dword [ebp + 0x14]
push eax
push 0x40cabc
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov byte [edx - 1], 0
xor eax, eax
jmp 0x4087f8
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
push 0x40cae0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
jne 0x408602
mov eax, dword [ebp + 0x14]
push eax
push 0x40ca98
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov byte [edx - 1], 0
xor eax, eax
jmp 0x4087f8
mov eax, dword [ebp - 0x150]
mov byte [eax], 0
mov ecx, dword [ebp - 0x150]
add ecx, 1
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x13c]
xor ecx, 0x6cf523ae
xor ecx, 0x4cac8080
push ecx
mov edx, dword [ebp - 0x134]
xor edx, 0x7f1230cc
xor edx, 0x4acc7059
push edx
mov eax, dword [ebp - 0x14c]
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
push str._s__d_:_ERROR_NUMBER_p_p__v_d
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x178]
push ecx
call fcn.00406d20
add esp, 8
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x120]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x138], 0
jmp 0x4086c1
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0x20
jge 0x40871c
mov eax, dword [ebp - 0x138]
movsx ecx, byte [ebp + eax - 0x178]
mov edx, dword [ebp - 0x154]
add edx, dword [ebp - 0x138]
movsx eax, byte [edx]
cmp ecx, eax
je 0x4086ef
mov byte [ebp - 0x18], 1
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
test ecx, ecx
je 0x40871a
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0xa
idiv ecx
add edx, 0x30
mov eax, dword [ebp - 0x138]
mov byte [ebp + eax - 0x178], dl
jmp 0x4086b2
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
test ecx, ecx
je 0x40876d
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x180], edx
mov eax, dword [ebp - 0x180]
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 0x180]
movsx ecx, byte [eax]
test ecx, ecx
je 0x408766
mov edx, dword [ebp - 0x180]
add edx, 1
mov dword [ebp - 0x180], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x408732
xor eax, eax
jmp 0x4087f8
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x150]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x4087a4
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x150]
add edx, 1
mov dword [ebp - 0x150], edx
jmp 0x408773
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14c]
mov dword [eax], ecx
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4087e4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x64
div ecx
mov eax, edx
add eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10