Function at 0x56bff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x56bff8
push ebx
xor eax, eax
push ebp
push 0x56c321
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.0040a798
cmp dword [ebp - 0x11c], 0
jne 0x56c07c
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, 0x56c338
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.0040a31c
test al, al
jne 0x56c0bd
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, 0x56c344
mov dl, 1
mov eax, dword [0x4087f8]
call fcn.0040e790
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.004f2a38
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, 0x56c360
call fcn.0040b344
mov eax, dword [ebp - 0x12c]
call fcn.0056bc04
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.004f2a38
xor eax, eax
push ebp
push 0x56c293
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.004f2a58
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea edx, [ebp - 0x128]
xor ecx, ecx
mov eax, 0x56c380
call fcn.0040b344
lea eax, [ebp - 0x130]
mov edx, 0x56c3a0
call fcn.00404b44
mov eax, dword [ebp - 0x130]
call fcn.0056bc04
pop ecx
mov eax, dword [ebp + 8]
cmp byte [eax - 3], 0
jne 0x56c206
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.004f2a38
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 8]
call fcn.00404b04
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.0040a798
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.004f2a38
jmp 0x56c278
push 0x56c3a4
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 0x56c236
push 0x56c3b4
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 0x56c255
mov ecx, 0x56c3d0
mov dl, 1
mov eax, dword [0x4087f8]
call fcn.0040e748
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.004f2a38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c29a
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
ret