Function at 0x546800
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x546808
push ebx
xor eax, eax
push ebp
push 0x546b31
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.0040a39c
cmp dword [ebp - 0x11c], 0
jne 0x54688c
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, 0x546b48
call fcn.00404bfc
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.00404b44
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.00404bfc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0040a02c
test al, al
jne 0x5468cd
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, 0x546b54
mov dl, 1
mov eax, dword [0x40868c]
call fcn.0040dd6c
call fcn.00404248
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
call fcn.00405178
lea eax, [ebp - 0xc]
call fcn.004068a4
push eax
mov eax, dword [ebp - 4]
call fcn.00405188
mov ebx, eax
push ebx
call sub.oleaut32.dll_LoadTypeLib
call fcn.004cc048
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, 0x546b70
call fcn.0040ad58
mov eax, dword [ebp - 0x12c]
call fcn.00546414
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.004cc048
xor eax, eax
push ebp
push 0x546aa3
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.004cc060
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea edx, [ebp - 0x128]
xor ecx, ecx
mov eax, 0x546b90
call fcn.0040ad58
lea eax, [ebp - 0x130]
mov edx, 0x546bb0
call fcn.00404bb8
mov eax, dword [ebp - 0x130]
call fcn.00546414
pop ecx
mov eax, dword [ebp + 8]
cmp byte [eax - 3], 0
jne 0x546a16
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.004cc048
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 8]
call fcn.00404b78
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.0040a39c
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 8]
call fcn.00405178
mov eax, dword [ebp - 8]
call fcn.00405188
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.oleaut32.dll_RegisterTypeLib
call fcn.004cc048
jmp 0x546a88
push 0x546bb4
call sub.kernel32.dll_GetModuleHandleA_2
mov edx, dword [ebp + 8]
mov dword [edx - 0x1c], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x1c], 0
je 0x546a46
push 0x546bc4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp + 8]
mov dword [edx - 0x18], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x18], 0
jne 0x546a65
mov ecx, 0x546be0
mov dl, 1
mov eax, dword [0x40868c]
call fcn.0040dd30
call fcn.00404248
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 - 0x18]
call eax
call fcn.004cc048
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x546aaa
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
ret