Function at 0x4153d5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x158], 0
push 0x534390
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
jne 0x415457
mov eax, dword [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415837
push 0x53439c
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x15c], eax
cmp dword [ebp - 0x15c], 0
jne 0x4154ab
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415837
push 0x5343c0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0
jne 0x4154f8
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415837
push 0x5343d0
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x415546
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415837
push 0x5343f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x415593
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415837
push 0x534400
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4155e1
mov edx, dword [ebp - 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 2
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415837
push 0x200
push 0x5c2a40
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x534414
push 0x5c2a40
call fcn.004202e0
add esp, 8
lea eax, [ebp - 0x150]
push eax
push 0x5c2a40
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x415649
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
jmp 0x415837
push 0x534430
call fcn.00415ef9
add esp, 4
test eax, eax
je 0x415710
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0x5c2a40
push 0x534448
push 0
call dword [ebp - 0x15c]
test eax, eax
jne 0x41570b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe000020b
jne 0x4156be
call fcn.00416148
cmp eax, 0xffffffff
jne 0x415697
jmp 0x4156be
push 0x200
push 0x5c2a40
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._setup_aladdin_aksusb.inf
push 0x5c2a40
call fcn.004202e0
add esp, 8
jmp 0x41576a
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xb
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415837
jmp 0x4157d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x41576a
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xc
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415837
push 0
push 0
push 0
push 0
push 0
push 1
push 0
push 0x5c2a40
call dword [ebp - 4]
add esp, 0x20
test eax, eax
jne 0x4157d1
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0xd
call fcn.00406ccc
add esp, 4
push 0x2020001
call fcn.00406c68
add esp, 4
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x415837
cmp dword [ebp - 0x10], 0
je 0x41580d
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x5bc8a8], 1
mov eax, dword [ebp - 0xc]
jmp 0x415837
mov edx, dword [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret