Function at 0x6202c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x78a6d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x6202df
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [esi + 0x10], 0
je 0x620568
cmp eax, 0xffffffff
je 0x620568
and eax, 0x410
cmp eax, 0x10
jne 0x620568
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 0
xor bl, bl
mov dword [ebp - 0x1c], 0
push eax
mov byte [ebp - 0xd], bl
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x62037f
push eax
push str.Unable_to_initialize_SID_for_SYSTEM
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x750d78
push 0x45
push 0x3a
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonUtilityACLHelper.cpp
push str.SetACLPrivilegedOnly
call fcn.00612830
add esp, 0x20
jmp 0x620528
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x6203be
push eax
push str.Unable_to_initialize_SID_for_Admins
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x750d78
push 0x45
push 0x41
jmp 0x620368
push 0x40
lea eax, [ebp - 0x60]
push 0
push eax
call fcn.0058d130
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push eax
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x10000000
push eax
push 2
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 3
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x40], 0x10000000
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x620465
push 0
push 0
push eax
push str.SetEntriesInAcl
push 0x45
push 0x60
jmp 0x620368
mov edi, reloc.WS2_32.dll_connect
xor ebx, ebx
call fcn.00616190
test al, al
je 0x62047d
mov ebx, dword [ebp - 0x14]
mov edi, reloc.WS2_32.dll_getpeername
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x620487
mov eax, dword [esi]
push 0
push 1
push 0
push 0
push 0
push dword [ebp - 0x1c]
push 0
push ebx
push edi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_TreeResetNamedSecurityInfoW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x620526
cmp dword [esi + 0x14], 8
jb 0x6204b2
mov esi, dword [esi]
test esi, esi
je 0x6204fb
push esi
call fcn.0059a3bd
inc eax
add esp, 4
cmp eax, 0x3fffffff
jg 0x6204fb
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0058b710
mov edi, esp
test edi, edi
je 0x6204f8
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x20]
neg eax
sbb eax, eax
and eax, edi
jmp 0x6204fd
mov ebx, dword [ebp - 0x20]
xor eax, eax
push eax
push str.Unable_to_set_security_attributes_for__s_and_its_subfolders
push 0
push ebx
push str.TreeResetNamedSecurityInfo
push 0x45
push 0x7e
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonUtilityACLHelper.cpp
push str.SetACLPrivilegedOnly
call fcn.00612830
mov bl, byte [ebp - 0xd]
add esp, 0x24
jmp 0x620528
mov bl, 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x620536
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x620544
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x620552
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, bl
lea esp, [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x620570
mov esi, dword [esi]
test esi, esi
je 0x6205b3
push esi
call fcn.0059a3bd
inc eax
add esp, 4
cmp eax, 0x3fffffff
jg 0x6205b3
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0058b710
mov edi, esp
test edi, edi
je 0x6205b3
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x6205b5
xor eax, eax
push eax
push str.__s__is_not_a_valid_directory
push 0x45
push 0x2b
push str.C:_temp_build_thehoffQuicksilver_fcs0.742171161775Quicksilver_fcs_vpnCommonUtilityACLHelper.cpp
push str.SetACLPrivilegedOnly
call fcn.006129f0
add esp, 0x18
xor al, al
lea esp, [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058a893
mov esp, ebp
pop ebp
ret