Function at 0x40173e
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call fcn.00402723
mov ebx, eax
cmp ebx, esi
jl 0x40189b
cmp dword [ebp - 4], esi
jne 0x4017a1
push esi
push esi
mov eax, 0xc0000098
push eax
push 3
mov esi, str.BootBCD
mov ebx, eax
call fcn.004042d9
jmp 0x40189b
mov al, byte [0x496060]
test al, al
je 0x4017b5
xor eax, eax
cmp dword [ebp - 4], esi
ja 0x4018e4
cmp dword [ebp - 4], 1
jne 0x40194a
cmp byte [0x496050], 0
jne 0x40194a
push 0x48e212
push 0x26000020
push dword [0x495c34]
call fcn.0041eb2b
test eax, eax
jge 0x401933
lea esi, [ebp - 0x24]
call fcn.004032c1
test byte [ebp - 0x24], 1
je 0x40192a
mov eax, esi
mov dword [ebp - 0x18], eax
mov byte [0x48e212], 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.004028d0
push dword [ebp + 0x10]
rdtsc
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov edi, edx
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00402ca3
mov ebx, eax
rdtsc
sub eax, esi
sbb edx, edi
add dword [0x496058], eax
mov edi, dword [ebp - 0x10]
adc dword [0x49605c], edx
test ebx, ebx
jl 0x40185d
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor ebx, ebx
xor eax, eax
cmp dword [ebp - 0xc], eax
je 0x40189b
mov dword [ebp + 8], eax
cmp dword [ebp - 0x14], eax
jbe 0x401893
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
test eax, eax
je 0x401887
cmp eax, edi
jne 0x401880
test ebx, ebx
jge 0x401887
mov esi, eax
call fcn.0041e98e
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 0x14]
jb 0x40186c
push dword [ebp - 0xc]
call fcn.0042a097
xor eax, eax
cmp dword [ebp - 8], eax
je 0x4018d9
mov dword [ebp + 8], eax
cmp dword [ebp - 4], eax
jbe 0x4018d1
mov ecx, dword [ebp - 8]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
test eax, eax
je 0x4018c5
cmp eax, edi
jne 0x4018be
test ebx, ebx
jge 0x4018c5
mov esi, eax
call fcn.0041e98e
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 4]
jb 0x4018aa
push dword [ebp - 8]
call fcn.0042a097
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
xor esi, esi
mov ebx, dword [ebp - 8]
lea edx, [ebx + eax*4]
cmp dword [edx], esi
je 0x401900
mov esi, dword [edx]
push 4
pop ecx
add esi, ecx
mov edi, 0x496030
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40190b
inc eax
cmp eax, dword [ebp - 4]
jb 0x4018e2
jmp 0x4017b5
mov edi, dword [ebx + eax*4]
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4017b5
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov byte [eax], bl
jmp 0x40189b
mov byte [0x48e212], 0
jmp 0x40195e
cmp byte [0x48e212], 0
jne 0x401807
lea esi, [ebp - 0x24]
call fcn.004032c1
jmp 0x401951
mov byte [0x48e212], 1
cmp byte [0x48e212], 0
jne 0x401807
test byte [ebp - 0x24], 8
mov eax, dword [ebp - 8]
mov edi, dword [eax]
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
je 0x401856
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.00401540
jmp 0x401856