Function at 0x56c410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x28
push 0
push 0
dec ecx
jne 0x56c418
push ebx
xor eax, eax
push ebp
push 0x56c741
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.0040a7a8
cmp dword [ebp - 0x11c], 0
jne 0x56c49c
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, 0x56c758
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.0040a32c
test al, al
jne 0x56c4dd
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, 0x56c764
mov dl, 1
mov eax, dword [0x408808]
call fcn.0040e7a0
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.004f2cfc
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, 0x56c780
call fcn.0040b354
mov eax, dword [ebp - 0x12c]
call fcn.0056c024
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.004f2cfc
xor eax, eax
push ebp
push 0x56c6b3
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.004f2d1c
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x128], eax
mov byte [ebp - 0x124], 0xb
lea edx, [ebp - 0x128]
xor ecx, ecx
mov eax, 0x56c7a0
call fcn.0040b354
lea eax, [ebp - 0x130]
mov edx, 0x56c7c0
call fcn.00404b44
mov eax, dword [ebp - 0x130]
call fcn.0056c024
pop ecx
mov eax, dword [ebp + 8]
cmp byte [eax - 3], 0
jne 0x56c626
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.004f2cfc
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 8]
call fcn.00404b04
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.0040a7a8
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.004f2cfc
jmp 0x56c698
push 0x56c7c4
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 0x56c656
push 0x56c7d4
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 0x56c675
mov ecx, 0x56c7f0
mov dl, 1
mov eax, dword [0x408808]
call fcn.0040e758
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.004f2cfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56c6ba
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
ret