Function at 0x4016c1
Capabilities:
Check for software breakpoints
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 4]
push ebx
push esi
push edi
xor edi, edi
cmp byte [eax], 0xcc
mov dword [ebp - 4], edi
jne 0x4016e3
mov dword [ebp - 4], 1
jmp 0x401a78
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x401702
push 0x91
push 0x11
mov edx, 0x40b03c
call fcn.00404340
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4016d7
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, edi
je 0x40172e
push 0x85
push 0xc
mov eax, esi
mov edx, 0x40ae34
call fcn.00404340
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, edi
je 0x40174d
push 0x94
push 0xe
mov edx, 0x40ae44
call fcn.00404340
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [eax], 0x8c2c033
je 0x4016d7
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x4016d7
mov esi, dword [sym.imp.ntdll.dll_ZwQueryInformationProcess]
push edi
push 4
lea eax, [ebp - 8]
push eax
push 7
push 0xffffffffffffffff
call esi
test eax, eax
js 0x401796
cmp dword [ebp - 8], edi
jne 0x4016d7
push edi
push 4
lea eax, [ebp - 8]
push eax
push 0x1e
push 0xffffffffffffffff
call esi
test eax, eax
js 0x4017b0
cmp dword [ebp - 8], edi
jne 0x4016d7
xor esi, esi
cmp dword [str.X2D], edi
je 0x4017df
mov eax, str.X2D
push dword [eax]
call fcn.004026f6
test eax, eax
jne 0x4017d8
inc esi
lea eax, [esi*4 + str.X2D]
cmp dword [eax], edi
jne 0x4017bf
jmp 0x4017df
mov dword [ebp - 4], 1
xor esi, esi
cmp dword [0x40b104], edi
je 0x40180e
mov eax, 0x40b104
push dword [eax]
call fcn.00402f6d
test eax, eax
jne 0x401807
inc esi
lea eax, [esi*4 + 0x40b104]
cmp dword [eax], edi
jne 0x4017ee
jmp 0x40180e
mov dword [ebp - 4], 1
cmp dword [ebp - 4], edi
jne 0x401a78
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 4], eax
cmp eax, edi
je 0x401839
push 0x80
push 0xb
mov edx, 0x40ae5c
call fcn.00404340
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x40185b
push 0x92
push 0xb
mov edx, 0x40ae24
call fcn.00404340
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x40187d
push 0x8d
push 0xb
mov edx, 0x40b014
call fcn.00404340
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
cmp ebx, edi
je 0x40189e
push 0x94
push 0xd
mov eax, ebx
mov edx, 0x40b020
call fcn.00404340
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
mov edi, 0x99
test esi, esi
je 0x4018c0
push edi
push 0xb
mov eax, esi
mov edx, 0x40b030
call fcn.00404340
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4016d7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4016d7
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4016d7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
test eax, eax
jne 0x4016d7
push esi
call ebx
test eax, eax
jne 0x4016d7
and dword [ebp - 4], eax
push 0x20
pop eax
call sub.ntdll.dll__alloca_probe
mov ebx, esp
test ebx, ebx
je 0x401933
push 0x8b
push 0x1e
mov eax, ebx
mov edx, 0x40af60
call fcn.00404340
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x10], eax
test eax, eax
je 0x401955
push 0x92
push 0xb
mov edx, 0x40af80
call fcn.00404340
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401973
push edi
push 0xb
mov edx, 0x40af8c
call fcn.00404340
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
mov dword [ebp - 0x14], eax
test eax, eax
je 0x401995
push 0x80
push 0x27
mov edx, 0x40af98
call fcn.00404340
push 0x28
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
test esi, esi
je 0x4019b6
push 0x8c
push 0x26
mov eax, esi
mov edx, 0x40afc0
call fcn.00404340
push 0x2c
pop eax
call sub.ntdll.dll__alloca_probe
mov edi, esp
test edi, edi
je 0x4019d7
push 0x84
push 0x29
mov eax, edi
mov edx, 0x40afe8
call fcn.00404340
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call ebx
test eax, eax
jne 0x401a78
push dword [ebp - 0x10]
call ebx
test eax, eax
jne 0x401a78
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x401a78
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x401a78
push esi
call ebx
test eax, eax
jne 0x401a78
push edi
call ebx
test eax, eax
jne 0x401a78
call fcn.004033dc
mov esi, eax
test esi, esi
je 0x401a78
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x401a3f
push 0x8c
push 9
mov edx, 0x40b050
call fcn.00404340
mov ecx, eax
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401a63
test dl, dl
je 0x401a5f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401a63
add eax, 2
add ecx, 2
test dl, dl
jne 0x401a43
xor eax, eax
jmp 0x401a68
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401a73
mov dword [ebp - 4], 1
call fcn.00404762
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret