Function at 0x418df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56374b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x164c
call fcn.00542ad0
mov eax, dword [0x5c0490]
xor eax, esp
mov dword [esp + 0x1648], eax
push ebx
push esi
push edi
mov eax, dword [0x5c0490]
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.00401190
add esp, 0xc
push esi
push str.szProcessName___s
lea ecx, [esp + 0x20]
push 1
push ecx
mov dword [esp + 0x1678], ebx
call fcn.00401410
add esp, 0x10
push 0x104
lea edx, [esp + 0x1450]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x419039
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 0x419024
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 0x419039
cmp dword [esp + 0x20], ebx
je 0x419039
cmp eax, ebx
je 0x419039
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 0x418fc7
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 0x418fbc
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 0x418fb5
push 0x206
lea edx, [esp + 0x1042]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x1048], cx
call fcn.00541d20
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 0x418fe1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esp + 0x30]
jb 0x418f33
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 0x419031
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.00401410
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x1668], 0xffffffff
call fcn.00401370
mov eax, 1
jmp 0x41904f
push ebx
push str.return___08x
push 2
lea edx, [esp + 0x24]
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [esp + 0x18]
mov dword [esp + 0x1668], 0xffffffff
call fcn.00401370
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.0053ca73
mov esp, ebp
pop ebp
ret