Function at 0x56bfa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x56bfa8
push ebx
xor eax, eax
push ebp
push 0x56c2d1
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 0x56c02c
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, 0x56c2e8
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 0x56c06d
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, 0x56c2f4
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, 0x56c310
call fcn.0040b344
mov eax, dword [ebp - 0x12c]
call fcn.0056bbb4
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 0x56c243
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, 0x56c330
call fcn.0040b344
lea eax, [ebp - 0x130]
mov edx, 0x56c350
call fcn.00404b44
mov eax, dword [ebp - 0x130]
call fcn.0056bbb4
pop ecx
mov eax, dword [ebp + 8]
cmp byte [eax - 3], 0
jne 0x56c1b6
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 0x56c228
push 0x56c354
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 0x56c1e6
push 0x56c364
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 0x56c205
mov ecx, 0x56c380
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 0x56c24a
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
ret