Function at 0x458910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov esi, esp
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x458966
xor eax, eax
jmp 0x458b18
mov esi, esp
push str.LoadLibraryExA
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 8], eax
push 0x4c847c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00458b30
add esp, 8
test eax, eax
je 0x4589d6
cmp dword [ebp - 8], 0
je 0x4589b5
mov esi, esp
push 8
push 0
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 8]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x1c], eax
jmp 0x4589cb
mov esi, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
jmp 0x458b15
cmp dword [ebp - 8], 0
je 0x458a17
mov esi, esp
push str.AddDllDirectory
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp esi, esp
call fcn.004a9923
test eax, eax
je 0x458a17
mov esi, esp
push 0x800
push 0
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 8]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 4], eax
jmp 0x458b15
mov esi, esp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x458b15
mov ecx, dword [ebp + 8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx + 1]
mov esi, esp
push ecx
call dword [section..data]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x458aff
mov esi, esp
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp esi, esp
call fcn.004a9923
test eax, eax
je 0x458aff
push 0x4c8490
mov ecx, dword [ebp - 0x18]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, dword [ebp - 0x18]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, dword [ebp - 0x18]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
add esp, 8
cmp dword [ebp - 8], 0
je 0x458ae3
mov esi, esp
push 8
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [ebp - 8]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x20], eax
jmp 0x458af9
mov esi, esp
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov esi, esp
mov ecx, dword [ebp - 0x18]
push ecx
call dword [0x4c0004]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov eax, dword [ebp - 4]
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret