Function at 0x40bfa0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
mov edx, dword [0x41ffec]
mov dword [ebp - 4], edx
push ebx
mov dword [ebp - 4], edx
push esi
mov esi, dword [ebp - 4]
sub esi, edx
cmp esi, 0x40
je 0x40bff9
or esi, 0x10
mov ebx, dword [ebp - 4]
mov dword [ebp - 4], ebx
test esi, 8
jne 0x40bff9
cmp esi, dword [ebp - 0x14]
jne 0x40bff9
mov eax, 0xef
cmp esi, eax
jne 0x40bff9
cmp esi, edx
jne 0x40bff9
mov ebx, dword [ebp - 4]
cmp ebx, esi
je 0x40bff9
xor ebx, 0x29b10000
mov eax, edx
mov dword [ebp - 4], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov edx, 0xac
add edx, 0x4f
cmp esi, eax
jne 0x40c037
cmp ebx, dword [ebp - 4]
je 0x40c037
mov ecx, dword [ebp - 4]
test ecx, 0x71
jne 0x40c037
mov ebx, dword [0x41ffec]
mov dword [ebp - 0x34], ecx
add ecx, 0x5d0a100
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x34], ebx
rdtsc
mov dword [ebp - 4], eax
mov edi, dword [0x41fcd4]
mov dword [ebp - 4], esi
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edi
mov edx, 0xaf
xor edx, 0xffffff8e
mov dword [ebp - 4], esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], eax
mov edi, esi
cmp edi, dword [ebp - 4]
je 0x40c074
cmp edi, dword [ebp - 0x48]
je 0x40c074
mov dword [ebp - 4], edi
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ebx
sub edi, 0xffffffda
mov eax, edi
cmp esi, 0x4d
je 0x40c09c
cmp eax, 0x16
jne 0x40c09c
mov ebx, dword [ebp - 0x30]
cmp ebx, 0x94f3
jne 0x40c09c
xor eax, edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], eax
sub ebx, 0xffffffcd
cmp ebx, dword [ebp - 0x2c]
je 0x40c0bc
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x10], edi
cmp ebx, dword [0x41fcd4]
jne 0x40c0bc
mov esi, eax
and ebx, edi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x10], edx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ebx
rdtsc
mov ebx, dword [ebp - 0x10]
sub ebx, 0x68
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x30], edx
mov ebx, ecx
xor ebx, 0xffffffad
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], esi
test ecx, 0x22
jne 0x40c0f1
mov dword [ebp - 0x3c], edi
mov edi, ebx
mov dword [ebp - 4], edi
sub eax, dword [ebp - 0x24]
mov edx, dword [0x41ffec]
cmp eax, dword [0x41ffec]
je 0x40c178
mov ecx, dword [ebp - 0x30]
xor edx, eax
cmp edx, 0x1484c15
je 0x40c178
mov esi, 0x1a
xor esi, 0xffffffae
cmp edx, ecx
je 0x40c178
mov edi, dword [ebp - 0x40]
test edi, 0xef
jne 0x40c178
mov ebx, dword [ebp - 0x30]
xor ecx, 0xffffffa2
mov dword [ebp - 4], edi
cmp ecx, dword [ebp - 0x58]
jne 0x40c178
mov edi, dword [ebp - 0x30]
xor edi, eax
cmp ebx, 0x56
jne 0x40c178
mov dword [ebp - 4], ebx
mov esi, edx
test esi, 0x11
jne 0x40c178
mov edx, ebx
add esi, edx
mov dword [ebp - 4], edi
test edx, 0x90c4
je 0x40c178
xor ecx, eax
test esi, 0x8b
jne 0x40c178
add esi, edi
mov dword [ebp - 0x18], esi
mov edx, dword [0x41ffec]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x5c], edx
cmp esi, edi
jne 0x40c1ac
sub esi, edx
mov ebx, dword [ebp - 0x30]
cmp esi, eax
jne 0x40c1ac
mov ecx, edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x30], esi
cmp ebx, dword [ebp - 0x14]
je 0x40c1ac
add ebx, 0xffffff8d
mov edx, dword [ebp - 0x30]
cmp edi, 0xffffff99
jne 0x40c1ac
mov dword [ebp - 0x50], ebx
and edx, 6
mov dword [ebp - 0x40], edx
mov ebx, dword [ebp - 0x40]
xor ebx, eax
cmp ebx, dword [ebp - 0x34]
je 0x40c1c9
cmp ebx, dword [ebp - 4]
je 0x40c1c9
mov esi, 0x1244
sub esi, 0x19
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], esi
pop edi
mov dword [ebp - 0x40], edi
pop esi
mov dword [ebp - 0x30], esi
pop ebx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
sub ecx, edi
mov dword [ebp - 0x44], ecx
leave
ret