Function at 0x1017d960
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [esp - 0xc1c]
sub esp, 0xc1c
push 0xffffffffffffffff
push 0x101cc1e0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1021e964]
xor eax, ebp
mov dword [ebp + 0xc18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc24]
mov ebx, dword [ebp + 0xc28]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp + 0x14], 0
cmp esi, 0x1fefa
je 0x1017e07e
call fcn.1017e830
rdtsc
mov dword [ebp - 0x50], edx
xor cl, cl
xor dl, dl
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], dl
test ebx, ebx
je 0x1017da0d
cmp dword [ebx], 7
jb 0x1017d9fe
mov eax, dword [0x1021e8f0]
mov cl, 1
inc eax
mov dword [0x1021e8f0], eax
jmp 0x1017da0d
mov eax, dword [ebx]
cmp eax, dword [0x1021e8ec]
jbe 0x1017da0d
mov dword [0x1021e8ec], eax
test esi, esi
je 0x1017e039
test cl, cl
jne 0x1017e039
mov byte [ebp - 0x13], dl
xor edi, edi
mov al, byte [esi + edi]
xor al, 0x33
cmp al, 0x1d
je 0x1017da36
cmp al, 0x33
je 0x1017e039
inc edi
jmp 0x1017da22
push 0x400
lea eax, [ebp + 0x818]
push 0
push eax
call fcn.101a4190
push edi
lea eax, [ebp + 0x818]
push esi
push eax
call fcn.101a3c10
add esp, 0x18
lea eax, [ebp + 0x818]
push eax
call fcn.1017ebb0
mov esi, eax
mov dword [ebp + 0x10], esi
test esi, esi
jne 0x1017db32
push eax
lea eax, [ebp + 0x818]
push eax
call fcn.1017e0d0
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1017da97
mov eax, dword [0x1021e8c4]
inc eax
mov dword [0x1021e8c4], eax
jmp 0x1017db2f
mov eax, dword [0x1021e8c8]
inc eax
mov dword [0x1021e8c8], eax
call fcn.10180ff0
mov ecx, eax
test ecx, ecx
je 0x1017db2f
xorps xmm0, xmm0
lea eax, [ebp + 0x18]
movlpd qword [ebp + 8], xmm0
xor esi, esi
mov dword [ebp + 0xc], eax
movsx ax, byte [ebp + esi + 0x818]
mov word [ebp + esi*2 + 0x18], ax
test ax, ax
je 0x1017dad7
inc esi
jmp 0x1017dac1
lea eax, [esi + esi]
mov word [ebp + 8], ax
add eax, 2
mov word [ebp + 0xa], ax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0
call ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1017db0a
mov dword [ebp - 0x3c], eax
mov eax, dword [0x1021e8a8]
inc eax
mov dword [0x1021e8a8], eax
jmp 0x1017db15
mov eax, dword [0x1021e8ac]
inc eax
mov dword [0x1021e8ac], eax
lea eax, [esi + esi]
push eax
lea eax, [ebp + 0x18]
push 0
push eax
call fcn.101a4190
xorps xmm0, xmm0
add esp, 0xc
movlpd qword [ebp + 8], xmm0
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp + 0x818]
push 0
push eax
call fcn.101a4190
mov ecx, dword [ebp - 0x28]
inc edi
mov dword [ebp - 0x20], edi
add esp, 0xc
mov edx, dword [ebp - 0x20]
xor edi, edi
mov al, byte [ecx + edx]
xor al, 0x33
cmp al, 0x10
jne 0x1017db75
inc edx
mov byte [ebp - 0x12], 1
mov dword [ebp - 0x20], edx
lea eax, [ecx + edx]
push eax
call fcn.100c4ea0
mov esi, dword [ebp + 0x10]
add esp, 4
mov edx, dword [ebp - 0x20]
mov edi, eax
mov dword [ebp - 0x40], edx
test ebx, ebx
je 0x1017db93
cmp dword [ebx], 7
jb 0x1017db93
mov eax, dword [0x1021e8f0]
mov cl, 1
mov esi, dword [ebp + 0x10]
inc eax
mov dword [0x1021e8f0], eax
jmp 0x1017db96
mov cl, byte [ebp - 0x13]
test esi, esi
je 0x1017dd98
test cl, cl
jne 0x1017dd98
mov eax, dword [esi + 0x3c]
test eax, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + esi]
cmove ecx, esi
test ecx, ecx
je 0x1017dd98
mov edx, dword [ecx + 0x78]
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], eax
test edx, edx
je 0x1017dbe6
mov eax, dword [ecx + 0x7c]
test eax, eax
je 0x1017dbe4
add edx, esi
add eax, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], eax
mov eax, edx
jmp 0x1017dbe6
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1017dd98
cmp dword [ecx + 0x7c], 0x28
jb 0x1017dd98
mov ebx, dword [eax + 0x1c]
mov edx, dword [eax + 0x10]
add ebx, esi
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x34], ebx
mov ebx, dword [eax + 0x18]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
add ebx, esi
add eax, esi
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1017dd98
cmp byte [ebp - 0x12], 0
je 0x1017de2b
mov eax, dword [0x1021e8b0]
inc eax
mov dword [0x1021e8b0], eax
test ecx, ecx
je 0x1017dd98
cmp edi, edx
jae 0x1017dc63
mov bh, 1
jmp 0x1017dd9b
mov eax, edi
sub eax, edx
cmp eax, ecx
jae 0x1017dc5c
mov ecx, dword [esi + eax*4]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x1017dd98
mov esi, dword [ebp + 0x10]
add esi, ecx
cmp esi, dword [ebp - 0x24]
jb 0x1017de23
cmp esi, dword [ebp - 0x30]
ja 0x1017de23
push dword [ebp - 0x28]
push esi
call fcn.1017e590
test al, al
je 0x1017de03
push dword [ebp + 0x10]
push esi
call fcn.1017e0d0
test eax, eax
je 0x1017dcc2
mov dword [ebp + 0x10], eax
mov eax, dword [0x1021e8c4]
inc eax
mov dword [0x1021e8c4], eax
jmp 0x1017dccd
mov eax, dword [0x1021e8c8]
inc eax
mov dword [0x1021e8c8], eax
mov eax, dword [0x1021e89c]
inc eax
mov dword [ebp + 0x14], 0
mov dword [0x1021e89c], eax
call fcn.101809a0
mov ecx, eax
test ecx, ecx
je 0x1017dd38
mov eax, dword [0x1021e8cc]
inc eax
mov dword [0x1021e8cc], eax
lea eax, [ebp + 0x14]
push eax
push edi
push 0
push dword [ebp + 0x10]
call ecx
cmp eax, 0xc0000138
jne 0x1017dd11
mov dword [ebp + 0x14], 0
jmp 0x1017dd17
cmp dword [ebp + 0x14], 0
jne 0x1017dd77
mov eax, dword [0x1021e8e8]
inc eax
mov dword [0x1021e8e8], eax
mov eax, dword [0x1021e8d0]
inc eax
mov dword [0x1021e8d0], eax
mov eax, dword [0x1021e8d4]
inc eax
mov dword [0x1021e8d4], eax
mov bh, byte [ebp - 0x11]
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x1017dd54
call fcn.1017fb90
test eax, eax
je 0x1017dd4e
push esi
call eax
cmp dword [ebp + 0x14], 0
jne 0x1017dda1
mov eax, dword [0x1021e8a4]
mov bl, byte [ebp - 0x12]
inc eax
mov dword [0x1021e8a4], eax
test bl, bl
je 0x1017e040
mov eax, dword [0x1021e8b8]
inc eax
mov dword [0x1021e8b8], eax
jmp 0x1017ddaf
mov eax, dword [0x1021e8e8]
inc eax
mov dword [0x1021e8e8], eax
mov eax, dword [0x1021e8dc]
inc eax
mov dword [0x1021e8dc], eax
mov eax, dword [0x1021e8e0]
inc eax
mov dword [0x1021e8e0], eax
mov bh, byte [ebp - 0x11]
cmp dword [ebp + 0x14], 0
je 0x1017dd3b
mov eax, dword [0x1021e8a0]
mov bl, byte [ebp - 0x12]
inc eax
mov dword [0x1021e8a0], eax
mov ecx, dword [0x1021e908]
rdtsc
mov esi, eax
mov eax, dword [0x1021e90c]
sub esi, dword [ebp - 0x54]
sbb edx, dword [ebp - 0x50]
or ecx, eax
je 0x1017dddd
mov ecx, dword [0x1021e908]
mov eax, dword [0x1021e90c]
cmp eax, edx
ja 0x1017dde9
jb 0x1017dddd
cmp ecx, esi
jae 0x1017dde9
mov dword [0x1021e908], esi
mov dword [0x1021e90c], edx
cmp dword [ebp + 0x14], 0
je 0x1017e050
xor eax, eax
push eax
call fcn.10182fc0
mov eax, dword [ebp + 0x14]
jmp 0x1017e0a0
mov eax, dword [0x1021e898]
inc eax
mov dword [0x1021e898], eax
test ebx, ebx
je 0x1017de14
inc dword [ebx]
push ebx
push esi
call fcn.1017d960
mov dword [ebp + 0x14], eax
jmp 0x1017dd98
mov dword [ebp + 0x14], esi
jmp 0x1017dd98
mov eax, dword [0x1021e8b4]
inc eax
mov dword [0x1021e8b4], eax
test ecx, ecx
je 0x1017dd98
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x1017dd98
cmp dword [ebp - 0x38], 0
je 0x1017dd98
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1017dd98
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp eax, esi
jae 0x1017dd98
mov ecx, dword [edx + eax*4]
test ecx, ecx
je 0x1017dfc9
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x20]
add esi, ecx
mov dword [ebp - 4], 8
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov dl, byte [ecx + esi]
add eax, ecx
cmp dl, byte [eax + edi]
jne 0x1017dfb9
test dl, dl
jne 0x1017e033
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 8
movzx eax, word [ecx + eax*2]
mov eax, dword [esi + eax*4]
test eax, eax
je 0x1017dfb9
mov edi, dword [ebp + 0x10]
lea esi, [eax + edi]
cmp esi, dword [ebp - 0x24]
jb 0x1017e01e
cmp esi, dword [ebp - 0x30]
ja 0x1017e01e
push dword [ebp - 0x28]
push esi
call fcn.1017e590
test al, al
je 0x1017dff0
push edi
push esi
call fcn.1017e0d0
mov edi, dword [ebp - 0x40]
mov ecx, eax
add edi, dword [ebp - 0x44]
test ecx, ecx
je 0x1017df14
mov eax, dword [0x1021e8c4]
push edi
inc eax
mov dword [ebp + 0x10], ecx
push ecx
mov dword [0x1021e8c4], eax
call fcn.1017d450
mov ecx, eax
jmp 0x1017df21
mov eax, dword [0x1021e8c8]
inc eax
xor ecx, ecx
mov dword [0x1021e8c8], eax
mov eax, dword [0x1021e89c]
inc eax
mov dword [ebp + 0x14], ecx
mov dword [0x1021e89c], eax
test ecx, ecx
jne 0x1017e027
call fcn.101809a0
mov esi, eax
test esi, esi
je 0x1017dfe7
push edi
call fcn.1017eae0
movzx eax, ax
mov word [ebp], ax
inc eax
mov word [ebp + 2], ax
lea eax, [ebp + 0x14]
push eax
push 0
lea eax, [ebp]
mov dword [ebp + 4], edi
push eax
push dword [ebp + 0x10]
call esi
xorps xmm0, xmm0
movlpd qword [ebp], xmm0
cmp eax, 0xc0000138
je 0x1017df80
cmp eax, 0xc0000142
jne 0x1017df87
mov dword [ebp + 0x14], 0
mov eax, dword [0x1021e8cc]
inc eax
cmp dword [ebp + 0x14], 0
mov dword [0x1021e8cc], eax
jne 0x1017dfcf
mov eax, dword [0x1021e8e8]
inc eax
mov dword [0x1021e8e8], eax
mov eax, dword [0x1021e8d0]
inc eax
mov dword [0x1021e8d0], eax
mov eax, dword [0x1021e8d8]
inc eax
mov dword [0x1021e8d8], eax
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
inc eax
jmp 0x1017de60
mov eax, dword [0x1021e8dc]
inc eax
mov dword [0x1021e8dc], eax
mov eax, dword [0x1021e8e4]
inc eax
mov dword [0x1021e8e4], eax
jmp 0x1017e021
mov dword [ebp + 0x14], 0
jmp 0x1017dfb9
mov eax, dword [0x1021e898]
inc eax
mov dword [0x1021e898], eax
test ebx, ebx
je 0x1017e001
inc dword [ebx]
push ebx
push esi
call fcn.1017d960
mov dword [ebp + 0x14], eax
jmp 0x1017e021
mov dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
je 0x1017dfb9
mov dword [ebp - 4], 0xffffffff
jmp 0x1017dd98
inc ecx
jmp 0x1017de87
mov bh, dl
jmp 0x1017dd9b
mov eax, dword [0x1021e8bc]
inc eax
mov dword [0x1021e8bc], eax
jmp 0x1017ddaf
test bl, bl
je 0x1017e06e
test bh, bh
mov ecx, 0x4750412d
mov eax, 0xc0000138
cmovne eax, ecx
push eax
call fcn.10182fc0
mov eax, dword [ebp + 0x14]
jmp 0x1017e0a0
mov eax, 0xc0000139
push eax
call fcn.10182fc0
mov eax, dword [ebp + 0x14]
jmp 0x1017e0a0
cmp dword [0x1021e92c], 0x33c0
jne 0x1017e09e
call fcn.1018335d
add eax, 0x33c0
mov dword [0x1021e92c], eax
mov eax, dword [ebp + 0x14]
jmp 0x1017e0a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc18]
xor ecx, ebp
call fcn.1018d760
lea esp, [ebp + 0xc1c]
pop ebp
ret 8