Function at 0x40c0b0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov esi, esp
mov dword [esi + 0x68], ebp
mov edi, dword [ebp + 0x14]
mov dword [esi + 0x6c], esp
mov dword [esi + 0x78], 0xffffffff
lea eax, [esi + 0x70]
mov dword [esi + 0x74], 0x413040
mov edx, dword fs:[0]
mov dword [esi + 0x70], edx
mov dword fs:[0], eax
xorpd xmm0, xmm0
movapd xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov eax, 0x3000
and eax, dword [edi + 0x14]
cmp eax, 0x3000
mov dword [esi + 0x5c], ecx
jne 0x40c122
mov ebx, 0xd
mov dword [esi + 0x2c], 0xffffffff
jmp 0x40c156
mov ebx, dword [edi + 0x18]
mov edi, dword [edi + 0x1c]
cmp ebx, 1
mov edx, edi
sbb edx, 0
jl 0x40c137
mov dword [esi + 0x2c], ebx
jmp 0x40c153
or edi, ebx
je 0x40c145
mov dword [esi + 0x2c], ebx
mov ebx, 6
jmp 0x40c153
xor ebx, ebx
test eax, eax
sete bl
mov dword [esi + 0x2c], 0
mov edi, dword [ebp + 0x14]
movsd xmm1, qword [ebp + 0x1c]
cmp eax, 0x2000
jne 0x40c1af
movapd xmm0, xmmword [0x437760]
andpd xmm0, xmm1
ucomisd xmm0, qword [0x437770]
jbe 0x40c1af
lea eax, [esi + 0x50]
mov dword [esp + 8], eax
movsd qword [esp], xmm1
call fcn.0042294d
fstp st(0)
movsd xmm1, qword [ebp + 0x1c]
mov eax, dword [esi + 0x50]
mov ecx, eax
neg ecx
cmovs ecx, eax
imul eax, ecx, 0x7597
shr eax, 5
mov ecx, 0xa7c5ac5
mul ecx
shr edx, 7
add ebx, edx
add ebx, 0x32
je 0x40c1e6
cmp ebx, 0xf
jbe 0x40c1f0
mov dword [esi + 0x78], 0
mov al, byte [esi + 0x50]
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], ebx
mov dword [esp + 0xc], 0
lea ecx, [esi + 0x30]
call fcn.0040eee0
sub esp, 0x10
mov edi, dword [ebp + 0x14]
jmp 0x40c20f
mov dword [esi + 0x40], ebx
mov byte [esi + ebx + 0x30], 0
jmp 0x40c214
mov dword [esi + 0x40], ebx
mov dword [esp + 8], ebx
lea eax, [esi + 0x30]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0041a040
mov byte [esi + ebx + 0x30], 0
movsd xmm1, qword [ebp + 0x1c]
mov ecx, dword [edi + 0x14]
mov byte [esi + 0x54], 0x25
test cl, 0x20
jne 0x40c22a
lea eax, [esi + 0x55]
test cl, 0x10
jne 0x40c236
jmp 0x40c23c
lea eax, [esi + 0x56]
mov byte [esi + 0x55], 0x2b
test cl, 0x10
je 0x40c23c
mov byte [eax], 0x23
add eax, 1
mov word [eax], 0x2a2e
mov byte [eax + 2], 0x4c
mov edx, ecx
and edx, 0x3000
test cl, 4
jne 0x40c275
cmp edx, 0x1000
je 0x40c29c
cmp edx, 0x2000
je 0x40c298
cmp edx, 0x3000
jne 0x40c2b2
mov dword [esi + 0x78], 0
mov cl, 0x61
jmp 0x40c2c6
cmp edx, 0x1000
je 0x40c2a7
cmp edx, 0x2000
je 0x40c298
cmp edx, 0x3000
jne 0x40c2bd
mov dword [esi + 0x78], 0
mov cl, 0x41
jmp 0x40c2c6
mov cl, 0x66
jmp 0x40c2c6
mov dword [esi + 0x78], 0
mov cl, 0x65
jmp 0x40c2c6
mov dword [esi + 0x78], 0
mov cl, 0x45
jmp 0x40c2c6
mov dword [esi + 0x78], 0
mov cl, 0x67
jmp 0x40c2c6
mov dword [esi + 0x78], 0
mov cl, 0x47
mov byte [eax + 3], cl
mov byte [eax + 4], 0
mov eax, dword [esi + 0x40]
cmp dword [esi + 0x44], 0x10
lea edi, [esi + 0x30]
mov ecx, edi
jb 0x40c2de
mov ecx, dword [esi + 0x30]
lea ebx, [ebp + 0xc]
movsd qword [esp + 0x10], xmm1
mov edx, dword [esi + 0x2c]
mov dword [esp + 0xc], edx
lea edx, [esi + 0x54]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0040d890
cmp dword [esi + 0x44], 0x10
jb 0x40c30a
mov edi, dword [esi + 0x30]
movsd xmm0, qword [ebx]
movsd qword [esi + 0x60], xmm0
mov dword [esi + 0x78], 0
movsd xmm0, qword [esi + 0x60]
movsd qword [esp + 8], xmm0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
movsx eax, byte [ebp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x5c]
mov dword [esp], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
call fcn.0040e540
mov eax, dword [esi + 0x44]
cmp eax, 0x10
jb 0x40c384
mov ecx, dword [esi + 0x30]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x40c378
mov edi, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edi
cmp ecx, 0x20
jae 0x40c39a
add eax, 0x24
mov edx, eax
mov ecx, edi
mov dword [esp + 4], edx
mov dword [esp], ecx
call fcn.004132d5
mov eax, dword [esi + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
call fcn.00421374
nop
push ebp
sub esp, 0x20
lea esi, [ebp - 0x7c]
mov ebp, dword [esi + 0x68]
lea ecx, [esi + 0x30]
call fcn.00401e20
add esp, 0x20
pop ebp
ret