Function at 0x418610
Capabilities:
Check for peb beingdebugged flag
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x463105
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov al, byte [esp + 2]
push ebx
mov byte [esp + 0x1c], al
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov cl, byte [esp + 0x12]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x34], esp
push eax
mov dword [esp + 0x1c4], eax
mov byte [ebx], cl
mov ecx, ebx
call fcn.00413440
mov edi, 0x481e18
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00413840
test al, al
je 0x4186a9
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x481e18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], ebp
mov ebx, dword [ebx + 4]
add ebx, ebp
mov byte [ebx], 0
push 0
lea ecx, [esp + 0x50]
call fcn.004478c0
push 0xff
lea eax, [esp + 0xac]
push 0x47599c
push eax
mov byte [esp + 0x1bc], 1
call fcn.00458e0a
push ecx
mov cl, byte [esp + 0x22]
mov ebx, esp
mov dword [esp + 0x34], esp
push 0
mov byte [ebx], cl
mov ecx, ebx
call fcn.00413440
lea edi, [esp + 0xb8]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00413840
test al, al
je 0x418730
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0xb8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
add ebp, eax
mov byte [ebp], 0
sub esp, 0x10
lea eax, [esp + 0x32]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
push 0x475928
mov byte [esp + 0x1d8], 2
call fcn.00412fb0
sub esp, 0x10
lea edx, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0xa0], esp
push edx
push 0x475a1c
mov byte [esp + 0x1e8], 3
call fcn.00412fb0
sub esp, 0x10
lea eax, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
push 0x481e18
mov byte [esp + 0x1f8], 4
call fcn.00412fb0
sub esp, 0x10
mov byte [esp + 0x200], 5
mov esi, esp
mov dword [esp + 0x6c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 6
push 0x475a14
call fcn.0043f770
push esi
call fcn.0044c070
sub esp, 8
mov byte [esp + 0x210], 6
mov esi, esp
mov dword [esp + 0x74], esp
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push 6
push 0x475a14
call fcn.0043f770
push esi
call fcn.0044c070
add esp, 8
lea ecx, [esp + 0xf4]
mov byte [esp + 0x210], 1
push ecx
mov ecx, 0x4824d0
call fcn.004485f0
mov ecx, dword [0x46814c]
mov dx, word [eax]
push ecx
add eax, 4
push 0
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1bc], 7
mov word [esp + 0x48], dx
call fcn.00413240
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1b4], 1
call fcn.00413440
lea ecx, [esp + 0x3c]
call fcn.004440e0
cmp ax, 2
jne 0x418893
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x1b4], 0
call fcn.00413440
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, edi
mov dword [esp + 0x1b0], 0xffffffff
je 0x41888d
push 0
mov ecx, esi
call fcn.00414d80
add esi, 0x1c
cmp esi, edi
jne 0x418879
mov esi, dword [esp + 0x2c]
push esi
jmp 0x4191e7
lea edx, [esp + 0x74]
lea ecx, [esp + 0x3c]
push edx
call fcn.00447a00
mov edi, dword [eax + 4]
test edi, edi
jne 0x4188ad
mov edi, 0x468288
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa8]
mov eax, ecx
mov esi, edi
mov edi, edx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x78]
call fcn.00413440
lea ecx, [esp + 0xa8]
push ecx
call fcn.00458f5e
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x47600c
mov byte [esp + 0x24], al
call fcn.0043f770
lea edx, [esp + 0x88]
push edx
call fcn.0044c070
add esp, 8
mov al, byte [esp + 0x13]
mov edi, 0x481e18
mov byte [esp + 0x5c], al
xor eax, eax
or ecx, 0xffffffff
mov byte [esp + 0x1b0], 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x60], eax
push ecx
push 0x481e18
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
call fcn.00413660
mov byte [esp + 0x1b0], 9
mov dword [esp + 0x24], 1
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.00413490
xor ebp, ebp
mov dword [esp + 0x30], esi
cmp word [esp + 0x24], bp
je 0x418a2f
mov ecx, dword [0x482460]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, ecx
shl eax, 4
add eax, 0x481e20
inc ecx
push eax
mov dword [0x482460], ecx
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0041ac20
mov ecx, dword [0x482460]
mov edi, eax
mov eax, ecx
shl eax, 4
add eax, 0x481e20
inc ecx
push eax
mov dword [0x482460], ecx
call esi
cmp dword [0x482460], 0x64
jne 0x4189dd
mov dword [0x482460], ebp
cmp di, bp
jl 0x419051
jne 0x418a2f
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 0xb
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x475a0c
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 9
call fcn.004483e0
mov dword [esp + 0x24], ebp
push 1
lea edx, [esp + 0x60]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00412e90
sub esp, 0x10
lea eax, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0x1d8], 0xc
call fcn.00412e90
mov ecx, dword [0x4824d8]
mov byte [esp + 0x1d4], 9
call fcn.0044ca70
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0xa8]
and edi, 0xff
push edi
push 0x47599c
push ecx
call fcn.00458e0a
add esp, 0xc
push ebp
push 0xffff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475580
call fcn.0043f770
sub esp, 0x10
lea edx, [esp + 0x2f]
mov ecx, esp
mov dword [esp + 0x38], esp
lea eax, [esp + 0xc4]
push edx
push eax
mov byte [esp + 0x1d4], 0xd
call fcn.00412fb0
push ecx
mov byte [esp + 0x1d0], 0xe
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x4759fc
call fcn.0043f770
mov ecx, dword [0x4824d8]
mov byte [esp + 0x1d0], 9
call fcn.0044cf40
xor esi, esi
xor ebx, ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x418c35
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x418c35
push esi
lea ecx, [esp + 0x2c]
call fcn.00413150
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.0043f6e0
call fcn.00425b40
mov edx, dword [esp + 0x30]
add esp, 4
lea ecx, [esp + 0x28]
mov al, byte [edx + ebx]
push ebp
cmp al, 1
push 0xffff
push esi
jne 0x418bc5
call fcn.00413150
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0043f6e0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c0], 0xf
call fcn.00413150
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00412e90
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x1d0], 0x10
call fcn.00413150
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.0043f6e0
jmp 0x418c19
call fcn.00413150
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0043f6e0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c0], 0x11
call fcn.00413150
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00412e90
push ecx
mov byte [esp + 0x1d0], 0x12
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x4759f4
call fcn.0043f770
mov ecx, dword [0x4824d8]
mov byte [esp + 0x1d0], 9
call fcn.0044cf40
inc esi
add ebx, 0x1c
jmp 0x418b03
mov ecx, dword [0x4824d8]
push ebp
call fcn.0044d200
cmp ax, 0xb
je 0x419094
cmp ax, 9
jne 0x418cb7
inc edi
cmp edi, 0xff
jle 0x418cac
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 0x13
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x475a78
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 9
call fcn.004483e0
push 2
call fcn.0043cc50
add esp, 4
jmp 0x418959
mov al, byte [esp + 0x18]
inc al
jmp 0x419036
cmp ax, 8
jne 0x418d22
mov al, byte [esp + 0x18]
test al, al
jne 0x418d17
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x475a78
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 9
call fcn.004483e0
push 2
call fcn.0043cc50
add esp, 4
jmp 0x418959
mov al, byte [esp + 0x18]
dec al
jmp 0x419036
cmp ax, 0xc
jne 0x419042
push 0xff
lea eax, [esp + 0xac]
push 0x47599c
push eax
call fcn.00458e0a
push ecx
mov cl, byte [esp + 0x23]
mov ebp, esp
xor eax, eax
lea edi, [esp + 0xb8]
mov dword [esp + 0x24], esp
mov byte [ebp], cl
or ecx, 0xffffffff
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00413840
test al, al
je 0x418da0
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0xb8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
add ebx, eax
mov byte [ebx], 0
sub esp, 0x10
lea eax, [esp + 0x43]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
push 0x475928
mov byte [esp + 0x1d8], 0x15
call fcn.00412fb0
sub esp, 0x10
lea edx, [esp + 0x42]
mov ecx, esp
mov dword [esp + 0x68], esp
push edx
push 0x475a1c
mov byte [esp + 0x1e8], 0x16
call fcn.00412fb0
sub esp, 0x10
lea eax, [esp + 0x97]
mov ecx, esp
mov dword [esp + 0xb0], esp
push eax
push 0x481e18
mov byte [esp + 0x1f8], 0x17
call fcn.00412fb0
sub esp, 0x10
mov byte [esp + 0x200], 0x18
mov esi, esp
mov dword [esp + 0xbc], esp
push ecx
mov ecx, esp
mov dword [esp + 0xa4], esp
push 6
push 0x475a14
call fcn.0043f770
push esi
call fcn.0044c070
sub esp, 8
mov byte [esp + 0x210], 0x19
mov esi, esp
mov dword [esp + 0xb0], esp
push ecx
mov ecx, esp
mov dword [esp + 0xb4], esp
push 6
push 0x475a14
call fcn.0043f770
push esi
call fcn.0044c070
add esp, 8
lea ecx, [esp + 0xf4]
mov byte [esp + 0x210], 9
push ecx
mov ecx, 0x4824d0
call fcn.004485f0
mov dx, word [eax]
mov ecx, dword [0x46814c]
lea esi, [eax + 4]
mov word [esp + 0x3c], dx
mov byte [esp + 0x1b0], 0x1a
mov eax, dword [esi + 8]
mov ebp, eax
cmp ecx, ebp
jae 0x418ea7
mov ebp, ecx
lea edx, [esp + 0x40]
cmp edx, esi
jne 0x418ecc
push ecx
push ebp
lea ecx, [esp + 0x48]
call fcn.00413700
xor ebx, ebx
lea ecx, [esp + 0x40]
push ebx
push ebx
call fcn.00413700
jmp 0x418f57
xor ebx, ebx
cmp ebp, ebx
jbe 0x418f1b
cmp ebp, eax
jne 0x418f1b
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x418ee2
mov eax, 0x468288
cmp byte [eax - 1], 0xfe
jae 0x418f1b
push 1
lea ecx, [esp + 0x44]
call fcn.00413440
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x418eff
mov eax, 0x468288
mov dword [esp + 0x44], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x48], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x4c], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x418f57
push 1
push ebp
lea ecx, [esp + 0x48]
call fcn.00413840
test al, al
je 0x418f57
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x418f37
mov esi, 0x468288
mov edi, dword [esp + 0x44]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x48], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x1b0], 9
cmp eax, ebx
je 0x418f87
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x418f7e
cmp al, 0xff
je 0x418f7e
dec al
mov byte [ecx], al
jmp 0x418f87
push ecx
call fcn.00458510
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.004440e0
cmp ax, 2
je 0x418959
lea edx, [esp + 0x74]
lea ecx, [esp + 0x3c]
push edx
call fcn.00447a00
mov edi, dword [eax + 4]
xor ebx, ebx
cmp edi, ebx
jne 0x418fcb
mov edi, 0x468288
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x78]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x419014
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41900b
cmp al, 0xff
je 0x41900b
dec al
mov byte [ecx], al
jmp 0x419014
push ecx
call fcn.00458510
add esp, 4
lea ecx, [esp + 0xa8]
mov dword [esp + 0x78], ebx
push ecx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
call fcn.00458f5e
add esp, 4
mov byte [esp + 0x18], al
mov dword [esp + 0x24], 1
push 2
call fcn.0043cc50
add esp, 4
jmp 0x418959
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push 6
push 0x475710
call fcn.0043f770
push ecx
mov byte [esp + 0x1c0], 0xa
mov ecx, esp
mov dword [esp + 0x7c], esp
push 6
push 0x4759e4
call fcn.0043f770
mov ecx, 0x4824d0
mov byte [esp + 0x1c0], 9
call fcn.004483e0
mov eax, dword [esp + 0x60]
cmp eax, ebp
je 0x4190b9
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4190b0
cmp al, 0xff
je 0x4190b0
dec al
mov byte [ecx], al
jmp 0x4190b9
push ecx
call fcn.00458510
add esp, 4
mov eax, dword [esp + 0x88]
mov dword [esp + 0x60], ebp
cmp eax, ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
je 0x4190ed
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4190e4
cmp al, 0xff
je 0x4190e4
dec al
mov byte [ecx], al
jmp 0x4190ed
push ecx
call fcn.00458510
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [esp + 0x88], ebp
cmp eax, ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
je 0x419127
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41911e
cmp al, 0xff
je 0x41911e
dec al
mov byte [ecx], al
jmp 0x419127
push ecx
call fcn.00458510
add esp, 4
mov edi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
or ebp, 0xffffffff
cmp edi, eax
mov dword [esp + 0x1b0], ebp
mov ebx, eax
mov dword [esp + 0x58], edi
je 0x4191e6
mov eax, dword [edi + 0x10]
lea esi, [edi + 0xc]
test eax, eax
mov dword [esp + 0x1b0], 0x1c
je 0x4191a9
push eax
mov ecx, esi
call fcn.00413960
cmp byte [eax], 0
je 0x419196
mov edx, dword [esi + 4]
mov ecx, esi
push edx
call fcn.00413960
cmp byte [eax], 0xff
je 0x419196
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.00413960
dec byte [eax]
jmp 0x4191a9
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
add ecx, 2
dec edx
push ecx
push edx
mov ecx, esi
call fcn.00425540
xor eax, eax
lea ecx, [edi + 8]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov byte [esp + 0x1b0], 0x1b
call fcn.0043f810
lea ecx, [edi + 4]
mov dword [esp + 0x1b0], ebp
call fcn.0043f810
add edi, 0x1c
cmp edi, ebx
mov dword [esp + 0x58], edi
jne 0x419155
mov edi, dword [esp + 0x2c]
push edi
call fcn.00458510
mov ecx, dword [esp + 0x1ac]
add esp, 4
mov ax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret