Function at 0x585ff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60781e
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x69001c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x264], eax
add eax, eax
cmp eax, 0x208
jae 0x586301
xor ecx, ecx
mov dword [ebp - 0x238], ecx
mov word [ebp + eax - 0x218], cx
xor eax, eax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x238], ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
lea edx, [ecx + 2]
mov word [ebp - 0x248], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x586081
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00406e80
mov dword [ebp - 4], 0
lea eax, [ebp - 0x248]
push 1
sub esp, 0x18
mov dword [ebp - 0x274], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x278], esp
push eax
call fcn.00406350
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.004f1920
add esp, 0x18
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.004f1d70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
call fcn.004075e0
push 7
xor eax, eax
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 0
push str.msi.dll
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00406e80
mov byte [ebp - 4], 6
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.004b0d10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x230]
call fcn.004075e0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x260]
mov eax, dword [ebp - 0x26c]
sub eax, dword [ebp - 0x270]
sar eax, 1
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x230]
push eax
call fcn.004f1640
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 8
jb 0x5861c8
mov eax, dword [eax]
mov ebx, dword [sym.imp.msi.dll_MsiMessageBoxW]
lea ecx, [ebp - 0x264]
push 0
push 0
push ecx
push 0
push eax
call ebx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x230]
call fcn.004075e0
mov edi, dword [ebp - 0x26c]
mov edx, edi
mov esi, dword [ebp - 0x270]
sub edx, esi
mov ecx, dword [ebp - 0x264]
inc ecx
sar edx, 1
cmp ecx, edx
jae 0x586215
lea eax, [esi + ecx*2]
mov dword [ebp - 0x26c], eax
jmp 0x586254
jbe 0x586254
mov eax, dword [ebp - 0x268]
sub eax, esi
sar eax, 1
cmp ecx, eax
jbe 0x586234
push ecx
push ecx
lea ecx, [ebp - 0x270]
call fcn.004fab20
jmp 0x58624e
sub ecx, edx
lea eax, [ecx + ecx]
push eax
push 0
push edi
lea esi, [eax + edi]
call fcn.005929f0
add esp, 0xc
mov dword [ebp - 0x26c], esi
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x260]
call fcn.004f1640
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
jb 0x586272
mov eax, dword [eax]
push 0
push 0
lea ecx, [ebp - 0x264]
push ecx
push esi
push eax
call ebx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x230]
call fcn.004075e0
mov edi, dword [ebp - 0x264]
xor eax, eax
mov ebx, dword [ebp - 0x270]
xor edx, edx
cmp edx, edi
jae 0x5862bd
movzx esi, word [ebx + edx*2]
cmp esi, 0x2e
je 0x5862b7
lea ecx, [eax + eax*4]
add ecx, ecx
lea eax, [esi - 0x30]
add eax, ecx
inc edx
cmp edx, 3
jb 0x5862a0
lea esi, [eax + eax*4]
add esi, esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x270]
call fcn.004faa80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.004075e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059046a
mov esp, ebp
pop ebp
ret
call fcn.00590b6a
int3