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

Disassembly:
push 0xffffffffffffffff
push 0x4766f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
mov al, byte [esp + 2]
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x28], al
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov cl, byte [esp + 0x12]
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x34], esp
push esi
mov dword [esp + 0x1c4], esi
mov byte [ebx], cl
mov ecx, ebx
call fcn.00401b10
mov edi, 0x494de8
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.00401c20
test al, al
je 0x40882b
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x494de8
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
xor esi, esi
mov byte [ebx], 0
push esi
lea ecx, [esp + 0x54]
call fcn.00448ff0
mov eax, dword [esp + 0x3c]
push 0xff
lea ecx, [esp + 0xac]
push 0x48a1c8
push ecx
mov byte [esp + 0x1bc], 1
mov byte [eax + 0x40], 0
call fcn.0046a470
mov dl, byte [esp + 0x1e]
push ecx
mov ebx, esp
mov dword [esp + 0x34], esp
push esi
mov ecx, ebx
mov byte [ebx], dl
call fcn.00401b10
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.00401c20
test al, al
je 0x4088b9
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0xb8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], ebp
mov ebx, dword [ebx + 4]
add ebx, ebp
xor esi, esi
mov byte [ebx], 0
sub esp, 0x10
lea edx, [esp + 0x32]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
push 0x48a1a0
mov byte [esp + 0x1d8], 2
call fcn.00401960
sub esp, 0x10
lea eax, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0x9c], esp
push eax
push 0x48a650
mov byte [esp + 0x1e8], 3
call fcn.00401960
sub esp, 0x10
lea edx, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0x78], esp
push edx
push 0x494de8
mov byte [esp + 0x1f8], 4
call fcn.00401960
sub esp, 0x10
mov byte [esp + 0x200], 5
mov edi, esp
mov dword [esp + 0x6c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x68], esp
push 6
push 0x48a648
call fcn.00447db0
push edi
call fcn.0044bc90
sub esp, 8
mov byte [esp + 0x210], 6
mov edi, esp
mov dword [esp + 0x74], esp
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push 6
push 0x48a648
call fcn.00447db0
push edi
call fcn.0044bc90
add esp, 8
lea eax, [esp + 0xf4]
mov ecx, 0x4987f0
mov byte [esp + 0x210], 1
push eax
call fcn.00449db0
mov edx, dword [0x47d170]
mov cx, word [eax]
push edx
add eax, 4
mov word [esp + 0x44], cx
push esi
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x1bc], 7
call fcn.00404b80
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1b4], 1
call fcn.00401b10
lea ecx, [esp + 0x40]
call fcn.00455810
cmp ax, 2
jne 0x408a19
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x1b4], 0
call fcn.00401b10
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
cmp edi, ebx
mov dword [esp + 0x1b0], 0xffffffff
je 0x40936f
push esi
mov ecx, edi
call fcn.004061f0
add edi, 0x1c
cmp edi, ebx
jne 0x408a05
jmp 0x40936b
lea eax, [esp + 0x74]
lea ecx, [esp + 0x40]
push eax
call fcn.00449130
mov edi, dword [eax + 4]
cmp edi, esi
jne 0x408a33
mov edi, 0x47d2a8
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.00401b10
lea ecx, [esp + 0xa8]
push ecx
call fcn.0046a672
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x48aa20
mov byte [esp + 0x24], al
call fcn.00447db0
lea edx, [esp + 0x88]
push edx
call fcn.0044bc90
add esp, 8
mov al, byte [esp + 0x13]
mov edi, 0x494de8
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 0x494de8
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
call fcn.00404db0
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.00404d80
xor ebp, ebp
mov dword [esp + 0x30], esi
cmp word [esp + 0x24], bp
je 0x408bb5
mov ecx, dword [0x498638]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, ecx
shl eax, 4
add eax, 0x497ff8
inc ecx
push eax
mov dword [0x498638], ecx
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0040adb0
mov ecx, dword [0x498638]
mov edi, eax
mov eax, ecx
shl eax, 4
add eax, 0x497ff8
inc ecx
push eax
mov dword [0x498638], ecx
call esi
cmp dword [0x498638], 0x64
jne 0x408b63
mov dword [0x498638], ebp
cmp di, bp
jl 0x4091d7
jne 0x408bb5
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x48a3a8
call fcn.00447db0
push ecx
mov byte [esp + 0x1c0], 0xb
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x48a65c
call fcn.00447db0
mov ecx, 0x4987f0
mov byte [esp + 0x1c0], 9
call fcn.00449ba0
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.004049e0
sub esp, 0x10
lea eax, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0x1d8], 0xc
call fcn.004049e0
mov ecx, dword [0x4987f8]
mov byte [esp + 0x1d4], 9
call fcn.004486a0
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0xa8]
and edi, 0xff
push edi
push 0x48a1c8
push ecx
call fcn.0046a470
add esp, 0xc
push ebp
push 0xffff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x48a290
call fcn.00447db0
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.00401960
push ecx
mov byte [esp + 0x1d0], 0xe
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x48a654
call fcn.00447db0
mov ecx, dword [0x4987f8]
mov byte [esp + 0x1d0], 9
call fcn.00448b50
xor esi, esi
xor ebx, ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x408dbb
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 0x408dbb
push esi
lea ecx, [esp + 0x2c]
call fcn.00404b60
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00447d20
call fcn.00430620
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 0x408d4b
call fcn.00404b60
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00447d20
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c0], 0xf
call fcn.00404b60
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.004049e0
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x1d0], 0x10
call fcn.00404b60
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.00447d20
jmp 0x408d9f
call fcn.00404b60
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00447d20
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c0], 0x11
call fcn.00404b60
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.004049e0
push ecx
mov byte [esp + 0x1d0], 0x12
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x48a664
call fcn.00447db0
mov ecx, dword [0x4987f8]
mov byte [esp + 0x1d0], 9
call fcn.00448b50
inc esi
add ebx, 0x1c
jmp 0x408c89
mov ecx, dword [0x4987f8]
push ebp
call fcn.00448e10
cmp ax, 0xb
je 0x40921d
cmp ax, 9
jne 0x408e3d
inc edi
cmp edi, 0xff
jle 0x408e32
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x48a3a8
call fcn.00447db0
push ecx
mov byte [esp + 0x1c0], 0x13
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x48a6b4
call fcn.00447db0
mov ecx, 0x4987f0
mov byte [esp + 0x1c0], 9
call fcn.00449ba0
push 2
call fcn.00445810
add esp, 4
jmp 0x408adf
mov al, byte [esp + 0x18]
inc al
jmp 0x4091bc
cmp ax, 8
jne 0x408ea8
mov al, byte [esp + 0x18]
test al, al
jne 0x408e9d
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x48a3a8
call fcn.00447db0
push ecx
mov byte [esp + 0x1c0], 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x48a6b4
call fcn.00447db0
mov ecx, 0x4987f0
mov byte [esp + 0x1c0], 9
call fcn.00449ba0
push 2
call fcn.00445810
add esp, 4
jmp 0x408adf
mov al, byte [esp + 0x18]
dec al
jmp 0x4091bc
cmp ax, 0xc
jne 0x4091c8
push 0xff
lea eax, [esp + 0xac]
push 0x48a1c8
push eax
call fcn.0046a470
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.00401c20
test al, al
je 0x408f26
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 0x48a1a0
mov byte [esp + 0x1d8], 0x15
call fcn.00401960
sub esp, 0x10
lea edx, [esp + 0x42]
mov ecx, esp
mov dword [esp + 0x68], esp
push edx
push 0x48a650
mov byte [esp + 0x1e8], 0x16
call fcn.00401960
sub esp, 0x10
lea eax, [esp + 0x9b]
mov ecx, esp
mov dword [esp + 0xac], esp
push eax
push 0x494de8
mov byte [esp + 0x1f8], 0x17
call fcn.00401960
sub esp, 0x10
mov byte [esp + 0x200], 0x18
mov esi, esp
mov dword [esp + 0xc0], esp
push ecx
mov ecx, esp
mov dword [esp + 0xa8], esp
push 6
push 0x48a648
call fcn.00447db0
push esi
call fcn.0044bc90
sub esp, 8
mov byte [esp + 0x210], 0x19
mov esi, esp
mov dword [esp + 0xb4], esp
push ecx
mov ecx, esp
mov dword [esp + 0xb8], esp
push 6
push 0x48a648
call fcn.00447db0
push esi
call fcn.0044bc90
add esp, 8
lea ecx, [esp + 0xf4]
mov byte [esp + 0x210], 9
push ecx
mov ecx, 0x4987f0
call fcn.00449db0
mov dx, word [eax]
mov ecx, dword [0x47d170]
lea esi, [eax + 4]
mov word [esp + 0x40], dx
mov byte [esp + 0x1b0], 0x1a
mov eax, dword [esi + 8]
mov ebp, eax
cmp ecx, ebp
jae 0x40902d
mov ebp, ecx
lea edx, [esp + 0x44]
cmp edx, esi
jne 0x409052
push ecx
push ebp
lea ecx, [esp + 0x4c]
call fcn.00404e50
xor ebx, ebx
lea ecx, [esp + 0x44]
push ebx
push ebx
call fcn.00404e50
jmp 0x4090dd
xor ebx, ebx
cmp ebp, ebx
jbe 0x4090a1
cmp ebp, eax
jne 0x4090a1
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x409068
mov eax, 0x47d2a8
cmp byte [eax - 1], 0xfe
jae 0x4090a1
push 1
lea ecx, [esp + 0x48]
call fcn.00401b10
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x409085
mov eax, 0x47d2a8
mov dword [esp + 0x48], eax
mov ecx, dword [esi + 8]
mov dword [esp + 0x4c], ecx
mov esi, dword [esi + 0xc]
mov dword [esp + 0x50], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x4090dd
push 1
push ebp
lea ecx, [esp + 0x4c]
call fcn.00401c20
test al, al
je 0x4090dd
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x4090bd
mov esi, 0x47d2a8
mov edi, dword [esp + 0x48]
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 + 0x48]
mov dword [esp + 0x4c], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x1b0], 9
cmp eax, ebx
je 0x40910d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x409104
cmp al, 0xff
je 0x409104
dec al
mov byte [ecx], al
jmp 0x40910d
push ecx
call fcn.00469f00
add esp, 4
lea ecx, [esp + 0x40]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.00455810
cmp ax, 2
je 0x408adf
lea edx, [esp + 0x74]
lea ecx, [esp + 0x40]
push edx
call fcn.00449130
mov edi, dword [eax + 4]
xor ebx, ebx
cmp edi, ebx
jne 0x409151
mov edi, 0x47d2a8
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 0x40919a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x409191
cmp al, 0xff
je 0x409191
dec al
mov byte [ecx], al
jmp 0x40919a
push ecx
call fcn.00469f00
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.0046a672
add esp, 4
mov byte [esp + 0x18], al
mov dword [esp + 0x24], 1
push 2
call fcn.00445810
add esp, 4
jmp 0x408adf
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push 6
push 0x48a3a8
call fcn.00447db0
push ecx
mov byte [esp + 0x1c0], 0xa
mov ecx, esp
mov dword [esp + 0x80], esp
push 6
push 0x48a640
call fcn.00447db0
mov ecx, 0x4987f0
mov byte [esp + 0x1c0], 9
call fcn.00449ba0
mov eax, dword [esp + 0x60]
cmp eax, ebp
je 0x409242
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x409239
cmp al, 0xff
je 0x409239
dec al
mov byte [ecx], al
jmp 0x409242
push ecx
call fcn.00469f00
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 0x409276
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x40926d
cmp al, 0xff
je 0x40926d
dec al
mov byte [ecx], al
jmp 0x409276
push ecx
call fcn.00469f00
add esp, 4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x88], ebp
cmp eax, ebp
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
je 0x4092b0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4092a7
cmp al, 0xff
je 0x4092a7
dec al
mov byte [ecx], al
jmp 0x4092b0
push ecx
call fcn.00469f00
add esp, 4
mov edi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x30]
or ebp, 0xffffffff
cmp edi, eax
mov dword [esp + 0x1b0], ebp
mov ebx, eax
mov dword [esp + 0x3c], edi
je 0x40936f
mov eax, dword [edi + 0x10]
lea esi, [edi + 0xc]
test eax, eax
mov dword [esp + 0x1b0], 0x1c
je 0x409332
push eax
mov ecx, esi
call fcn.00404f90
cmp byte [eax], 0
je 0x40931f
mov edx, dword [esi + 4]
mov ecx, esi
push edx
call fcn.00404f90
cmp byte [eax], 0xff
je 0x40931f
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.00404f90
dec byte [eax]
jmp 0x409332
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
add ecx, 2
dec edx
push ecx
push edx
mov ecx, esi
call fcn.00404fa0
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.00447e50
lea ecx, [edi + 4]
mov dword [esp + 0x1b0], ebp
call fcn.00447e50
add edi, 0x1c
cmp edi, ebx
mov dword [esp + 0x3c], edi
jne 0x4092de
mov edi, dword [esp + 0x2c]
push edi
call fcn.00469f00
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