Function at 0x4076eb
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
xor esi, esi
push edi
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [0x42c258]
mov dword [ebp - 8], eax
push 0x10
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.00428f00
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
call dword [0x42c25c]
test eax, eax
jne 0x40772f
jmp 0x4078c6
mov esi, dword [ebp - 0xc]
inc dword [ebp - 4]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], esi
mov esi, dword [0x42c260]
push eax
mov dword [ebp - 0xc], ebx
call esi
mov eax, dword [ebp - 0x34]
push dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
call dword [0x42c264]
mov ebx, 0x7fffffff
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x407770
push 0xf
push dword [ebp - 8]
call dword [0x42c268]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
cmp eax, 0x32
jae 0x407788
lea eax, [ebp - 0x2c]
push eax
call esi
rdtsc
mov dword [ebp - 0x24], eax
jmp 0x407770
mov eax, dword [ebp - 0x2c]
mov edi, 0x3e8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
xor eax, eax
cmp eax, edi
jae 0x4077b2
lea eax, [ebp - 0x2c]
push eax
call esi
rdtsc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
jmp 0x40779b
cmp dword [ebp - 0x18], ebx
je 0x4077c3
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [0x42c268]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
imul ecx, ecx, 0x186a0
imul eax, eax, 0x186a0
sub ecx, eax
push 0xa
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
xor edx, edx
pop edi
mov esi, dword [ebp - 0x20]
div edi
xor edx, edx
sub esi, dword [ebp - 0x24]
add dword [ebp - 0x10], esi
mov edi, eax
mov eax, dword [ebp - 0x18]
div edi
xor edx, edx
mov edi, eax
div ecx
add dword [ebp - 0x14], edi
shr ecx, 1
cmp edx, ecx
jbe 0x407808
inc edi
mov eax, esi
xor edx, edx
div edi
xor edx, edx
mov ebx, eax
mov eax, esi
div edi
shr edi, 1
cmp edx, edi
jbe 0x40781d
inc ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + ecx]
add esi, ebx
cmp dword [ebp - 4], 3
jl 0x40772c
cmp dword [ebp - 4], 0x14
jge 0x40787d
lea eax, [ebx + ebx*2]
sub eax, esi
push eax
call fcn.004299b8
cmp eax, 3
pop ecx
jg 0x40772c
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
sub eax, esi
push eax
call fcn.004299b8
cmp eax, 3
pop ecx
jg 0x40772c
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*2]
sub eax, esi
push eax
call fcn.004299b8
cmp eax, 3
pop ecx
jg 0x40772c
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
xor edx, edx
lea eax, [esi + esi*4]
shl eax, 1
div edi
xor edx, edx
mov ecx, eax
mov eax, esi
imul eax, eax, 0x64
div edi
lea edx, [ecx + ecx*4]
shl edx, 1
sub eax, edx
cmp eax, 6
jb 0x4078a4
inc ecx
mov eax, esi
xor edx, edx
div edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea edx, [eax + eax*4]
shl edx, 1
sub ecx, edx
cmp ecx, 6
jb 0x4078c0
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x4c]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret