Function at 0x4101f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55a12b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x164c
call fcn.00539330
mov eax, dword [0x5b4450]
xor eax, esp
mov dword [esp + 0x1648], eax
push ebx
push esi
push edi
mov eax, dword [0x5b4450]
xor eax, esp
push eax
lea eax, [esp + 0x1660]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x1c]
mov esi, ecx
push str.CheckProcess
push eax
mov dword [esp + 0x38], esi
call fcn.0040ac70
add esp, 0xc
push esi
push str.szProcessName___s
lea ecx, [esp + 0x20]
push 1
push ecx
mov dword [esp + 0x1678], ebx
call fcn.0040aed0
add esp, 0x10
push 0x104
lea edx, [esp + 0x1450]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x410439
lea eax, [esp + 0x144c]
push eax
lea ecx, [esp + 0x1248]
push str._spsapi.dll
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x1244]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x410424
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push eax
call esi
mov edi, eax
mov eax, dword [esp + 0x14]
push str.EnumProcessModules
push eax
call esi
mov ecx, dword [esp + 0x14]
push str.GetModuleBaseNameW
push ecx
mov dword [esp + 0x28], eax
call esi
mov dword [esp + 0x34], eax
cmp edi, ebx
je 0x410439
cmp dword [esp + 0x20], ebx
je 0x410439
cmp eax, ebx
je 0x410439
lea edx, [esp + 0x28]
push edx
push 0x1000
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x34], ebx
call edi
mov eax, dword [esp + 0x28]
shr eax, 2
xor edi, edi
mov dword [esp + 0x30], eax
cmp eax, ebx
jbe 0x4103c7
mov ecx, dword [esp + edi*4 + 0x3c]
push ecx
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4103bc
lea edx, [esp + 0x38]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ebx
call dword [esp + 0x30]
test eax, eax
je 0x4103b5
push 0x206
lea edx, [esp + 0x1042]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x1048], cx
call fcn.005373f0
mov ecx, dword [esp + 0x30]
add esp, 0xc
push 0x208
lea eax, [esp + 0x1040]
push eax
push ecx
push esi
call dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x1040]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4103e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esp + 0x30]
jb 0x410333
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push str.return___08x
push 2
lea ecx, [esp + 0x24]
push ecx
jmp 0x410431
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
push str.return___08x
lea edx, [esp + 0x20]
push 2
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x1668], 0xffffffff
call fcn.0040ae50
mov eax, 1
jmp 0x41044f
push ebx
push str.return___08x
push 2
lea edx, [esp + 0x24]
push edx
call fcn.0040aed0
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x1668], 0xffffffff
call fcn.0040ae50
xor eax, eax
mov ecx, dword [esp + 0x1660]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1648]
xor ecx, esp
call fcn.005337cb
mov esp, ebp
pop ebp
ret