Function at 0x54a6c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x54a6cc
push ebx
xor eax, eax
push ebp
push 0x54a9f5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x11c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040a014
cmp dword [ebp - 0x11c], 0
jne 0x54a750
lea eax, [ebp - 0x115]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA_1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
mov edx, 0x54aa0c
call fcn.00404b88
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00404ad0
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
call fcn.00404b88
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00409cb8
test al, al
jne 0x54a791
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea eax, [ebp - 0x128]
push eax
push 0
mov ecx, 0x54aa18
mov dl, 1
mov eax, dword [0x408530]
call fcn.0040d990
call fcn.00404204
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.0040511c
lea eax, [ebp - 0xc]
call fcn.00406990
push eax
mov eax, dword [ebp - 4]
call fcn.0040512c
mov ebx, eax
push ebx
call sub.oleaut32.dll_LoadTypeLib
call fcn.004d8f5c
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xf
lea edx, [ebp - 0x128]
xor ecx, ecx
mov eax, 0x54aa34
call fcn.0040aa14
mov eax, dword [ebp - 0x12c]
call fcn.0054a2d8
pop ecx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call fcn.004d8f5c
xor eax, eax
push ebp
push 0x54a967
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x130]
push eax
lea edx, [ebp - 0x134]
mov eax, dword [ebp - 0x10]
call fcn.004d8f74
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea edx, [ebp - 0x128]
xor ecx, ecx
mov eax, 0x54aa54
call fcn.0040aa14
lea eax, [ebp - 0x130]
mov edx, 0x54aa74
call fcn.00404b44
mov eax, dword [ebp - 0x130]
call fcn.0054a2d8
pop ecx
mov eax, dword [ebp + 8]
cmp byte [eax - 3], 0
jne 0x54a8da
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
call fcn.004d8f5c
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 8]
call fcn.00404b04
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.0040a014
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 8]
call fcn.0040511c
mov eax, dword [ebp - 8]
call fcn.0040512c
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.oleaut32.dll_RegisterTypeLib
call fcn.004d8f5c
jmp 0x54a94c
push 0x54aa78
call sub.kernel32.dll_GetModuleHandleA_2
mov edx, dword [ebp + 8]
mov dword [edx - 0x18], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x18], 0
je 0x54a90a
push 0x54aa88
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp + 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x1c], 0
jne 0x54a929
mov ecx, 0x54aaa4
mov dl, 1
mov eax, dword [0x408530]
call fcn.0040d954
call fcn.00404204
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov ax, word [ebx + 0x1a]
push eax
mov ax, word [ebx + 0x18]
push eax
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
call eax
call fcn.004d8f5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54a96e
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
ret