Function at 0x1004bd10
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x1a0]
mov ecx, dword [ebx + 0x9b8]
mov edx, dword [ebx + 0x9bc]
push esi
mov esi, dword [ebx + 0x19c]
push edi
mov edi, dword [ebx + 0x9b4]
add ecx, eax
add edx, eax
mov eax, dword [ebx + 0x11c]
add esi, edi
test eax, eax
mov edi, dword [ebx + 0xaf0]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], 0
jne 0x1004bd6b
mov eax, dword [ebx + 0x120]
test eax, eax
je 0x1004bd8a
mov eax, dword [ebx + 0x254]
push 1
push 0
push eax
mov ecx, ebx
mov dword [ebx + 0x1974], 1
call fcn.10011f60
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 0x1890]
mov edx, dword [ebx + edx*4 + 0x1878]
mov eax, dword [ebx + 0x1868]
mov dword [eax], edx
mov eax, dword [ebx + 0x1894]
mov eax, dword [ebx + eax*4 + 0x1878]
mov edx, dword [ebx + 0x1868]
mov dword [edx + 4], eax
mov edx, dword [ebx + 0x1898]
mov edx, dword [ebx + edx*4 + 0x1878]
mov eax, dword [ebx + 0x1868]
mov dword [eax + 8], edx
mov eax, dword [ebx + 0x1884]
mov eax, dword [ebx + eax*4 + 0x186c]
mov edx, dword [ebx + 0x1864]
mov dword [edx + 8], eax
mov eax, dword [ebx + 0x1864]
mov edx, dword [eax + 8]
mov dword [eax + 4], edx
mov eax, dword [ebx + 0x1864]
mov edx, dword [eax + 4]
mov dword [eax], edx
mov eax, dword [ebx + 0x10dc]
mov edx, dword [ebx + eax*8 + 0x10e8]
mov dword [ebx + 0x10e0], edx
mov eax, dword [ebx + eax*8 + 0x10ec]
mov dword [ebx + 0x10e4], eax
inc dword [0x1009e340]
mov eax, dword [ebx + 0xbc]
test eax, eax
mov dword [ebp - 8], 0
ja 0x1004c020
mov eax, dword [ebx + 0x11c]
test eax, eax
jne 0x1004be47
mov eax, dword [ebx + 0x120]
test eax, eax
je 0x1004be6f
mov ecx, dword [ebx + 0xbc]
mov edx, dword [ebx + 0xb8]
push 1
push ecx
push edx
mov ecx, ebx
call fcn.1000f180
mov ecx, ebx
call fcn.1000f1c0
mov dword [ebx + 0x1974], 0
mov eax, dword [ebx + 0x254]
test eax, eax
je 0x1004be8c
mov eax, dword [ebx + 0x11c]
test eax, eax
jne 0x1004be8c
push 4
mov ecx, ebx
call fcn.10034aa0
mov eax, dword [ebx + 0x254]
xor edx, edx
cmp eax, edx
jne 0x1004beb4
mov ecx, dword [ebx + 0xc0]
mov edi, dword [ebx + 0xf60]
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
cmp dword [ebx + 0xa4c], edx
mov dword [ebx + 0x1bb0], edx
mov dword [ebx + 0x1ba8], edx
mov dword [ebx + 0x1ba0], edx
je 0x1004c466
cmp dword [ebx + 0x9e0], edx
jne 0x1004c466
cmp dword [ebx + 0x18f8], edx
je 0x1004bf61
mov eax, dword [ebx + 0x194]
mov ecx, dword [ebx + 0x18c]
push eax
push ecx
push eax
mov eax, dword [ebx + 0x9b4]
push edx
mov edx, dword [ebx + 0x9c0]
push edx
push eax
mov ecx, ebx
call dword [ebx + 0x191c]
mov eax, dword [ebx + 0x198]
mov ecx, dword [ebx + 0x190]
mov edx, dword [ebx + 0x9c4]
push eax
push ecx
push eax
mov eax, dword [ebx + 0x9b8]
push 0
push edx
push eax
mov ecx, ebx
call dword [ebx + 0x191c]
mov eax, dword [ebx + 0x198]
mov ecx, dword [ebx + 0x190]
mov edx, dword [ebx + 0x9c8]
push eax
push ecx
push eax
mov eax, dword [ebx + 0x9bc]
push 0
push edx
push eax
mov ecx, ebx
call dword [ebx + 0x191c]
mov dword [ebp - 0x14], 1
mov ecx, ebx
call fcn.10018020
mov eax, dword [ebx + 0x1b88]
xor esi, esi
cmp eax, esi
je 0x1004c29a
cmp dword [ebx + 0x1a6c], esi
jne 0x1004bfac
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
neg edx
adc eax, esi
neg eax
mov dword [ebx + 0x1a60], edx
mov dword [ebx + 0x1a64], eax
mov dword [ebx + 0x1a6c], 1
cmp dword [ebp - 0x14], esi
jne 0x1004c24c
mov ecx, dword [ebx + 0x1a0]
mov edi, dword [ebx + 0x9c8]
mov edx, dword [ebx + 0x19c]
mov eax, dword [ebx + 0x9c0]
add edi, ecx
mov dword [ebp - 0x1c], edi
mov edi, dword [ebx + 0x9b4]
add eax, edx
add edi, edx
mov edx, dword [ebx + 0x9b8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x9c4]
mov dword [ebp - 0x10], edi
mov edi, dword [ebx + 0x9bc]
add edx, ecx
add edi, ecx
add eax, ecx
cmp dword [ebx + 0x168], esi
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x20], esi
jle 0x1004c24c
jmp 0x1004c1b5
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea ebx, [ebx]
mov eax, dword [ebx + 0x49c]
test eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
je 0x1004c043
mov ecx, dword [ebp - 8]
push ecx
mov ecx, ebx
call fcn.10022740
test eax, eax
jne 0x1004c1a6
mov eax, dword [ebx + 0xb8]
xor esi, esi
test eax, eax
jbe 0x1004c168
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
lea esp, [esp]
lea eax, [edi + 0x4a]
mov edx, 0x1010101
mov dword [eax], edx
mov word [eax + 4], dx
mov dword [edi + 0x38], 0
mov byte [edi + 0x3c], 2
mov byte [edi + 0x3d], 2
mov ecx, dword [ebx + 0x560]
push 2
push ecx
mov ecx, ebx
call fcn.10094520
mov eax, dword [ebx + 0x494]
test eax, eax
jne 0x1004c0ae
mov ecx, dword [ebx + 0xf74]
push 1
call fcn.100122d0
neg eax
sbb al, al
and eax, 2
mov byte [edi + 0x58], al
mov al, byte [edi + 0x58]
test al, al
jne 0x1004c0e7
mov edx, dword [ebp - 8]
push edx
push esi
push edi
mov ecx, ebx
call fcn.10045d60
test eax, eax
jne 0x1004c468
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
add ecx, eax
push ecx
push eax
mov eax, dword [ebp - 8]
push edx
push edi
push esi
push eax
mov ecx, ebx
call fcn.1004af40
jmp 0x1004c13c
mov ecx, dword [ebp - 8]
push ecx
push esi
push edi
mov ecx, ebx
call fcn.100460c0
test eax, eax
jne 0x1004c468
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
lea ecx, [edx + eax]
push ecx
push eax
mov eax, dword [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 8]
push esi
push ecx
mov ecx, ebx
call fcn.1004b0a0
test eax, eax
jne 0x1004c468
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push edx
mov edx, dword [ebp - 8]
push eax
push ecx
push edi
push esi
push edx
mov ecx, ebx
call fcn.1004b1f0
test eax, eax
jne 0x1004c468
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add eax, 4
add ecx, 0x10
add edi, 0x70
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xb8]
inc esi
cmp esi, eax
mov dword [ebp - 0x18], ecx
jb 0x1004c060
mov eax, dword [ebx + 0x1a4]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebx + 0x1ac]
add ecx, eax
add esi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebx + 0xbc]
inc eax
cmp eax, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
jb 0x1004c014
jmp 0x1004be33
pop edi
pop esi
mov eax, 0xffffff9c
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov ecx, dword [ebx + 0x190]
mov esi, edx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x190]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
add esi, ecx
add eax, ecx
mov edx, ecx
shr ecx, 2
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x190]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0xc]
add edi, ecx
add esi, ecx
mov ecx, dword [ebx + 0x18c]
mov edx, ecx
shr ecx, 2
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18c]
mov edi, dword [ebp - 0x10]
add edx, ecx
add edi, ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x18], edx
mov edx, dword [ebx + 0x168]
inc ecx
cmp ecx, edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], ecx
jl 0x1004c1b2
push 9
mov ecx, ebx
mov dword [ebp - 0x14], 1
call fcn.10034aa0
mov eax, dword [ebx + 0x1a6c]
xor esi, esi
cmp eax, esi
je 0x1004c29a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebx + 0x1a60]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x1a64]
add edx, ecx
mov dword [ebx + 0x1a60], edx
mov edx, dword [ebp - 0x24]
adc eax, edx
mov dword [ebx + 0x1a64], eax
mov dword [ebx + 0x1a6c], esi
cmp dword [ebx + 0xc], esi
je 0x1004c398
push esi
mov ecx, ebx
call fcn.10087d90
mov ecx, ebx
call fcn.1003be20
mov eax, dword [ebx + 0x28c]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x14], esi
mov eax, dword [ebx + 0x1a0]
mov dword [ebx + 0x28c], edi
mov dword [ebx + 0xc], esi
je 0x1004c32e
mov esi, dword [ebx + 0x18ac]
add esi, eax
push esi
mov esi, dword [ebx + 0x18a8]
add esi, eax
mov eax, dword [ebx + 0x18a4]
mov ecx, edi
imul ecx, ecx, 0x58
mov edx, dword [ecx + ebx + 0x2dc]
push esi
add eax, dword [ebx + 0x19c]
push eax
mov eax, dword [ebx + 0x9c8]
add ecx, ebx
mov ecx, dword [ecx + 0x2d8]
add eax, edx
push eax
mov eax, dword [ebx + 0x9c4]
add eax, edx
add ecx, dword [ebx + 0x9c0]
push eax
push ecx
mov ecx, ebx
call fcn.10089290
mov ecx, ebx
call fcn.100146b0
jmp 0x1004c385
mov edx, dword [ebx + 0x28c]
mov esi, dword [ebx + 0x9c8]
imul edx, edx, 0x58
add esi, eax
push esi
mov esi, dword [ebx + 0x9c4]
add esi, eax
mov eax, dword [ebx + 0x9c0]
push esi
add eax, dword [ebx + 0x19c]
push eax
mov eax, dword [ebx + 0x9bc]
lea ecx, [edx + ebx]
mov edx, dword [ecx + 0x2dc]
mov ecx, dword [ecx + 0x2d8]
add eax, edx
push eax
mov eax, dword [ebx + 0x9b8]
add eax, edx
add ecx, dword [ebx + 0x9b4]
push eax
push ecx
mov ecx, ebx
call fcn.10089290
mov edx, dword [ebp - 0x24]
mov dword [ebx + 0x28c], edx
mov dword [ebx + 0xc], edi
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov ecx, 0x1009e2d0
mov dword [ebx + 0x2e20], eax
call fcn.1000e490
test eax, eax
je 0x1004c404
rdtsc
mov esi, dword [0x1009e2e0]
mov ecx, dword [0x1009e2e4]
sub esi, eax
mov eax, dword [0x1009e304]
sbb ecx, edx
test eax, eax
mov dword [0x1009e2e0], esi
mov dword [0x1009e2e4], ecx
jne 0x1004c3dc
inc dword [0x1009e358]
mov eax, dword [0x1009e308]
test eax, eax
jne 0x1004c3fe
mov edx, dword [0x1009e2fc]
mov eax, dword [0x1009e378]
inc edx
mov dword [0x1009e2fc], edx
inc dword [eax*4 + 0x1009e364]
inc dword [0x1009e308]
mov ecx, dword [ebx + 0x2e20]
mov edx, dword [ebx + 0x9c8]
mov eax, dword [ebx + 0x9c4]
push ecx
mov ecx, dword [ebx + 0x9c0]
push edx
mov edx, dword [ebx + 0x9bc]
push eax
mov eax, dword [ebx + 0x9b8]
push ecx
mov ecx, dword [ebx + 0x9b4]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.100336f0
mov ecx, 0x1009e2d0
call fcn.1000e490
test eax, eax
je 0x1004c466
rdtsc
mov ecx, dword [0x1009e2e0]
add ecx, eax
mov eax, dword [0x1009e2e4]
adc eax, edx
mov dword [0x1009e2e0], ecx
mov dword [0x1009e2e4], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret