Function at 0x415630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x584e9b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x164c
call fcn.0055d880
mov eax, dword [0x5eb770]
xor eax, esp
mov dword [esp + 0x1648], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb770]
xor eax, esp
push eax
lea eax, [esp + 0x1660]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov esi, ecx
push str.CheckProcess
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], esi
call fcn.0044ca70
add esp, 0xc
push esi
push str.szProcessName___s
lea eax, [esp + 0x20]
push 1
push eax
mov dword [esp + 0x1678], ebx
call fcn.0044cd10
add esp, 0x10
push 0x104
lea ecx, [esp + 0x1450]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x415879
lea edx, [esp + 0x144c]
push edx
lea eax, [esp + 0x1248]
push str._spsapi.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [esp + 0x1244]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x14], eax
cmp eax, ebx
je 0x415864
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push eax
call esi
mov edx, dword [esp + 0x14]
push str.EnumProcessModules
push edx
mov edi, eax
call esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push str.GetModuleBaseNameW
push eax
call esi
mov dword [esp + 0x34], eax
cmp edi, ebx
je 0x415879
cmp dword [esp + 0x20], ebx
je 0x415879
cmp eax, ebx
je 0x415879
lea ecx, [esp + 0x28]
push ecx
push 0x1000
lea edx, [esp + 0x44]
push edx
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 0x415807
mov eax, dword [esp + edi*4 + 0x3c]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4157fc
lea ecx, [esp + 0x38]
push ecx
push 4
lea edx, [esp + 0x2c]
push edx
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x48], ebx
call dword [esp + 0x30]
test eax, eax
je 0x4157f5
push 0x206
lea ecx, [esp + 0x1042]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x1048], ax
call fcn.0055ca80
mov eax, dword [esp + 0x30]
add esp, 0xc
push 0x208
lea edx, [esp + 0x1040]
push edx
push eax
push esi
call dword [esp + 0x44]
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x1040]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x415821
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esp + 0x30]
jb 0x415773
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push str.return___08x
push 2
lea eax, [esp + 0x24]
push eax
jmp 0x415871
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
push str.return___08x
lea ecx, [esp + 0x20]
push 2
push ecx
call fcn.0044cd10
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x1668], 0xffffffff
call fcn.0044cc70
mov eax, 1
jmp 0x41588f
push ebx
push str.return___08x
push 2
lea ecx, [esp + 0x24]
push ecx
call fcn.0044cd10
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x1668], 0xffffffff
call fcn.0044cc70
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.0055649d
mov esp, ebp
pop ebp
ret