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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x43919b
mov eax, dword fs:[0]
push eax
sub esp, 0x568
mov eax, dword [0x44dc54]
xor eax, esp
mov dword [esp + 0x530], eax
push ebx
push esi
push edi
mov eax, dword [0x44dc54]
xor eax, esp
push eax
lea eax, [esp + 0x578]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x50], eax
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x58], ebx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4034a0
sub eax, ecx
sar eax, 1
mov edx, eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x3c], eax
mov byte [esp + 0x40], 1
mov dword [esp + 0x38], ebx
lea edi, [eax + 0x25]
mov dword [esp + 0x580], ebx
mov dword [esp + 0x48], 0xffffffff
call fcn.00402e90
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x34], edi
je 0x403708
jmp 0x4034f8
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
lea eax, [edx + ebx*2]
mov ecx, edi
sub ecx, ebx
mov ebx, dword [esp + 0x50]
push eax
mov eax, dword [ebp + 0xc]
push ebx
lea edx, [esp + 0x60]
call fcn.00402eb0
add esp, 8
test al, al
je 0x40398a
mov ecx, dword [esp + 0x30]
lea edi, [ecx + edi*2]
mov dword [esp + 0x54], edi
movzx edi, word [edi + 2]
mov ebx, 2
mov eax, edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], ebx
xor esi, esi
mov byte [esp + 0x2b], 0
call fcn.00402f30
test al, al
je 0x403638
or esi, 0xffffffff
cmp dword [esp + 0x44], esi
jne 0x403586
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
movzx eax, word [eax + edx*2 + 4]
mov byte [esp + 0x2b], 1
call fcn.00402f30
test al, al
mov dword [esp + 0x2c], 3
je 0x4039cb
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x44]
lea edx, [ebx + ecx]
lea edi, [eax + edx*2]
mov ax, word [edi]
lea ecx, [esp + 0x44]
call fcn.00402f30
test al, al
je 0x4035d5
jmp 0x4035b0
mov edx, dword [esp + 0x44]
mov ax, word [edi + 2]
lea ecx, [esi + esi*4]
lea esi, [edx + ecx*2]
add edi, 2
lea ecx, [esp + 0x44]
add ebx, 1
call fcn.00402f30
test al, al
jne 0x4035b0
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x6c]
add ebx, edx
push ecx
lea ebx, [eax + ebx*2]
call fcn.004031b0
add esp, 8
test al, al
je 0x403600
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add eax, edx
movzx edi, word [ecx + eax*2]
mov edx, edi
call fcn.00403260
test al, al
jne 0x403633
lea eax, [esi - 1]
test eax, eax
mov dword [esp + 0x48], eax
jl 0x403a05
mov edi, 0x73
jmp 0x403638
add dword [esp + 0x2c], 1
mov edx, dword [0x43d0b4]
mov ax, word [0x43d0b8]
push 0x3fa
lea ecx, [esp + 0x146]
push 0
push ecx
mov dword [esp + 0x148], edx
mov word [esp + 0x14c], ax
call fcn.00423a10
mov ebx, dword [esp + 0x54]
add esp, 0xc
cmp ebx, 0xffffffff
je 0x403768
cmp ebx, dword [esp + 0x3c]
jl 0x4036a6
lea ecx, [ecx]
mov eax, dword [esp + 0x4c]
add dword [eax], 4
mov eax, dword [eax]
mov edx, dword [eax - 4]
push 1
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x5c], edx
call fcn.00403330
cmp ebx, dword [esp + 0x3c]
jge 0x403680
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + ebx*4]
test edx, edx
jne 0x4036b6
mov edx, 0x43d0a4
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x50]
push edx
lea ebx, [ecx + eax]
mov eax, dword [ebp + 0xc]
or edi, 0xffffffff
push esi
mov ecx, edi
lea edx, [esp + 0x60]
call fcn.00402eb0
add esp, 8
test al, al
je 0x403a1f
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x48], edi
mov edi, 0x25
mov eax, ebx
call fcn.00402e90
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
jne 0x4034f4
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x50]
lea eax, [edx + ebx*2]
push eax
mov eax, dword [ebp + 0xc]
push edi
or ecx, 0xffffffff
lea edx, [esp + 0x60]
call fcn.00402eb0
mov esi, dword [esp + 0x40]
add esp, 8
test esi, esi
mov dword [esp + 0x580], 0xffffffff
je 0x403761
cmp byte [esp + 0x40], 0
je 0x403758
mov ecx, dword [esp + 0x3c]
lea edx, [ecx*4]
push edx
push 0
push esi
call fcn.00423a10
add esp, 0xc
push esi
call fcn.00407c22
add esp, 4
mov eax, edi
jmp 0x403a57
cmp di, 0x25
jne 0x403778
mov edx, 0x43d0a0
jmp 0x4036b6
cmp di, 0x73
jne 0x403869
mov eax, dword [esp + 0x4c]
add dword [eax], 4
mov eax, dword [eax]
mov edx, dword [eax - 4]
test edx, edx
jne 0x403797
mov edx, str.NULL
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4037a0
sub eax, edi
sar eax, 1
mov edi, eax
cmp esi, edi
jle 0x4036ad
cmp esi, 0x200
jae 0x4036ad
cmp byte [esp + 0x2b], cl
je 0x403812
push edi
push edx
lea edx, [esp + 0x144]
push edx
call fcn.004032f0
add esp, 0xc
cmp edi, esi
jge 0x403853
lea edx, [esp + edi*2 + 0x13c]
mov ecx, esi
sub ecx, edi
shr ecx, 1
mov edi, edx
mov eax, 0x200020
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov word [esp + esi*2 + 0x13c], 0
lea edx, [esp + 0x13c]
jmp 0x4036b6
mov ebx, esi
sub ebx, edi
xor eax, eax
test ebx, ebx
jle 0x403835
mov ecx, ebx
shr ecx, 1
mov eax, 0x200020
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, ebx
mov ecx, esi
sub ecx, eax
push ecx
push edx
mov edx, 0x200
sub edx, eax
push edx
lea eax, [esp + eax*2 + 0x148]
push eax
call fcn.0042427c
add esp, 0x10
mov word [esp + esi*2 + 0x13c], 0
lea edx, [esp + 0x13c]
jmp 0x4036b6
push 0x60
lea ecx, [esp + 0x74]
push 0
push ecx
mov dword [esp + 0x78], 0x583025
call fcn.00423a10
mov edi, dword [esp + 0x60]
lea edx, [esp + 0x54]
push 0x64
push edx
lea ebx, [esp + 0x80]
mov dword [esp + 0x5c], 0
call fcn.004030b0
add esp, 0x14
test al, al
jne 0x4038f0
push 2
mov eax, edi
push eax
lea ecx, [esp + 0x144]
push 0x200
push ecx
call fcn.0042427c
xor eax, eax
add esp, 0x10
cmp word [esp + 0x13e], 0x25
mov word [esp + 0x140], ax
jne 0x4038dc
mov word [esp + 0x13e], ax
mov dword [esp + 0x2c], 2
lea edx, [esp + 0x13c]
jmp 0x4036b6
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x4c]
jne 0x403920
add dword [eax], 8
mov eax, dword [eax]
fld qword [eax - 8]
sub esp, 8
lea edx, [esp + 0x74]
fstp qword [esp]
push edx
lea eax, [esp + 0xe0]
push eax
call fcn.00403310
add esp, 0x10
jmp 0x40393e
add dword [eax], 4
mov eax, dword [eax]
mov eax, dword [eax - 4]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xdc]
push edx
call fcn.00403310
add esp, 0xc
push 0x200
lea eax, [esp + 0xd8]
push eax
push 0x200
lea ecx, [esp + 0x148]
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.004245eb
lea eax, [esp + 0x80]
add esp, 0x14
lea edx, [esp + 0x13c]
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403976
sub eax, esi
mov dword [esp + 0x2c], eax
jmp 0x4036b6
mov esi, dword [esp + 0x38]
test esi, esi
mov dword [esp + 0x580], 0xffffffff
je 0x4039c4
cmp byte [esp + 0x40], 0
je 0x4039bb
mov eax, dword [esp + 0x3c]
lea ecx, [eax*4]
push ecx
push 0
push esi
call fcn.00423a10
add esp, 0xc
push esi
call fcn.00407c22
add esp, 4
mov eax, ebx
jmp 0x403a57
mov dword [esp + 0x580], esi
mov esi, dword [esp + 0x38]
test esi, esi
je 0x403a01
cmp byte [esp + 0x40], 0
je 0x4039f8
mov edx, dword [esp + 0x3c]
lea eax, [edx*4]
push eax
push 0
push esi
call fcn.00423a10
add esp, 0xc
push esi
call fcn.00407c22
add esp, 4
xor eax, eax
jmp 0x403a57
lea ecx, [esp + 0x38]
mov dword [esp + 0x580], 0xffffffff
call fcn.00403400
mov eax, dword [esp + 0x50]
jmp 0x403a57
mov dword [esp + 0x580], edi
mov edi, dword [esp + 0x38]
test edi, edi
je 0x403a55
cmp byte [esp + 0x40], 0
je 0x403a4c
mov ecx, dword [esp + 0x3c]
lea edx, [ecx*4]
push edx
push 0
push edi
call fcn.00423a10
add esp, 0xc
push edi
call fcn.00407c22
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x578]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x530]
xor ecx, esp
call fcn.004237e7
mov esp, ebp
pop ebp
ret