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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x19c]
mov ecx, dword [ebx + 0x9bc]
mov edx, dword [ebx + 0x1884]
push esi
mov esi, dword [ebx + 0xaf0]
push edi
add eax, dword [ebx + 0x9b4]
mov edi, dword [ebx + 0x9b8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x1a0]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x138]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebx + 0x14]
add ecx, eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebx + 0x18]
add ecx, eax
add edi, eax
mov eax, dword [ebx + 0x1864]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebx + edx*4 + 0x186c]
mov dword [eax], ecx
mov edx, dword [ebx + 0x1884]
mov ecx, dword [ebx + edx*4 + 0x1878]
mov eax, dword [ebx + 0x1868]
mov dword [eax], ecx
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
mov dword [ebx + 0x4a0], 1
inc dword [0x1009e344]
mov eax, dword [ebx + 0x11c]
test eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 0
jne 0x1004b40c
mov eax, dword [ebx + 0x120]
test eax, eax
je 0x1004b41e
mov ecx, dword [ebx + 0x254]
push 0
push 0
push ecx
mov ecx, ebx
call fcn.10011f60
mov edx, dword [ebx + 0x638]
mov dword [edx + 0x24], 0
mov eax, dword [ebx + 0x1b0]
mov ecx, dword [ebx + 0xf54]
push 1
push eax
push ecx
mov ecx, dword [ebx + 0x638]
call fcn.10021840
mov ecx, dword [ebx + 0xbc]
xor eax, eax
test ecx, ecx
mov dword [ebp - 8], eax
jbe 0x1004b893
lea esp, [esp]
mov ecx, dword [ebx + 0x49c]
test ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
je 0x1004b480
push eax
mov ecx, ebx
call fcn.10022740
test eax, eax
jne 0x1004ba30
mov eax, dword [ebx + 0xb8]
test eax, eax
mov dword [ebp - 4], 0
jbe 0x1004b845
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
sub ecx, eax
sub eax, edi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
sub eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
sub eax, edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
jmp 0x1004b4c0
mov eax, dword [ebx + 0x11c]
test eax, eax
jne 0x1004b4d4
mov eax, dword [ebx + 0x120]
test eax, eax
je 0x1004b4e2
mov ecx, ebx
call fcn.1000f0a0
mov ecx, ebx
call fcn.1000eeb0
mov byte [esi + 0x3c], 2
mov byte [esi + 0x3d], 2
mov eax, dword [ebx + 0x560]
push 2
push eax
mov ecx, ebx
call fcn.10094520
mov eax, dword [ebx + 0x494]
test eax, eax
jne 0x1004b51b
mov ecx, dword [ebx + 0xf74]
push 1
call fcn.100122d0
neg eax
sbb al, al
and eax, 2
mov byte [esi + 0x58], al
mov al, byte [esi + 0x58]
test al, al
jne 0x1004b5d5
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.10047f30
test eax, eax
jne 0x1004bd02
mov eax, dword [ebx + 0x4b0]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.1004a580
test eax, eax
je 0x1004b5a1
mov eax, dword [ebx + 0x11c]
test eax, eax
jne 0x1004b56c
mov eax, dword [ebx + 0x120]
test eax, eax
je 0x1004b57a
push 0
push 0x4000
mov ecx, ebx
call fcn.1000ef80
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add eax, edi
push eax
mov eax, dword [ebp - 8]
push edi
push ecx
push esi
push edx
push eax
mov ecx, ebx
mov dword [esi + 0x38], 0
call fcn.1004af40
jmp 0x1004b74a
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
lea eax, [ecx + edi]
lea ecx, [eax + edx]
mov edx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
add edx, eax
push edx
mov edx, dword [ebp - 8]
add ecx, edi
push ecx
push edi
push eax
mov eax, dword [ebp - 4]
push esi
push edx
push eax
mov ecx, ebx
call fcn.1004a3a0
jmp 0x1004b74a
mov eax, dword [ebx + 0x11c]
test eax, eax
jne 0x1004b5e9
mov eax, dword [ebx + 0x120]
test eax, eax
je 0x1004b5f0
mov ecx, ebx
call fcn.1000ee50
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.10048750
test eax, eax
jne 0x1004bd02
mov eax, dword [ebx + 0x4b0]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.1004a710
mov eax, dword [ebx + 0x4b0]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
add eax, 8
push eax
push ecx
push edx
mov ecx, ebx
call fcn.1004a850
mov eax, dword [ebx + 0x4b0]
test dword [eax], 0x20000000
je 0x1004b690
mov eax, dword [ebx + 0x11c]
test eax, eax
jne 0x1004b659
mov eax, dword [ebx + 0x120]
test eax, eax
je 0x1004b669
push 0
push 0
push 0x4000
mov ecx, ebx
call fcn.1000efd0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
lea eax, [ecx + edi]
mov ecx, dword [ebp - 8]
push eax
push edi
push edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
push esi
push eax
push ecx
mov ecx, ebx
mov word [esi + 0x38], 0
call fcn.1004b0a0
jmp 0x1004b6c1
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
lea eax, [edx + edi]
mov edx, dword [ebp - 0x28]
add edx, eax
push edx
mov edx, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
add ecx, edi
add edx, eax
push edx
push ecx
push edi
push eax
mov eax, dword [ebp - 8]
push esi
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 4]
push eax
push ecx
mov ecx, ebx
call fcn.1004a0a0
test eax, eax
jne 0x1004bd02
mov edx, dword [ebx + 0x4b0]
test dword [edx + 8], 0x20000000
je 0x1004b71d
mov eax, dword [ebx + 0x11c]
test eax, eax
jne 0x1004b6ec
mov eax, dword [ebx + 0x120]
test eax, eax
je 0x1004b6fc
push 1
push 0
push 0x4000
mov ecx, ebx
call fcn.1000efd0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push edi
push ecx
push esi
push edx
push eax
mov ecx, ebx
mov word [esi + 0x3a], 0
call fcn.1004b1f0
jmp 0x1004b74a
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
lea eax, [ecx + edi]
lea ecx, [eax + edx]
mov edx, dword [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
add edx, eax
push edx
mov edx, dword [ebp - 8]
push ecx
push edi
push eax
mov eax, dword [ebp - 4]
push esi
push edx
push eax
mov ecx, ebx
call fcn.1004a220
test eax, eax
jne 0x1004bd02
mov ecx, dword [ebx + 0xb8]
mov edi, dword [ebx + 0x53c]
mov eax, dword [ebp - 4]
mov edx, ecx
imul edx, dword [ebp - 8]
lea eax, [eax + edx*2]
mov edx, dword [ebx + 0x5b4]
shl eax, 1
mov dx, word [edx + eax*2]
mov word [edi + eax*2], dx
mov edx, dword [ebx + 0x5b4]
mov dx, word [edx + eax*2 + 2]
mov edi, dword [ebx + 0x53c]
mov word [edi + eax*2 + 2], dx
mov edx, dword [ebx + 0x5b4]
mov edi, dword [ebx + 0x53c]
lea ecx, [eax + ecx*2]
mov dx, word [edx + ecx*2]
mov word [edi + ecx*2], dx
mov edx, dword [ebx + 0x5b4]
mov dx, word [edx + ecx*2 + 2]
mov edi, dword [ebx + 0x53c]
mov word [edi + ecx*2 + 2], dx
mov edx, dword [ebx + 0x5b8]
mov dx, word [edx + eax*2]
mov edi, dword [ebx + 0x540]
mov word [edi + eax*2], dx
mov edx, dword [ebx + 0x5b8]
mov dx, word [edx + eax*2 + 2]
mov edi, dword [ebx + 0x540]
mov word [edi + eax*2 + 2], dx
mov eax, dword [ebx + 0x5b8]
mov ax, word [eax + ecx*2]
mov edx, dword [ebx + 0x540]
mov word [edx + ecx*2], ax
mov edx, dword [ebx + 0x5b8]
mov dx, word [edx + ecx*2 + 2]
mov eax, dword [ebx + 0x540]
mov word [eax + ecx*2 + 2], dx
mov edi, dword [esi]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
and edi, 0xfffffffe
mov dword [esi], edi
mov edi, dword [ebp - 0x40]
add ecx, 0x10
add edi, 4
add esi, 0x70
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + 0xb8]
inc eax
cmp eax, ecx
mov dword [ebp - 0x40], edi
mov dword [ebp - 4], eax
jb 0x1004b4c0
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebx + 0x1a4]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x1ac]
add edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x34]
add edx, ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x38]
add ecx, eax
add edi, eax
add edx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebx + 0xbc]
inc eax
cmp eax, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x38], edx
mov dword [ebp - 8], eax
jb 0x1004b460
mov eax, dword [ebx + 0x11c]
test eax, eax
jne 0x1004b8a7
mov eax, dword [ebx + 0x120]
test eax, eax
je 0x1004b8be
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push 0
push eax
push ecx
mov ecx, ebx
call fcn.1000f180
mov eax, dword [ebx + 0x254]
test eax, eax
je 0x1004b8db
mov eax, dword [ebx + 0x11c]
test eax, eax
jne 0x1004b8db
push 4
mov ecx, ebx
call fcn.10034aa0
mov eax, dword [ebx + 0xa4c]
test eax, eax
je 0x1004bd00
mov eax, dword [ebx + 0x9e0]
test eax, eax
jne 0x1004bd00
mov eax, dword [ebx + 0x18f8]
test eax, eax
mov esi, 1
mov dword [ebx + 0x2e1c], esi
je 0x1004b984
mov eax, dword [ebx + 0x194]
mov edx, dword [ebx + 0x18c]
mov ecx, dword [ebx + 0x9b4]
push eax
push edx
push eax
mov eax, dword [ebx + 0x9c0]
push 0
push eax
push ecx
mov ecx, ebx
call dword [ebx + 0x191c]
mov eax, dword [ebx + 0x198]
mov edx, dword [ebx + 0x190]
mov ecx, dword [ebx + 0x9b8]
push eax
push edx
push eax
mov eax, dword [ebx + 0x9c4]
push 0
push eax
push ecx
mov ecx, ebx
call dword [ebx + 0x191c]
mov eax, dword [ebx + 0x198]
mov edx, dword [ebx + 0x190]
mov ecx, dword [ebx + 0x9bc]
push eax
push edx
push eax
mov eax, dword [ebx + 0x9c8]
push 0
push eax
push ecx
mov ecx, ebx
call dword [ebx + 0x191c]
mov dword [ebp - 0x1c], esi
mov ecx, ebx
call fcn.10018020
mov eax, dword [ebx + 0x1b88]
xor edi, edi
cmp eax, edi
je 0x1004bb22
cmp dword [ebx + 0x1a6c], edi
jne 0x1004b9cb
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
neg eax
adc ecx, edi
neg ecx
mov dword [ebx + 0x1a60], eax
mov dword [ebx + 0x1a64], ecx
mov dword [ebx + 0x1a6c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1004badc
mov ecx, dword [ebx + 0x1a0]
mov esi, dword [ebx + 0x9c8]
mov edx, dword [ebx + 0x19c]
mov eax, dword [ebx + 0x9c0]
add esi, ecx
mov dword [ebp - 0x3c], esi
mov esi, dword [ebx + 0x9b4]
add eax, edx
add esi, edx
mov edx, dword [ebx + 0x9bc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x9c4]
mov dword [ebp - 0x10], esi
mov esi, dword [ebx + 0x9b8]
add esi, ecx
add edx, ecx
add eax, ecx
cmp dword [ebx + 0x168], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x40], edi
jle 0x1004bad7
jmp 0x1004ba40
pop edi
pop esi
mov eax, 0xffffff9c
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x18]
nop
mov ecx, dword [ebx + 0x190]
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 - 0x18]
mov edi, dword [ebp - 0x3c]
add esi, ecx
add eax, ecx
mov edx, ecx
shr ecx, 2
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x14]
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 - 0x3c]
mov esi, dword [ebp - 0x14]
add edi, ecx
add esi, ecx
mov ecx, dword [ebx + 0x18c]
mov edx, ecx
shr ecx, 2
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 0x38]
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 - 0x40]
mov dword [ebp - 0x38], edx
mov edx, dword [ebx + 0x168]
inc ecx
cmp ecx, edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x40], ecx
jl 0x1004ba3c
xor edi, edi
mov esi, 1
push 9
mov ecx, ebx
mov dword [ebp - 0x1c], esi
call fcn.10034aa0
cmp dword [ebx + 0x1a6c], edi
je 0x1004bb22
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebx + 0x1a60]
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebx + 0x1a64]
add edx, ecx
mov dword [ebx + 0x1a60], edx
mov edx, dword [ebp - 0x40]
adc eax, edx
mov dword [ebx + 0x1a64], eax
mov dword [ebx + 0x1a6c], edi
cmp dword [ebx + 0xc], edi
je 0x1004bc27
push edi
mov ecx, ebx
call fcn.10087d90
mov ecx, ebx
call fcn.1003be20
mov eax, dword [ebx + 0x28c]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x1c], edi
mov eax, dword [ebx + 0x1a0]
mov dword [ebx + 0x28c], esi
mov dword [ebx + 0xc], edi
je 0x1004bbb6
mov edi, dword [ebx + 0x18ac]
add edi, eax
push edi
mov edi, dword [ebx + 0x18a8]
add edi, eax
mov eax, dword [ebx + 0x18a4]
mov ecx, esi
imul ecx, ecx, 0x58
mov edx, dword [ecx + ebx + 0x2dc]
push edi
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 0x1004bc0d
mov edx, dword [ebx + 0x28c]
mov edi, dword [ebx + 0x9c8]
imul edx, edx, 0x58
add edi, eax
push edi
mov edi, dword [ebx + 0x9c4]
add edi, eax
mov eax, dword [ebx + 0x9c0]
push edi
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 - 0x40]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x28c], edx
mov dword [ebp - 0x1c], 1
xor edi, edi
mov esi, 1
mov eax, dword [ebp - 0x1c]
mov ecx, 0x1009e2d0
mov dword [ebx + 0x2e20], eax
call fcn.1000e490
test eax, eax
je 0x1004bc92
rdtsc
mov ecx, dword [0x1009e2e0]
sub ecx, eax
mov eax, dword [0x1009e304]
mov dword [0x1009e2e0], ecx
mov ecx, dword [0x1009e2e4]
sbb ecx, edx
cmp eax, edi
mov dword [0x1009e2e4], ecx
jne 0x1004bc6b
inc dword [0x1009e358]
cmp dword [0x1009e308], edi
jne 0x1004bc8c
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 0x1004bcf4
rdtsc
mov ecx, dword [0x1009e2e0]
add ecx, eax
mov eax, dword [0x1009e2e4]
adc eax, edx
mov dword [0x1009e2e0], ecx
mov dword [0x1009e2e4], eax
mov dword [ebx + 0x1bb0], edi
mov dword [ebx + 0x1ba8], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret