Function at 0x4afca0
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edi, edi
push ebx
xor ebx, ebx
push esi
inc ebx
mov esi, 0x4c7d4e
cmp dword [0x50aff8], 0
push edi
mov edi, 0x4c8662
je 0x4afd36
cmp dword [0x50ae48], 0
je 0x4afcf4
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, ebx
jbe 0x4afce4
xor edx, edx
div ecx
push 0x184
push edi
push eax
push esi
call fcn.004ac34c
add esp, 0x10
cmp dword [0x50aff8], 0
je 0x4afd36
cmp dword [0x50ae48], 0
je 0x4afd36
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, ebx
jbe 0x4afd26
xor edx, edx
div ecx
push 0x19a
push edi
push eax
push esi
call fcn.004ac34c
add esp, 0x10
push 0x100
push 0
push 0x50d628
push dword [0x50d584]
push dword [0x50d580]
call dword [0x50afc0]
cmp dword [0x50aff8], 0
mov esi, eax
je 0x4afd9c
cmp dword [0x50ae48], 0
je 0x4afd9c
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, ebx
jbe 0x4afd88
xor edx, edx
div ecx
push 0x1a2
push edi
push eax
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
cmp esi, 0x100
je 0x4afe46
cmp dword [0x50aff8], 0
je 0x4b0039
cmp dword [0x50ae48], 0
je 0x4afdf2
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, ebx
jbe 0x4afdde
xor edx, edx
div ecx
push 0x1a6
push edi
push eax
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
cmp dword [0x50aff8], 0
je 0x4b0039
cmp dword [0x50ae48], 0
je 0x4b0039
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, ebx
jbe 0x4afe2c
xor edx, edx
div ecx
push esi
push 0x1a8
push edi
push eax
push 0x4c7d32
call fcn.004ac34c
add esp, 0x14
jmp 0x4b0039
test byte [0x50d62e], 0x10
jne 0x4afe93
cmp dword [0x50aff8], 0
je 0x4b0039
cmp dword [0x50ae48], 0
je 0x4b0039
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, ebx
jbe 0x4afe89
xor edx, edx
div ecx
push 0x1b4
jmp 0x4b002a
mov bl, byte [0x50d65c]
and bl, 0xfc
cmp dword [0x50aff8], 0
je 0x4affea
cmp dword [0x50ae48], 0
je 0x4afee7
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, 1
jbe 0x4afed3
xor edx, edx
div ecx
push 0x1bd
push edi
push eax
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
cmp dword [0x50aff8], 0
je 0x4affea
cmp dword [0x50ae48], 0
je 0x4affea
mov ecx, dword [0x50aff4]
rdtsc
mov edx, eax
sub edx, ecx
add ecx, edx
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, 1
jbe 0x4aff28
mov eax, edx
xor edx, edx
div ecx
mov edx, eax
movzx eax, bl
push eax
push 0x1bf
jmp 0x4affdb
movzx esi, bl
add esi, 0x50d628
cmp byte [esi], 0xa
je 0x4b003f
mov bl, byte [esi + 1]
and bl, 0xfc
cmp dword [0x50aff8], 0
je 0x4affea
cmp dword [0x50ae48], 0
je 0x4aff99
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, 1
jbe 0x4aff85
xor edx, edx
div ecx
push 0x1cf
push edi
push eax
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
cmp dword [0x50aff8], 0
je 0x4affea
cmp dword [0x50ae48], 0
je 0x4affea
mov ecx, dword [0x50aff4]
rdtsc
mov edx, eax
sub edx, ecx
add ecx, edx
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, 1
jbe 0x4affd2
mov eax, edx
xor edx, edx
div ecx
mov edx, eax
movzx eax, bl
push eax
push 0x1d1
push edi
push edx
push 0x4c7d32
call fcn.004ac34c
add esp, 0x14
test bl, bl
jne 0x4aff36
cmp dword [0x50aff8], 0
je 0x4b0039
cmp dword [0x50ae48], 0
je 0x4b0039
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, 1
jbe 0x4b0025
xor edx, edx
div ecx
push 0x1d7
push edi
push eax
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret
test esi, esi
je 0x4afff2
mov ecx, dword [esi]
mov eax, ecx
and eax, 0xe0000000
cmp eax, 0x20000000
je 0x4b008d
cmp dword [0x50aff8], 0
je 0x4b0039
cmp dword [0x50ae48], 0
je 0x4b0039
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, 1
jbe 0x4b0086
xor edx, edx
div ecx
push 0x1e8
jmp 0x4b002a
cmp dword [0x50aff8], 0
je 0x4b00d6
cmp dword [0x50ae48], 0
je 0x4b00d6
mov ecx, dword [0x50aff4]
rdtsc
sub eax, ecx
add ecx, eax
mov dword [0x50aff4], ecx
mov ecx, dword [0x50b000]
cmp ecx, 1
jbe 0x4b00c0
xor edx, edx
div ecx
push 0x1ed
push edi
push eax
push 0x4c7d4e
call fcn.004ac34c
add esp, 0x10
mov ecx, dword [esi]
shr ecx, 0x10
and ecx, 0xfff
add ecx, dword [0x50d72c]
mov eax, ecx
jmp 0x4b003b