Function at 0x411b39
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x15c], 0
push 0x51ee08
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x411bbb
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call fcn.0040435c
add esp, 4
push 0x2020001
call fcn.004042f8
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x411f53
push 0x51ee14
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x411c0f
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.0040435c
add esp, 4
push 0x2020001
call fcn.004042f8
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x411f53
push 0x51ee38
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 0
jne 0x411c5c
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call fcn.0040435c
add esp, 4
push 0x2020001
call fcn.004042f8
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x411f53
push 0x51ee48
mov ecx, dword [ebp - 0x164]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x411caa
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.0040435c
add esp, 4
push 0x2020001
call fcn.004042f8
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x411f53
push 0x51ee68
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x411cf7
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call fcn.0040435c
add esp, 4
push 0x2020001
call fcn.004042f8
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x411f53
push 0x51ee78
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x411d45
mov edx, dword [ebp - 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.0040435c
add esp, 4
push 0x2020001
call fcn.004042f8
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x411f53
push 0x200
push 0x5a2660
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x51ee8c
push 0x5a2660
call fcn.0041bfb0
add esp, 8
lea eax, [ebp - 0x154]
push eax
push 0x5a2660
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x411dad
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
jmp 0x411f53
push 0x51eea8
call fcn.004121af
add esp, 4
test eax, eax
je 0x411e2c
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0x5a2660
push 0x51eec0
push 0
call dword [ebp - 0x160]
test eax, eax
jne 0x411e27
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xb
call fcn.0040435c
add esp, 4
push 0x2020001
call fcn.004042f8
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x411f53
jmp 0x411eed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x411e86
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xc
call fcn.0040435c
add esp, 4
push 0x2020001
call fcn.004042f8
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x411f53
push 0
push 0
push 0
push 0
push 0
push 1
push 0
push 0x5a2660
call dword [ebp - 8]
add esp, 0x20
test eax, eax
jne 0x411eed
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xd
call fcn.0040435c
add esp, 4
push 0x2020001
call fcn.004042f8
add esp, 4
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x411f53
cmp dword [ebp - 0x14], 0
je 0x411f29
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5a1a2c], 1
mov eax, dword [ebp - 0x10]
jmp 0x411f53
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret