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

Disassembly:
push 0xffffffffffffffff
push 0x471f15
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.00413460
mov edi, 0x4930f8
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.00413860
test al, al
je 0x418979
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
mov esi, 0x4930f8
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.004565a0
push 0xff
lea eax, [esp + 0xac]
push 0x48699c
push eax
mov byte [esp + 0x1bc], 1
call fcn.00467c1a
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.00413460
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.00413860
test al, al
je 0x418a00
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 0x486928
mov byte [esp + 0x1d8], 2
call fcn.00412fa0
sub esp, 0x10
lea edx, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0xa0], esp
push edx
push 0x486a1c
mov byte [esp + 0x1e8], 3
call fcn.00412fa0
sub esp, 0x10
lea eax, [esp + 0x53]
mov ecx, esp
mov dword [esp + 0x78], esp
push eax
push 0x4930f8
mov byte [esp + 0x1f8], 4
call fcn.00412fa0
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 0x486a14
call fcn.0044e650
push esi
call fcn.0045ad10
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 0x486a14
call fcn.0044e650
push esi
call fcn.0045ad10
add esp, 8
lea ecx, [esp + 0xf4]
mov byte [esp + 0x210], 1
push ecx
mov ecx, 0x4937b8
call fcn.004572d0
mov ecx, dword [0x47814c]
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.00413260
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1b4], 1
call fcn.00413460
lea ecx, [esp + 0x3c]
call fcn.00452fc0
cmp ax, 2
jne 0x418b63
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x1b4], 0
call fcn.00413460
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, edi
mov dword [esp + 0x1b0], 0xffffffff
je 0x418b5d
push 0
mov ecx, esi
call fcn.00415000
add esi, 0x1c
cmp esi, edi
jne 0x418b49
mov esi, dword [esp + 0x2c]
push esi
jmp 0x419499
lea edx, [esp + 0x74]
lea ecx, [esp + 0x3c]
push edx
call fcn.004566e0
mov edi, dword [eax + 4]
test edi, edi
jne 0x418b7d
mov edi, 0x478288
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.00413460
lea ecx, [esp + 0xa8]
push ecx
call fcn.00467d6e
mov ecx, esp
mov dword [esp + 0x18], esp
push 6
push 0x48700c
mov byte [esp + 0x24], al
call fcn.0044e650
lea edx, [esp + 0x88]
push edx
call fcn.0045ad10
add esp, 8
mov al, byte [esp + 0x13]
mov edi, 0x4930f8
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 0x4930f8
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
call fcn.00413680
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.004134b0
xor ebx, ebx
mov dword [esp + 0x30], esi
cmp word [esp + 0x24], bx
je 0x418cff
mov ecx, dword [0x493740]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, ecx
shl eax, 4
add eax, 0x493100
inc ecx
push eax
mov dword [0x493740], ecx
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x28]
push edx
push eax
call fcn.0041aed0
mov ecx, dword [0x493740]
mov edi, eax
mov eax, ecx
shl eax, 4
add eax, 0x493100
inc ecx
push eax
mov dword [0x493740], ecx
call esi
cmp dword [0x493740], 0x64
jne 0x418cad
mov dword [0x493740], ebx
cmp di, bx
jl 0x419300
jne 0x418cff
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 0xb
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x486a0c
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 9
call fcn.004570c0
mov dword [esp + 0x24], ebx
push 1
lea edx, [esp + 0x60]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00412e80
sub esp, 0x10
lea eax, [esp + 0xa8]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
mov byte [esp + 0x1d8], 0xc
call fcn.00412e80
mov ecx, dword [0x4937c0]
mov byte [esp + 0x1d4], 9
call fcn.0045b710
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0xa8]
and ebx, 0xff
push ebx
push 0x48699c
push ecx
call fcn.00467c1a
add esp, 0xc
push 0
push 0xffff
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486580
call fcn.0044e650
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.00412fa0
push ecx
mov byte [esp + 0x1d0], 0xe
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x4869fc
call fcn.0044e650
mov ecx, dword [0x4937c0]
mov byte [esp + 0x1d0], 9
call fcn.0045bbe0
xor esi, esi
xor ebp, ebp
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x418ee1
mov ecx, dword [esp + 0x30]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp esi, edx
jae 0x418ee1
mov al, byte [edi + ebp]
push 0
cmp al, 1
push 0xffff
push esi
lea ecx, [esp + 0x34]
jne 0x418e71
call fcn.00413140
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0044e5c0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c0], 0xf
call fcn.00413140
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00412e80
push esi
lea ecx, [esp + 0x48]
mov byte [esp + 0x1d0], 0x10
call fcn.00413140
push ecx
add eax, 4
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call fcn.0044e5c0
jmp 0x418ec5
call fcn.00413140
push ecx
add eax, 8
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0044e5c0
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c0], 0x11
call fcn.00413140
sub esp, 0x10
add eax, 0xc
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00412e80
push ecx
mov byte [esp + 0x1d0], 0x12
mov ecx, esp
mov dword [esp + 0x58], esp
push 6
push 0x4869f4
call fcn.0044e650
mov ecx, dword [0x4937c0]
mov byte [esp + 0x1d0], 9
call fcn.0045bbe0
inc esi
add ebp, 0x1c
jmp 0x418dd4
mov ecx, dword [0x4937c0]
xor ebp, ebp
push ebp
call fcn.0045bea0
cmp ax, 0xb
je 0x419345
cmp ax, 9
jne 0x418f65
inc ebx
cmp ebx, 0xff
jle 0x418f5a
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 0x13
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x486a78
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 9
call fcn.004570c0
push 2
call fcn.0044b4f0
add esp, 4
jmp 0x418c29
mov al, byte [esp + 0x18]
inc al
jmp 0x4192e5
cmp ax, 8
jne 0x418fd0
mov al, byte [esp + 0x18]
test al, al
jne 0x418fc5
push ebp
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 0x14
mov ecx, esp
mov dword [esp + 0x2c], esp
push 6
push 0x486a78
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 9
call fcn.004570c0
push 2
call fcn.0044b4f0
add esp, 4
jmp 0x418c29
mov al, byte [esp + 0x18]
dec al
jmp 0x4192e5
cmp ax, 0xc
jne 0x4192f1
push 0xff
lea edx, [esp + 0xac]
push 0x48699c
push edx
call fcn.00467c1a
mov al, byte [esp + 0x1f]
push ecx
mov ebp, esp
lea edi, [esp + 0xb8]
or ecx, 0xffffffff
mov dword [esp + 0x24], esp
mov byte [ebp], al
xor eax, eax
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.00413860
test al, al
je 0x41904f
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 dword [ebp + 8], ebx
mov ebp, dword [ebp + 4]
add ebp, ebx
mov byte [ebp], 0
sub esp, 0x10
lea eax, [esp + 0x43]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
push 0x486928
mov byte [esp + 0x1d8], 0x15
call fcn.00412fa0
sub esp, 0x10
lea edx, [esp + 0x42]
mov ecx, esp
mov dword [esp + 0x68], esp
push edx
push 0x486a1c
mov byte [esp + 0x1e8], 0x16
call fcn.00412fa0
sub esp, 0x10
lea eax, [esp + 0x97]
mov ecx, esp
mov dword [esp + 0xb0], esp
push eax
push 0x4930f8
mov byte [esp + 0x1f8], 0x17
call fcn.00412fa0
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 0x486a14
call fcn.0044e650
push esi
call fcn.0045ad10
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 0x486a14
call fcn.0044e650
push esi
call fcn.0045ad10
add esp, 8
lea ecx, [esp + 0xf4]
mov byte [esp + 0x210], 9
push ecx
mov ecx, 0x4937b8
call fcn.004572d0
mov dx, word [eax]
mov ecx, dword [0x47814c]
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 0x419156
mov ebp, ecx
lea edx, [esp + 0x40]
cmp edx, esi
jne 0x41917b
push ecx
push ebp
lea ecx, [esp + 0x48]
call fcn.00413720
xor ebx, ebx
lea ecx, [esp + 0x40]
push ebx
push ebx
call fcn.00413720
jmp 0x419206
xor ebx, ebx
cmp ebp, ebx
jbe 0x4191ca
cmp ebp, eax
jne 0x4191ca
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x419191
mov eax, 0x478288
cmp byte [eax - 1], 0xfe
jae 0x4191ca
push 1
lea ecx, [esp + 0x44]
call fcn.00413460
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x4191ae
mov eax, 0x478288
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 0x419206
push 1
push ebp
lea ecx, [esp + 0x48]
call fcn.00413860
test al, al
je 0x419206
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x4191e6
mov esi, 0x478288
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 0x419236
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x41922d
cmp al, 0xff
je 0x41922d
dec al
mov byte [ecx], al
jmp 0x419236
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
call fcn.00452fc0
cmp ax, 2
je 0x418c29
lea edx, [esp + 0x74]
lea ecx, [esp + 0x3c]
push edx
call fcn.004566e0
mov edi, dword [eax + 4]
xor ebx, ebx
cmp edi, ebx
jne 0x41927a
mov edi, 0x478288
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 0x4192c3
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4192ba
cmp al, 0xff
je 0x4192ba
dec al
mov byte [ecx], al
jmp 0x4192c3
push ecx
call fcn.00467320
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.00467d6e
add esp, 4
mov byte [esp + 0x18], al
mov dword [esp + 0x24], 1
push 2
call fcn.0044b4f0
add esp, 4
jmp 0x418c29
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x1c0], 0xa
mov ecx, esp
mov dword [esp + 0x7c], esp
push 6
push 0x4869e4
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x1c0], 9
call fcn.004570c0
xor ebp, ebp
mov eax, dword [esp + 0x60]
cmp eax, ebp
je 0x41936a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x419361
cmp al, 0xff
je 0x419361
dec al
mov byte [ecx], al
jmp 0x41936a
push ecx
call fcn.00467320
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 0x41939e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x419395
cmp al, 0xff
je 0x419395
dec al
mov byte [ecx], al
jmp 0x41939e
push ecx
call fcn.00467320
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 0x4193d8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4193cf
cmp al, 0xff
je 0x4193cf
dec al
mov byte [ecx], al
jmp 0x4193d8
push ecx
call fcn.00467320
add esp, 4
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
cmp edi, eax
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x1b0], 0xffffffff
mov ebx, eax
mov dword [esp + 0x58], edi
je 0x419498
mov eax, dword [edi + 0x10]
lea esi, [edi + 0xc]
cmp eax, ebp
mov dword [esp + 0x1b0], 0x1c
je 0x419459
push eax
mov ecx, esi
call fcn.00413980
cmp byte [eax], 0
je 0x419446
mov edx, dword [esi + 4]
mov ecx, esi
push edx
call fcn.00413980
cmp byte [eax], 0xff
je 0x419446
mov eax, dword [esi + 4]
mov ecx, esi
push eax
call fcn.00413980
dec byte [eax]
jmp 0x419459
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
add ecx, 2
dec edx
push ecx
push edx
mov ecx, esi
call fcn.00413990
lea ecx, [edi + 8]
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov byte [esp + 0x1b0], 0x1b
call fcn.0044e6f0
lea ecx, [edi + 4]
mov dword [esp + 0x1b0], 0xffffffff
call fcn.0044e6f0
add edi, 0x1c
cmp edi, ebx
mov dword [esp + 0x58], edi
jne 0x419405
mov edi, dword [esp + 0x2c]
push edi
call fcn.00467320
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