Function at 0x10058ad0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102159f2
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1098
call fcn.10107170
mov eax, dword [0x102c6100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x109c], edi
xor eax, eax
lea ecx, [ebp - 0x158]
push 0xffffffffffffffff
push str.optAgreeLicense
mov dword [ebp - 0x1094], eax
mov dword [ebp - 0x10a4], eax
call fcn.100814f0
lea eax, [ebp - 0x158]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.100810b0
lea ecx, [ebp - 0x158]
mov byte [ebp - 0x1095], al
mov dword [ebp - 4], 0xffffffff
call fcn.10081700
cmp byte [ebp - 0x1095], 0
jne 0x10058d7a
mov eax, dword [edi + 4]
lea esi, [ebp - 0x16]
mov dword [ebp - 0x10a0], eax
mov ecx, 0x66
nop dword [eax + eax]
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x10058b90
push ecx
lea eax, [ebp - 0x16]
push eax
push esi
lea ecx, [ebp - 0x9c]
call fcn.1004cfc0
mov eax, 0xc
mov dword [ebp - 0x1094], eax
mov dword [ebp - 0x10a4], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x88], 7
lea ecx, [ebp - 0x8b0]
cmova eax, dword [ebp - 0x9c]
push eax
call fcn.1004cbc0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x88]
cmp ecx, 7
jbe 0x10058c40
mov edx, dword [ebp - 0x9c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10058c36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059543
push ecx
push edx
call fcn.1010693f
add esp, 8
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
mov dword [ebp - method.CK::RCWidgetLicenseTipDlg.2.virtual_0], vtable.CK::RCWidgetLicenseTipDlg.2.0
mov dword [ebp - method.CK::RCWidgetLicenseTipDlg.1.virtual_0], vtable.CK::RCWidgetLicenseTipDlg.1.0
mov dword [ebp - method.DuiLib::WindowImplBase.2.virtual_0], vtable.CK::RCWidgetLicenseTipDlg.4.0
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], vtable.CK::RCWidgetLicenseTipDlg.3.0
mov dword [ebp - method.DuiLib::CTxtWinHost.virtual_88], vtable.CK::RCWidgetLicenseTipDlg.5.0
mov dword [ebp - method.DuiLib::MenuReceiverImpl.virtual_8], vtable.CK::RCWidgetLicenseTipDlg.0
push eax
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push eax
push SysReAllocString
push str.AceWnd
push dword [ebp - 0x10a0]
lea ecx, [ebp - 0x8b0]
mov dword [ebp - 4], 2
call fcn.10080230
lea ecx, [ebp - 0x8b0]
call fcn.10080030
lea ecx, [ebp - 0x8b0]
call fcn.10080a80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8b0]
mov esi, eax
mov dword [ebp - method.CK::RCWidgetLicenseTipDlg.2.virtual_0], vtable.CK::RCWidgetLicenseTipDlg.2.0
mov dword [ebp - method.CK::RCWidgetLicenseTipDlg.1.virtual_0], vtable.CK::RCWidgetLicenseTipDlg.1.0
mov dword [ebp - method.DuiLib::WindowImplBase.2.virtual_0], vtable.CK::RCWidgetLicenseTipDlg.4.0
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], vtable.CK::RCWidgetLicenseTipDlg.3.0
mov dword [ebp - method.DuiLib::CTxtWinHost.virtual_88], vtable.CK::RCWidgetLicenseTipDlg.5.0
mov dword [ebp - method.DuiLib::MenuReceiverImpl.virtual_8], vtable.CK::RCWidgetLicenseTipDlg.0
call fcn.1004ccb0
cmp esi, 1
jne 0x10059525
push 0xffffffffffffffff
push str.optAgreeLicense
lea ecx, [ebp - 0x158]
call fcn.100814f0
push esi
lea eax, [ebp - 0x158]
mov dword [ebp - 4], 3
push eax
mov ecx, edi
call fcn.100812d0
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
call fcn.10081700
cmp byte [edi + 0x850], 0
je 0x10058d9f
lea eax, [edi + 0x808]
push eax
lea ecx, [ebp - 0x30]
call fcn.10053f50
mov ecx, eax
mov eax, dword [ebp - 0x1094]
or eax, 1
jmp 0x10058db8
lea eax, [ebp - 0xcc]
mov ecx, edi
push eax
call fcn.100597a0
mov ecx, eax
mov eax, dword [ebp - 0x1094]
or eax, 2
mov dword [ebp - 0xa4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xb4], xmm0
mov dword [ebp - 0xa0], 0
xor edx, edx
movups xmm0, xmmword [ecx]
movups xmmword [ebp - 0xb4], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0xa4], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
mov dword [ebp - 4], 5
test al, 2
je 0x10058e77
mov ecx, dword [ebp - 0xb8]
and eax, 0xfffffffd
mov dword [ebp - 0x1094], eax
cmp ecx, 7
jbe 0x10058e5a
mov edx, dword [ebp - 0xcc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10058e4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059548
push ecx
push edx
call fcn.1010693f
mov eax, dword [ebp - 0x1094]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], cx
mov byte [ebp - 4], 6
test al, 1
je 0x10058ecd
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x10058eb9
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10058eaf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059548
push ecx
push edx
call fcn.1010693f
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp byte [edi + 0x850], 0
jne 0x100592fe
cmp dword [ebp - 0xa0], 7
lea ecx, [ebp - 0xb4]
cmova ecx, dword [ebp - 0xb4]
call fcn.1005f150
test al, al
je 0x10058f04
cmp dword [ebp - 0xa4], 3
jae 0x100592fe
mov eax, dword [edi + 4]
lea esi, [ebp - 0x42]
mov dword [ebp - 0x10a0], eax
mov ecx, 0x67
mov eax, 0xcccccccd
sub esi, 2
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x10058f15
push ecx
lea eax, [ebp - 0x42]
push eax
push esi
lea ecx, [ebp - 0x9c]
call fcn.1004cfc0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x88], 7
lea ecx, [ebp - 0x1090]
cmova eax, dword [ebp - 0x9c]
push eax
call fcn.1004cbc0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x88]
cmp ecx, 7
jbe 0x10058fae
mov edx, dword [ebp - 0x9c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10058fa4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005954d
push ecx
push edx
call fcn.1010693f
add esp, 8
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
mov dword [ebp - method.CK::RCWidgetLicenseTipDlg.2.virtual_0], vtable.CK::RCWidgetPathTipDlg.1.0
mov dword [ebp - method.CK::RCWidgetPathTipDlg.4.virtual_0], vtable.CK::RCWidgetPathTipDlg.4.0
mov dword [ebp - method.DuiLib::WindowImplBase.2.virtual_0], vtable.CK::RCWidgetPathTipDlg.5.0
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], vtable.CK::RCWidgetPathTipDlg.3.0
mov dword [ebp - method.DuiLib::CTxtWinHost.virtual_88], vtable.CK::RCWidgetPathTipDlg.2.0
mov dword [ebp - method.DuiLib::MenuReceiverImpl.virtual_8], vtable.CK::RCWidgetPathTipDlg.0
push eax
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push eax
push SysReAllocString
push str.AceWnd
push dword [ebp - 0x10a0]
lea ecx, [ebp - 0x1090]
mov byte [ebp - 4], 8
call fcn.10080230
lea ecx, [ebp - 0x1090]
call fcn.10080030
lea ecx, [ebp - 0x1090]
call fcn.10080a80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1090]
mov esi, eax
mov dword [ebp - method.CK::RCWidgetLicenseTipDlg.2.virtual_0], vtable.CK::RCWidgetPathTipDlg.1.0
mov dword [ebp - method.CK::RCWidgetPathTipDlg.4.virtual_0], vtable.CK::RCWidgetPathTipDlg.4.0
mov dword [ebp - method.DuiLib::WindowImplBase.2.virtual_0], vtable.CK::RCWidgetPathTipDlg.5.0
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], vtable.CK::RCWidgetPathTipDlg.3.0
mov dword [ebp - method.DuiLib::CTxtWinHost.virtual_88], vtable.CK::RCWidgetPathTipDlg.2.0
mov dword [ebp - method.DuiLib::MenuReceiverImpl.virtual_8], vtable.CK::RCWidgetPathTipDlg.0
call fcn.1004ccb0
cmp esi, 5
jne 0x100594aa
xorps xmm0, xmm0
mov dword [ebp - 0x74], 0
xor eax, eax
mov dword [ebp - 0x70], 7
movups xmmword [ebp - 0x84], xmm0
mov word [ebp - 0x84], ax
push 0x410
push eax
lea eax, [ebp - 0xcc0]
mov byte [ebp - 4], 9
push eax
call fcn.1012de20
add esp, 0xc
mov dword [ebp - 0x1094], 0
lea eax, [ebp - 0x1094]
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x10059249
lea eax, [ebp - 0xcc0]
push eax
push dword [ebp - 0x1094]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x10059136
mov eax, dword [ebp - 0x1094]
test eax, eax
je 0x10059249
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x10059249
lea ecx, [ebp - 0xcc0]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10059140
sub ecx, edx
lea eax, [ebp - 0xcc0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.10058070
mov eax, dword [ebp - 0x1094]
test eax, eax
je 0x10059173
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x70], 7
lea ecx, [ebp - 0x84]
mov esi, dword [ebp - 0x74]
mov edx, esi
cmova ecx, dword [ebp - 0x84]
push 1
sub esp, 8
call fcn.1005b9a0
mov ecx, eax
mov dword [ebp - 0x8c], 0
add esp, 0xc
mov dword [ebp - 0x88], 0
cmp esi, ecx
lea eax, [ebp - 0x84]
xorps xmm0, xmm0
cmovb ecx, esi
cmp dword [ebp - 0x70], 7
push ecx
cmova eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x9c]
push eax
movups xmmword [ebp - 0x9c], xmm0
call fcn.10056580
mov ecx, dword [ebp - 0x70]
cmp ecx, 7
jbe 0x10059216
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005920c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059552
push ecx
push edx
call fcn.1010693f
add esp, 8
movups xmm0, xmmword [ebp - 0x9c]
push 0x17
push str.LocalProgramsAceView
movups xmmword [ebp - 0x84], xmm0
lea ecx, [ebp - 0x84]
movq xmm0, qword [ebp - 0x8c]
movq qword [ebp - 0x74], xmm0
call fcn.10054f10
mov edi, dword [ebp - 0x109c]
push 0xffffffffffffffff
push str.edtPath
lea ecx, [ebp - 0x158]
call fcn.100814f0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x70], 7
cmova eax, dword [ebp - 0x84]
sub esp, 0x84
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.100814f0
lea eax, [ebp - 0x158]
mov ecx, edi
push eax
call fcn.100811e0
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 9
call fcn.10081700
cmp dword [ebp - 0x70], 7
lea eax, [ebp - 0x84]
push dword [ebp - 0x74]
cmova eax, dword [ebp - 0x84]
lea ecx, [ebp - 0xb4]
push eax
call fcn.10058070
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x70]
cmp ecx, 7
jbe 0x100592fe
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100592f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059552
push ecx
push edx
call fcn.1010693f
add esp, 8
cmp dword [edi + 0x800], 0
jne 0x100594e9
cmp dword [ebp - 0xa0], 7
lea eax, [ebp - 0xb4]
push 0x105
cmova eax, dword [ebp - 0xb4]
push eax
push 0x102d15a0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, 0x102d15a0
call fcn.1005ee90
mov esi, eax
test esi, esi
je 0x100594b8
mov ecx, esi
call fcn.1005ef10
movzx eax, word [esi]
test ax, ax
je 0x100594b8
cmp eax, 0x5c
je 0x100594b8
sub esi, 0x102d15a0
sar esi, 1
push 0x102d15a0
mov dword [ebp - 0x109c], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
mov esi, dword [sym.imp.USER32.dll_CharPrevW]
jle 0x100593fd
nop dword [eax]
nop word [eax + eax]
push 0x102d1338
push 0x102d15a0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x100593b9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [0x102d1338], 0x10
je 0x100594b8
push 0x102d15a0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x102d15a0]
nop dword [eax + eax]
cmp word [eax], 0x5c
je 0x100593e5
push eax
push 0x102d15a0
call esi
cmp eax, 0x102d15a0
ja 0x100593d0
xor ecx, ecx
push 0x102d15a0
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, dword [ebp - 0x109c]
jg 0x10059390
push 0x102d15a0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x102d15a0]
push eax
push 0x102d15a0
call esi
cmp word [eax], 0x5c
je 0x1005942d
push 0x102ad234
push 0x102d15a0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x102d15a0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100594b8
mov edx, dword [ebp - 0xa4]
cmp edx, 3
jb 0x100594b8
lea ecx, [edi + 0x820]
lea eax, [ebp - 0xb4]
cmp ecx, eax
je 0x1005946d
cmp dword [ebp - 0xa0], 7
push edx
cmova eax, dword [ebp - 0xb4]
push eax
call fcn.10058070
push 1
mov ecx, edi
call fcn.1005aad0
push 0
push 0
push 0x7e8
mov ecx, edi
mov dword [edi + 0x804], 0
call fcn.100809a0
mov edx, dword [edi + 0x888]
lea ecx, [edi + 0x870]
call fcn.10052920
mov ecx, edi
call fcn.10051b40
jmp 0x100594e9
cmp esi, 4
jne 0x100594e9
mov ecx, edi
call fcn.1005ace0
jmp 0x100594e9
push 0xffffffffffffffff
push str.btnSetup
lea ecx, [ebp - 0x938]
call fcn.100814f0
push 0
lea eax, [ebp - 0x938]
mov byte [ebp - 4], 0xb
push eax
mov ecx, edi
call fcn.10080e80
lea ecx, [ebp - 0x938]
call fcn.10081700
mov ecx, dword [ebp - 0xa0]
cmp ecx, 7
jbe 0x10059525
mov edx, dword [ebp - 0xb4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005951b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059557
push ecx
push edx
call fcn.1010693f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101064d2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1013823f
call fcn.1013823f
call fcn.1013823f
call fcn.1013823f
call fcn.1013823f
int3