Function at 0x40d195
Capabilities:
Check for debugger via api
Contain obfuscated stackstrings
Get common file path

Disassembly:
push 0x888
mov eax, 0x5110ab
call fcn.004d18f8
mov esi, ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x6f577349
push eax
push str.kernel32
mov dword [ebp - 0x20], 0x50343677
mov dword [ebp - 0x1c], 0x65636f72
mov word [ebp - 0x18], 0x7373
mov byte [ebp - 0x16], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
test ebx, ebx
je 0x40d1f0
lea ecx, [esi + 0xc]
push ecx
call edi
push eax
call ebx
movaps xmm0, xmmword [0x545fd0]
lea eax, [ebp - 0x3c]
push eax
xor ebx, ebx
mov dword [ebp - 0x2c], 0x65626d75
push str.ntdll
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x28], 0x7372
mov byte [ebp - 0x26], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d240
lea ecx, [esi + 8]
push ecx
lea ecx, [esi + 4]
push ecx
push esi
call eax
xor eax, eax
mov word [esi + 2], ax
mov word [esi + 6], ax
mov word [esi + 0xa], ax
lea eax, [ebp - 0x860]
mov dword [ebp - 0x860], ebx
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov eax, dword [ebp - 0x860]
or dword [esi + 0x58], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
or dword [esi + 0x58], eax
lea eax, [ebp - 0x85c]
push 0x400
push ebx
push eax
call fcn.004e8520
add esp, 0xc
cmp dword [esi], 6
jb 0x40d29d
lea eax, [ebp - 0x87c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edx, [ebp - 0x85c]
mov ecx, eax
call fcn.0040cfd8
pop ecx
xor eax, eax
mov dword [ebp - 0x868], ebx
mov word [ebp - 0x878], ax
lea ecx, [ebp - 0x878]
lea eax, [ebp - 0x85c]
mov dword [ebp - 0x864], 7
push eax
call fcn.004020df
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x878]
cmp dword [ebp - 0x864], 8
mov edi, dword [ebp - 0x868]
cmovae edx, dword [ebp - 0x878]
test edi, edi
je 0x40d30e
lea eax, [edi - 1]
or ecx, 0xffffffff
cmp eax, ecx
push 0x5c
cmovb ecx, eax
lea eax, [edx + ecx*2]
pop ecx
jmp 0x40d303
cmp eax, edx
je 0x40d30e
sub eax, 2
cmp word [eax], cx
jne 0x40d2fc
sub eax, edx
sar eax, 1
jmp 0x40d311
or eax, 0xffffffff
cmp eax, 0xffffffff
je 0x40d342
push edi
inc eax
lea ecx, [ebp - 0x878]
push eax
lea eax, [ebp - 0x894]
push eax
call fcn.0040d844
push eax
lea ecx, [ebp - 0x878]
call fcn.004064dc
lea ecx, [ebp - 0x894]
call fcn.004020b1
push 0xfde9
lea edx, [ebp - 0x878]
lea ecx, [ebp - 0x894]
call fcn.00401ca0
pop ecx
push eax
lea ecx, [esi + 0x5c]
call fcn.00401fcd
lea ecx, [ebp - 0x894]
call fcn.0040217b
mov edi, 0x20a
lea eax, [ebp - 0x24c]
push edi
push ebx
push eax
call fcn.004e8520
add esp, 0xc
lea eax, [ebp - 0x24c]
mov ebx, 0x104
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x40]
call fcn.004020df
push edi
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.004e8520
add esp, 0xc
lea eax, [ebp - 0x45c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x45c]
push eax
lea ecx, [esi + 0x10]
call fcn.004020df
mov ecx, esi
call fcn.0040d6ff
lea ecx, [ebp - 0x878]
call fcn.004020b1
xor eax, eax
inc eax
call fcn.004d18a2
ret 4