Function at 0x403bb6
Capabilities:
Check if file exists
Compare security identifiers
Get file attributes

Disassembly:
push 0x60
push 0x405cb0
call fcn.00405a98
mov eax, edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x20], edi
mov esi, eax
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, di
jne 0x403be3
sub esi, edx
sar esi, 1
mov dword [ebp - 4], edi
call fcn.00402daf
mov ebx, eax
mov dword [ebp - 0x34], ebx
test ebx, ebx
jne 0x403c3c
push dword [ebp + 8]
push 8
pop edx
xor ecx, ecx
call fcn.00401c7c
mov esi, eax
mov dword [ebp - 0x20], esi
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x406274
call sub.msvcrt.dll__local_unwind4
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x403c41
sub ecx, edx
sar ecx, 1
jne 0x403c69
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x406274
call sub.msvcrt.dll__local_unwind4
add esp, 0xc
xor eax, eax
jmp 0x403c2a
mov ecx, dword [ebp - 0x4c]
call fcn.00402daf
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x403c03
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x403c7d
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
lea eax, [eax*2 + 4]
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
jne 0x403cd9
push 8
pop ebx
mov dword [ebp - 0x20], ebx
push ebx
push dword [0x4065dc]
push dword [ebp + 0xc]
call fcn.00401b9f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x406274
call sub.msvcrt.dll__local_unwind4
add esp, 0x18
mov eax, ebx
jmp 0x403c2a
mov eax, dword [ebp - 0x24]
shr eax, 1
mov dword [ebp - 0x24], eax
push dword [ebp - 0x48]
push eax
push ebx
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
test esi, esi
je 0x403d35
mov eax, dword [ebp - 0x48]
movzx eax, word [eax + esi*2 - 2]
cmp eax, 0x3a
je 0x403d35
push 0x2f
pop ecx
cmp ax, cx
je 0x403d35
push 0x5c
pop edx
cmp ax, dx
je 0x403d35
mov esi, dword [ebp - 0x34]
movzx eax, word [esi]
cmp ax, cx
je 0x403d35
mov esi, dword [ebp - 0x24]
cmp ax, dx
je 0x403d38
push 0x401110
push esi
push ebx
call dword [sym.imp.msvcrt.dll_wcscat_s]
add esp, 0xc
jmp 0x403d38
mov esi, dword [ebp - 0x24]
push dword [ebp - 0x34]
push esi
push ebx
call dword [sym.imp.msvcrt.dll_wcscat_s]
add esp, 0xc
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403d63
push ebx
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
mov ecx, dword [ebp + 0xc]
jmp 0x403c0b
mov dword [ebp - 0x28], edi
push edi
lea eax, [ebp - 0x28]
push eax
push 1
push dword [ebp - 0x3c]
call dword [sym.imp.api_ms_win_security_sddl_l1_1_0.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x403dac
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x20], esi
push esi
push dword [0x4065dc]
push dword [ebp + 0xc]
call fcn.00401b9f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x406274
call sub.msvcrt.dll__local_unwind4
add esp, 0x18
jmp 0x403c28
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x403d7a
xor eax, eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x403d7a
cmp dword [ebp - 0x2c], 0
je 0x403c52
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x403d7a
push 8
pop ebx
mov esi, ebx
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + 8]
mov edx, edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], esi
movzx eax, word [eax + 4]
cmp edx, eax
jge 0x403ec4
lea eax, [ecx + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
mov esi, edi
mov dword [ebp - 0x60], esi
mov ecx, dword [ebp + 0x10]
cmp esi, dword [ecx]
jge 0x403e63
push dword [ecx + esi*4 + 4]
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
je 0x403e9c
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + esi*4 + 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
mov ecx, dword [ebp - 0x30]
movzx esi, word [ecx + 2]
sub esi, eax
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetLengthSid]
add esi, eax
add esi, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x24]
jb 0x403ea2
mov edx, dword [ebp - 0x50]
inc edx
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp - 0x30]
movzx eax, word [ecx + 2]
add ecx, eax
mov eax, dword [ebp - 0x2c]
jmp 0x403e20
inc esi
mov eax, dword [ebp - 0x48]
jmp 0x403e3d
mov esi, 0x216
mov dword [ebp - 0x20], esi
push esi
push dword [0x4065dc]
push dword [ebp + 0xc]
call fcn.00401b9f
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
jmp 0x403d9a
push esi
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x403cad
push 2
mov ecx, dword [ebp - 0x24]
push ecx
push esi
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_InitializeAcl]
test eax, eax
je 0x403d7a
mov eax, dword [ebp - 0x2c]
lea ebx, [eax + 8]
mov ecx, edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x30], ebx
movzx eax, word [eax + 4]
cmp ecx, eax
jge 0x404026
mov ecx, edi
mov dword [ebp - 0x4c], ecx
mov eax, edi
mov dword [ebp - 0x44], edi
lea edx, [ebx + 8]
mov esi, dword [ebp + 0x10]
cmp eax, dword [esi]
mov esi, dword [ebp - 0x38]
jge 0x403f3b
mov ecx, dword [ebp + 0x10]
push dword [ecx + eax*4 + 4]
push edx
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_EqualSid]
test eax, eax
mov eax, dword [ebp - 0x44]
je 0x403f5f
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + eax*4 + 4]
test ecx, ecx
jne 0x403f68
movzx eax, word [ebx + 2]
push eax
push ebx
push 0xffffffffffffffff
movzx eax, byte [esi]
push eax
push esi
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAce]
test eax, eax
jne 0x404011
jmp 0x403d7a
inc eax
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x4c]
jmp 0x403f12
mov dword [ebp - 0x24], edi
push dword [ebx + 4]
push edi
push ecx
movzx edx, byte [ebx]
lea ecx, [ebp - 0x24]
call fcn.00401e16
mov dword [ebp - 0x20], eax
test eax, eax
je 0x403fac
push eax
push dword [0x4065dc]
push dword [ebp + 0xc]
call fcn.00401b9f
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x406274
call sub.msvcrt.dll__local_unwind4
add esp, 0x18
mov eax, dword [ebp - 0x20]
jmp 0x403c2a
mov ecx, dword [ebp - 0x24]
movzx eax, word [ecx + 2]
push eax
push ecx
push 0xffffffffffffffff
movzx eax, byte [esi]
push eax
push esi
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AddAce]
test eax, eax
jne 0x404004
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x20], esi
push esi
push dword [0x4065dc]
push dword [ebp + 0xc]
call fcn.00401b9f
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll_free]
mov dword [ebp - 0x24], edi
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x406274
call sub.msvcrt.dll__local_unwind4
add esp, 0x1c
jmp 0x403c28
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebp - 0x24], edi
mov ecx, dword [ebp - 0x54]
inc ecx
mov dword [ebp - 0x54], ecx
movzx eax, word [ebx + 2]
add ebx, eax
mov eax, dword [ebp - 0x2c]
jmp 0x403ef9
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x58]
push ecx
push esi
push ecx
push edi
movzx eax, word [ebp - 0x1c]
and eax, 0x1000
neg eax
sbb eax, eax
and eax, 0x60000000
add eax, 0x20000000
neg ecx
sbb ecx, ecx
and ecx, 0x10
add ecx, 4
or eax, ecx
push eax
mov ebx, dword [ebp - 0x40]
mov ecx, ebx
call fcn.00402456
mov esi, eax
mov dword [ebp - 0x20], esi
push ebx
test esi, esi
je 0x404080
mov edx, esi
mov ecx, dword [ebp + 0xc]
call fcn.00401c7c
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x404096
jmp 0x403c15
push 0x2715
push dword [0x4065d8]
push dword [ebp + 0xc]
call fcn.00401b9f
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
call fcn.004040af
jmp 0x403c28