Function at 0x40568b
Capabilities:
Get common file path

Disassembly:
push 0x880
mov eax, 0x554317
call fcn.00527be2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x87c], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x88c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx], vtable.CMsCabInstall.0
xor esi, esi
mov dword [ebp - 0x888], ebx
mov dword [ebp - 0x880], eax
mov edi, edx
mov dword [ebx + 0x10], esi
call fcn.0040a7c5
mov dword [ebx + 0xc], eax
mov dword [eax], eax
mov eax, dword [ebx + 0xc]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [eax + 8], eax
mov eax, dword [ebx + 0xc]
mov byte [eax + 0xec], 1
mov eax, dword [ebx + 0xc]
mov byte [eax + 0xed], 1
mov dword [ebp - 4], esi
mov dword [ebx + 0x20], esi
call fcn.0040aaf7
mov dword [ebx + 0x1c], eax
mov dword [eax], eax
mov eax, dword [ebx + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [eax + 8], eax
mov eax, dword [ebx + 0x1c]
mov byte [eax + 0x108], 1
mov eax, dword [ebx + 0x1c]
mov byte [eax + 0x109], 1
lea esi, [ebx + 0x28]
mov byte [ebp - 4], 1
call fcn.00408e5c
mov byte [ebp - 4], 2
test edi, edi
je 0x405741
mov eax, edi
mov edi, 0x585d54
jmp 0x405748
mov edi, 0x585d54
mov eax, edi
push eax
lea esi, [ebx + 0x38]
call fcn.0040829d
mov eax, dword [ebp - 0x87c]
mov byte [ebp - 4], 3
test eax, eax
jne 0x405761
mov eax, edi
push eax
lea esi, [ebx + 0x60]
call fcn.0040829d
lea eax, [ebx + 0x7c]
and dword [eax + 0x10], 0
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [ebp - 0x884], eax
mov word [eax], cx
mov eax, dword [ebp - 0x88c]
mov byte [ebp - 4], 5
test eax, eax
jne 0x405793
mov eax, edi
lea esi, [ebx + 0x98]
push eax
mov dword [ebp - 0x87c], esi
call fcn.0040829d
mov eax, dword [ebp - 0x880]
mov byte [ebp - 4], 6
test eax, eax
jne 0x4057b5
mov eax, edi
push eax
lea esi, [ebx + 0xb4]
call fcn.0040829d
push edi
lea esi, [ebx + 0xd0]
mov byte [ebp - 4], 7
call fcn.0040829d
lea eax, [ebp - 0x224]
push eax
push 0x104
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x585004
lea esi, [ebp - 0x85c]
call fcn.0040829d
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x840]
mov byte [ebp - 4], 9
call fcn.0040af6b
pop ecx
pop ecx
push 1
xor edi, edi
mov byte [ebp - 4], 0xb
call fcn.00409659
cmp dword [ebx + 0xa8], edi
je 0x40593c
mov edi, dword [ebp - 0x87c]
cmp dword [edi + 0x14], 8
jb 0x405839
mov eax, dword [edi]
jmp 0x40583b
mov eax, edi
mov esi, 0x100
push esi
lea ecx, [ebp - 0x624]
push ecx
push esi
lea ecx, [ebp - 0x824]
push ecx
push esi
lea ecx, [ebp - 0x424]
push ecx
push 3
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.0052569e
add esp, 0x24
cmp word [ebp - 0x18], 0
jne 0x4058c4
cmp word [ebp - 0x424], 0x5c
je 0x4058c4
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x878]
push eax
mov ebx, edi
call fcn.0040af10
pop ecx
pop ecx
mov ebx, eax
mov eax, dword [ebp - 0x87c]
mov byte [ebp - 4], 0xc
call fcn.00409383
push 1
xor edi, edi
lea esi, [ebp - 0x878]
mov byte [ebp - 4], 0xb
call fcn.00409659
mov ebx, dword [ebp - 0x888]
mov edi, dword [ebp - 0x87c]
mov esi, 0x100
cmp dword [edi + 0x14], 8
jb 0x4058cc
mov edi, dword [edi]
push esi
lea eax, [ebp - 0x624]
push eax
push esi
lea eax, [ebp - 0x824]
push eax
push esi
lea eax, [ebp - 0x424]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0052569e
push 0
push 0
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x224]
push 0x105
push eax
call fcn.00525585
lea eax, [ebp - 0x224]
add esp, 0x3c
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40591c
mov esi, dword [ebp - 0x884]
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x224]
call fcn.00409cec
push 1
xor edi, edi
lea esi, [ebp - 0x840]
mov byte [ebp - 4], 8
call fcn.00409659
mov eax, ebx
call fcn.00527c65
ret 0xc