Function at 0x58e335
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
cmp byte [ebp + 8], 0
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], edi
mov dword [ebp - 4], eax
je 0x58e490
mov esi, dword [ebp + 0xc]
mov edi, dword [esi + 0x88]
lea ebx, [edi + 0x10000]
mov eax, dword [ebx]
cmp eax, edi
mov dword [ebp - 0x14], edi
je 0x58e40c
mov ecx, edi
sub ecx, eax
mov eax, dword [ebp + 0x18]
add ecx, 0x10000
sar ecx, 0xc
cmp ecx, eax
mov dword [ebp + 8], ecx
jbe 0x58e390
mov dword [ebp + 8], eax
mov ecx, eax
test ecx, ecx
je 0x58e3ef
mov eax, ecx
shl eax, 0xc
add dword [esi + 0xd0], eax
mov dword [ebp - 0xc], eax
rdtsc
mov edi, dword [ebx]
mov esi, dword [ebp + 0x14]
shl ecx, 0xc
mov dword [ebp - 0x1c], eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov dword [ebp - 0x18], edx
rep movsb byte es:[edi], byte [esi]
rdtsc
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
add ecx, 0xa8
sub eax, dword [ebp - 0x1c]
sbb edx, dword [ebp - 0x18]
add dword [ecx], eax
mov eax, dword [ebp + 8]
adc dword [ecx + 4], edx
sub dword [ebp + 0x18], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
add ecx, eax
add dword [ebx], eax
mov dword [ebp - 4], ecx
mov eax, dword [ebx]
cmp eax, ebx
jne 0x58e40c
push dword [ebp + 0x1c]
sub eax, edi
sar eax, 0xc
push eax
push edi
push dword [ebp + 0x10]
push esi
push 0
call fcn.0058e335
mov dword [ebx], edi
mov edi, dword [ebp + 0x18]
cmp edi, 0x10
jb 0x58e438
shr edi, 4
push dword [ebp + 0x1c]
push 0x10
push dword [ebp - 4]
push dword [ebp + 0x10]
push esi
push 0
call fcn.0058e335
add dword [ebp - 4], 0x10000
sub dword [ebp + 0x18], 0x10
dec edi
jne 0x58e417
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x58e693
shl eax, 0xc
add dword [esi + 0xd0], eax
mov dword [ebp + 8], eax
rdtsc
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebx]
mov esi, dword [ebp - 4]
shl ecx, 0xc
mov dword [ebp - 0x1c], eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov dword [ebp - 0x18], edx
rep movsb byte es:[edi], byte [esi]
rdtsc
mov ecx, dword [ebp + 0xc]
add ecx, 0xa8
sub eax, dword [ebp - 0x1c]
sbb edx, dword [ebp - 0x18]
add dword [ecx], eax
mov eax, dword [ebp + 8]
adc dword [ecx + 4], edx
add dword [ebx], eax
jmp 0x58e693
and dword [ebp - 0x10], 0
cmp dword [ebp + 0x18], 0
jbe 0x58e68e
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 0x10]
push 0x10
pop ecx
cmp eax, ecx
mov dword [ebp + 8], ecx
jae 0x58e4b4
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
imul eax, eax, 0xe00
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
shl eax, 0xc
mov dword [ebp - 0xc], eax
lea eax, [eax + edi + 0x20]
cmp eax, 0x12000
jbe 0x58e54c
mov esi, dword [ebp + 0x1c]
push 0
push dword [esi]
mov dword [ebp + 0xc], edi
shr dword [ebp + 0xc], 0xc
push dword [ebp + 0xc]
push dword [ebx + 0x80]
push ebx
call fcn.0058d71f
mov eax, dword [ebp + 0xc]
add dword [esi], eax
mov ecx, edi
and ecx, 0xfff
mov dword [ebp + 0xc], ecx
je 0x58e547
add dword [ebx + 0xd0], ecx
rdtsc
mov esi, edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x80]
and esi, 0xfffff000
add esi, eax
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov dword [ebp - 0x20], edx
rep movsb byte es:[edi], byte [esi]
rdtsc
sub eax, dword [ebp - 0x24]
lea ecx, [ebx + 0xa8]
sbb edx, dword [ebp - 0x20]
add dword [ecx], eax
adc dword [ecx + 4], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edi, ecx
mov esi, dword [ebx + 0x80]
add esi, edi
push 8
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x8c]
cmp ecx, eax
mov dword [ebp - 0x18], esi
je 0x58e5a8
cmp dword [ecx + 0x140], eax
je 0x58e5a8
mov ecx, dword [ebx + 0x58]
cmp dword [ecx + 0x54], eax
je 0x58e5a8
mov eax, dword [ebp + 8]
push 0x2000
push ebx
push 0x58df1f
shl eax, 0xc
push eax
push dword [ebp - 4]
lea edi, [esi + 0x20]
push dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
push edi
push dword [ebx + 0x7c]
call fcn.00591f6d
mov ecx, eax
mov dword [ebp + 0xc], ecx
jmp 0x58e5cc
mov ecx, dword [ebp + 8]
push eax
push eax
push eax
shl ecx, 0xc
push ecx
push dword [ebp - 4]
lea edi, [esi + 0x20]
push dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
push edi
push dword [ebx + 0x7c]
call fcn.00591f6d
mov dword [ebp + 0xc], eax
mov ecx, eax
cmp ecx, dword [ebp + 0x14]
jb 0x58e60f
mov ecx, dword [ebp - 0x14]
add dword [ebx + 0xd0], ecx
mov dword [ebp + 0xc], ecx
rdtsc
mov esi, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov dword [ebp - 0x28], edx
rep movsb byte es:[edi], byte [esi]
rdtsc
sub eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x28]
lea ecx, [ebx + 0xa8]
add dword [ecx], eax
adc dword [ecx + 4], edx
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x58e69a]
mov edx, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [0x58e69e]
mov dword [esi + 4], eax
lea eax, [ecx - 1]
shl eax, 0xa
lea eax, [eax + edx - 1]
mov edx, eax
shr edx, 8
mov byte [esi + 9], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 0xa], dl
lea edx, [ecx + 7]
mov byte [esi + 8], al
shr eax, 0x18
and edx, 0xfffffff8
cmp ecx, edx
mov byte [esi + 0xb], al
je 0x58e669
mov edi, dword [ebp + 0xc]
mov ecx, edx
sub ecx, edi
lea edi, [edi + esi + 0x20]
mov esi, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 8]
lea eax, [eax + edx + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp + 8]
mov edi, dword [ebp - 8]
cmp eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
jb 0x58e4a1
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
pop edi
pop esi
pop ebx
leave
ret 0x18