Function at 0x10059190
Capabilities:
Check if file exists
Get file attributes

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 0x10235212
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1098
call fcn.10123c70
mov eax, dword [0x102ec100]
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 - 0x1098], eax
mov dword [ebp - 0x10a4], eax
call fcn.10088bd0
lea eax, [ebp - 0x158]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.10088790
lea ecx, [ebp - 0x158]
mov byte [ebp - 0x1091], al
mov dword [ebp - 4], 0xffffffff
call fcn.10088de0
cmp byte [ebp - 0x1091], 0
jne 0x1005943a
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 0x10059250
push ecx
lea eax, [ebp - 0x16]
push eax
push esi
lea ecx, [ebp - 0x9c]
call fcn.1004d270
mov eax, 0xc
mov dword [ebp - 0x1098], 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 0x10059300
mov edx, dword [ebp - 0x9c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100592f6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059b73
push ecx
push edx
call fcn.10123601
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.10087910
lea ecx, [ebp - 0x8b0]
call fcn.10087710
lea ecx, [ebp - 0x8b0]
call fcn.10088160
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 0x10059b55
push 0xffffffffffffffff
push str.optAgreeLicense
lea ecx, [ebp - 0x158]
call fcn.10088bd0
push esi
lea eax, [ebp - 0x158]
mov dword [ebp - 4], 3
push eax
mov ecx, edi
call fcn.100889b0
lea ecx, [ebp - 0x158]
mov dword [ebp - 4], 0xffffffff
call fcn.10088de0
cmp byte [edi + 0x84c], 0
je 0x1005945f
lea eax, [edi + 0x808]
push eax
lea ecx, [ebp - 0x30]
call fcn.10054540
mov ecx, eax
mov eax, dword [ebp - 0x1098]
or eax, 1
jmp 0x10059478
lea eax, [ebp - 0xcc]
mov ecx, edi
push eax
call fcn.10059e30
mov ecx, eax
mov eax, dword [ebp - 0x1098]
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 0x10059537
mov ecx, dword [ebp - 0xb8]
and eax, 0xfffffffd
mov dword [ebp - 0x1098], eax
cmp ecx, 7
jbe 0x1005951a
mov edx, dword [ebp - 0xcc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005950a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059b78
push ecx
push edx
call fcn.10123601
mov eax, dword [ebp - 0x1098]
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 0x1005958d
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x10059579
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005956f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059b78
push ecx
push edx
call fcn.10123601
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
cmp byte [edi + 0x84c], 0
jne 0x10059931
cmp dword [ebp - 0xa0], 7
lea ecx, [ebp - 0xb4]
cmova ecx, dword [ebp - 0xb4]
call fcn.100600e0
test al, al
je 0x100595c4
cmp dword [ebp - 0xa4], 3
jae 0x10059931
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 0x100595d5
push ecx
lea eax, [ebp - 0x42]
push eax
push esi
lea ecx, [ebp - 0x9c]
call fcn.1004d270
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 0x1005966e
mov edx, dword [ebp - 0x9c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10059664
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059b7d
push ecx
push edx
call fcn.10123601
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.10087910
lea ecx, [ebp - 0x1090]
call fcn.10087710
lea ecx, [ebp - 0x1090]
call fcn.10088160
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 0x10059ada
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
lea edx, [ebp - 0x84]
mov byte [ebp - 4], 9
lea ecx, [esi + 0x17]
call fcn.100603c0
test al, al
je 0x1005987c
cmp dword [ebp - 0x70], 7
lea ecx, [ebp - 0x84]
mov esi, dword [ebp - 0x74]
mov edx, esi
cmova ecx, dword [ebp - 0x84]
push 1
push 0x102d0004
push ecx
call fcn.1005c270
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.1004d150
mov ecx, dword [ebp - 0x70]
cmp ecx, 7
jbe 0x10059849
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1005983f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059b82
push ecx
push edx
call fcn.10123601
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.100554a0
mov edi, dword [ebp - 0x109c]
push 0xffffffffffffffff
push str.edtPath
lea ecx, [ebp - 0x158]
call fcn.10088bd0
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.10088bd0
lea eax, [ebp - 0x158]
mov ecx, edi
push eax
call fcn.100888c0
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 9
call fcn.10088de0
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.10058740
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x70]
cmp ecx, 7
jbe 0x10059931
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10059927
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059b82
push ecx
push edx
call fcn.10123601
add esp, 8
cmp dword [edi + 0x800], 0
jne 0x10059b19
cmp dword [ebp - 0xa0], 7
lea eax, [ebp - 0xb4]
push 0x105
cmova eax, dword [ebp - 0xb4]
push eax
push 0x102f85f0
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, 0x102f85f0
call fcn.1005fe20
mov esi, eax
test esi, esi
je 0x10059ae8
mov ecx, esi
call fcn.1005fea0
movzx eax, word [esi]
test ax, ax
je 0x10059ae8
cmp eax, 0x5c
je 0x10059ae8
sub esi, 0x102f85f0
sar esi, 1
push 0x102f85f0
mov dword [ebp - 0x109c], esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, esi
mov esi, dword [sym.imp.USER32.dll_CharPrevW]
jle 0x10059a2d
nop word [eax + eax]
push 0x102f8388
push 0x102f85f0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x100599e9
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [0x102f8388], 0x10
je 0x10059ae8
push 0x102f85f0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x102f85f0]
nop dword [eax + eax]
cmp word [eax], 0x5c
je 0x10059a15
push eax
push 0x102f85f0
call esi
cmp eax, 0x102f85f0
ja 0x10059a00
xor ecx, ecx
push 0x102f85f0
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, dword [ebp - 0x109c]
jg 0x100599c0
push 0x102f85f0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x102f85f0]
push eax
push 0x102f85f0
call esi
cmp word [eax], 0x5c
je 0x10059a5d
push 0x102d0004
push 0x102f85f0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x102f85f0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10059ae8
mov edx, dword [ebp - 0xa4]
cmp edx, 3
jb 0x10059ae8
lea ecx, [edi + 0x820]
lea eax, [ebp - 0xb4]
cmp ecx, eax
je 0x10059a9d
cmp dword [ebp - 0xa0], 7
push edx
cmova eax, dword [ebp - 0xb4]
push eax
call fcn.10058740
push 1
mov ecx, edi
call fcn.1005b210
push 0
push 0
push 0x7e8
mov ecx, edi
mov dword [edi + 0x804], 0
call fcn.10088080
mov edx, dword [edi + 0x884]
lea ecx, [edi + 0x86c]
call fcn.10052cc0
mov ecx, edi
call fcn.10051ee0
jmp 0x10059b19
cmp esi, 4
jne 0x10059b19
mov ecx, edi
call fcn.1005b420
jmp 0x10059b19
push 0xffffffffffffffff
push str.btnSetup
lea ecx, [ebp - 0x938]
call fcn.10088bd0
push 0
lea eax, [ebp - 0x938]
mov byte [ebp - 4], 0xb
push eax
mov ecx, edi
call fcn.10088560
lea ecx, [ebp - 0x938]
call fcn.10088de0
mov ecx, dword [ebp - 0xa0]
cmp ecx, 7
jbe 0x10059b55
mov edx, dword [ebp - 0xb4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10059b4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10059b87
push ecx
push edx
call fcn.10123601
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.10123194
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10154fbf
call fcn.10154fbf
call fcn.10154fbf
call fcn.10154fbf
call fcn.10154fbf
int3