Function at 0x5866c0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x6c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edx
mov edx, dword [esi + 0x1f68]
mov edi, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov eax, edx
add eax, dword [edi + 0x10]
mov dword [ebp - 0x4c], edx
js 0x5866f9
cmp eax, 0x200
mov ecx, 0x200
jle 0x586887
mov edx, ecx
mov esi, dword [esi + 0x1f78]
and edx, 0x1f
movzx edi, byte [edx + 0x771be0]
sar ecx, 5
shl edi, cl
imul esi, edi
sar esi, 3
mov dword [ebp - 0x44], esi
rdtsc
cmp dword [ebp - 0x4c], 0xffffff80
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
je 0x58687f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
cmp eax, ecx
jge 0x5867ab
mov edx, dword [ebp - 0x14]
mov esi, dword [edx]
mov dword [ebp - 0x3c], esi
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x18]
mov esi, dword [edx + 0x20]
mov eax, dword [edx + 0x1c]
shl ecx, 2
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x18]
imul ecx, esi
mov esi, dword [ebp - 0x3c]
add ecx, eax
mov eax, dword [esi + ecx*4]
test eax, eax
je 0x5868a7
mov esi, dword [ebp - 0x24]
lea edx, [eax + esi]
xor ecx, ecx
cmp ecx, ebx
jge 0x5867a0
lea esi, [esi]
lea edi, [edi]
mov eax, dword [edx + ecx*4]
test eax, eax
jl 0x586890
jle 0x58679b
imul eax, edi
mov esi, dword [ebp - 0x44]
add eax, esi
sar eax, 7
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, ebx
jl 0x586780
inc dword [ebp - 0x18]
mov ecx, dword [ebp + 0x18]
cmp dword [ebp - 0x18], ecx
jl 0x586740
cmp ebx, 0xc8
jle 0x58687f
rdtsc
mov dword [ebp - 0x30], eax
mov edi, dword [0x7719b0]
mov dword [ebp - 0x2c], edx
cmp edi, 1
jg 0x5868ca
mov ebx, dword [0x7719a0]
mov esi, dword [0x7719a4]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [0x7719c0]
sub dword [ebp - 0x30], eax
sbb dword [ebp - 0x2c], edx
add ebx, dword [ebp - 0x30]
adc esi, dword [ebp - 0x2c]
inc edi
mov dword [0x7719a0], ebx
mov dword [0x7719b0], edi
mov dword [0x7719a4], esi
lea eax, [edi + ecx]
mov edx, 0x40000000
mov dword [ebp - 0x48], eax
mov eax, edx
cdq
idiv dword [ebp - 0x48]
test edx, edx
jne 0x58687f
mov dword [esp + 0x1c], ecx
mov eax, ebx
mov edx, esi
shld edx, ebx, 2
mov ecx, str.dquant
mov dword [esp + 0x18], edi
shl eax, 2
add eax, ebx
adc edx, esi
mov esi, edi
sar esi, 0x1f
shld edx, eax, 1
add eax, eax
mov ebx, 2
mov dword [esp + 8], edi
mov edi, 0x6a55d8
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.006724b0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.0045dc30
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, eax
jmp 0x5866f9
imul eax, edi
mov esi, dword [ebp - 0x44]
sub esi, eax
mov eax, esi
sar eax, 7
neg eax
mov dword [edx + ecx*4], eax
jmp 0x58679b
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
mov edx, dword [esi + 4]
mov esi, dword [ebp - 0x14]
mov edx, dword [edx + eax*4]
dec eax
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
mov dword [esi + ecx*4], edx
add edx, eax
jmp 0x58676e
sub eax, dword [ebp - 0x20]
mov ecx, edi
mov dword [esp + 8], edi
mov ebx, dword [0x7719a0]
mov esi, dword [0x7719a4]
sbb edx, dword [ebp - 0x1c]
sar ecx, 0x1f
mov dword [ebp - 0x38], eax
mov eax, ebx
shl eax, 3
mov dword [ebp - 0x34], edx
mov edx, esi
shld edx, ebx, 3
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.006724b0
cmp dword [ebp - 0x34], edx
jb 0x5867da
ja 0x58691a
cmp dword [ebp - 0x38], eax
jb 0x5867da
mov ecx, dword [0x7719c0]
inc ecx
mov dword [0x7719c0], ecx
jmp 0x586805