Function at 0x417360
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0xb30
mov eax, dword [esp + 0xb34]
lea ecx, [eax + 0x14]
lea edx, [esp + 0x20]
push ebx
add eax, 0x25
push edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call fcn.004224f0
lea eax, [esp + 0x28]
push 0x4698e4
push eax
call fcn.00459902
mov ebx, eax
add esp, 0xc
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x4173dc
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x134]
push str.Could_not_open__s_in_updateFileAccessList___n
push edx
call fcn.00458ee7
lea eax, [esp + 0x138]
push eax
mov dword [esp + 0x13c], 1
call fcn.0043e010
add esp, 0x10
pop ebx
add esp, 0xb30
ret
push esi
push 2
push 0
push ebx
call fcn.0045985d
push ebx
call fcn.0045978d
push 0
mov esi, eax
push 0
push ebx
mov dword [esp + 0x3c], esi
call fcn.0045985d
add esp, 0x1c
cmp esi, 1
jge 0x417447
push ebx
call fcn.00459521
push esi
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x140]
push str.File__s_is_length__d_in_updateFileAccessList___n
push edx
call fcn.00458ee7
lea eax, [esp + 0x144]
push eax
mov dword [esp + 0x148], 1
call fcn.0043e010
add esp, 0x18
pop esi
pop ebx
add esp, 0xb30
ret
mov esi, dword [esp + 0x20]
push ebp
push edi
add esi, 0x800
push esi
call fcn.00459619
mov edx, eax
mov ecx, esi
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
add esp, 4
xor ebp, ebp
test edx, edx
mov dword [esp + 0x14], edx
rep stosb byte es:[edi], al
jne 0x4174c3
push ebx
call fcn.00459521
mov ecx, dword [esp + 0x2c]
add ecx, 0x104
push ecx
lea edx, [esp + 0x144]
push str.Failed_to_malloc__d_bytes_in_updateFileAccessList___n
push edx
call fcn.00458ee7
lea eax, [esp + 0x148]
push eax
mov dword [esp + 0x14c], 1
call fcn.0043e010
add esp, 0x14
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xb30
ret
push ebx
lea ecx, [esp + 0x340]
push 0x801
push ecx
mov byte [esp + 0x348], 0
call fcn.0045b1a6
lea ecx, [esp + 0x348]
add esp, 0xc
lea esi, [ecx + 1]
jmp 0x4174f0
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4174f0
mov edx, dword [esp + 0x14]
sub ecx, esi
lea edi, [edx + ebp]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x33c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x33c]
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x417520
sub ecx, esi
add ebp, ecx
test eax, eax
je 0x41754e
push 0x15
lea eax, [esp + 0x340]
push str._PROTECTED_FILE_LIST_
push eax
call fcn.0045c0d0
add esp, 0xc
test eax, eax
jne 0x4174c3
push ebx
call fcn.0045978d
push 0
push 0
push ebx
mov esi, eax
call fcn.0045985d
mov edi, dword [esp + 0x24]
push ebx
push esi
push 1
push edi
call fcn.00459489
add esp, 0x20
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x417593
push ebx
call fcn.00459521
push edi
call fcn.0045932f
add esp, 8
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xb30
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4175a2
sub eax, edx
mov dword [esp + 0x2c], eax
nop
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x340]
push 0x801
push edx
mov byte [esp + 0x348], 0
call fcn.0045b1a6
mov ebx, eax
push 8
lea eax, [esp + 0x34c]
push eax
push str.filename
call fcn.0045c0d0
add esp, 0x18
test eax, eax
jne 0x417601
lea ebp, [esp + 0x344]
mov al, byte [ebp]
cmp al, 0x20
je 0x4175fe
cmp al, 0x3a
jne 0x417608
inc ebp
jmp 0x4175f3
lea ebp, [esp + 0x33c]
lea eax, [esp + 0x33c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417612
sub eax, edx
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x14]
lea edi, [edx + eax]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x33c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x33c]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417647
mov edi, dword [esp + 0x10]
sub eax, edx
add edi, eax
mov eax, ebp
mov dword [esp + 0x10], edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417660
sub eax, edx
mov esi, eax
js 0x41768f
lea ecx, [esi + ebp - 1]
mov al, byte [ecx]
cmp al, 0xd
je 0x41767f
cmp al, 0xa
je 0x41767f
cmp al, 9
jne 0x417687
dec esi
dec ecx
test esi, esi
jge 0x417671
jmp 0x41768f
test esi, esi
jl 0x41768f
mov byte [esi + ebp], 0
mov eax, dword [esp + 0x2c]
cmp eax, esi
jl 0x4176b9
mov edx, dword [esp + 0x1c]
sub eax, esi
add eax, edx
push eax
push ebp
call fcn.0045ba9a
add esp, 8
test eax, eax
jne 0x4176b9
test esi, esi
jle 0x4176b9
mov dword [esp + 0x24], 1
test ebx, ebx
mov esi, dword [esp + 0x24]
je 0x4176c9
test esi, esi
je 0x4175b0
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x340]
push 0x801
push ecx
call fcn.0045b1a6
add esp, 0xc
test eax, eax
je 0x417981
mov ebx, 4
push 8
lea edx, [esp + 0x340]
push str.Approved
push edx
call fcn.0045c0d0
add esp, 0xc
test eax, eax
jne 0x417718
mov eax, dword [esp + 0xb44]
cmp dword [eax + 8], 2
je 0x417747
push 6
lea ecx, [esp + 0x340]
push str.Denied
push ecx
call fcn.0045c0d0
add esp, 0xc
test eax, eax
jne 0x417870
mov edx, dword [esp + 0xb44]
cmp dword [edx + 8], ebx
jne 0x417870
lea edx, [esp + 0x33c]
dec edx
nop
lea eax, [esp + 0x33c]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417760
sub eax, esi
cmp byte [edx + eax], 0xa
je 0x4177af
lea eax, [esp + 0x33c]
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417780
sub eax, esi
cmp byte [edx + eax], 0xd
je 0x4177af
lea eax, [esp + 0x33c]
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4177a0
sub eax, esi
cmp byte [edx + eax], 0x20
jne 0x4177ce
lea eax, [esp + 0x33c]
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4177c0
sub eax, esi
mov byte [edx + eax], cl
jmp 0x417750
lea eax, [esp + 0x33c]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4177d8
sub eax, esi
mov cl, byte [edx + eax]
lea edi, [esp + 0x33c]
dec edi
cmp cl, 0x3a
jne 0x417804
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4177f1
mov ax, word [0x46a3c4]
mov word [edi], ax
jmp 0x41781f
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x417804
mov cx, word [0x46afbc]
mov dl, byte [0x46afbe]
mov word [edi], cx
mov byte [edi + 2], dl
mov eax, dword [esp + 0x18]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417825
lea edi, [esp + 0x33c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417836
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x33c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x417856
mov ax, word [0x4698f0]
mov cl, byte [0x4698f2]
mov word [edi], ax
mov byte [edi + 2], cl
lea eax, [esp + 0x33c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417880
sub eax, edx
mov edx, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x10]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x33c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x33c]
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4178b5
sub eax, ecx
mov ecx, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x340]
push 0x801
push ecx
mov byte [esp + 0x348], dl
call fcn.0045b1a6
add esp, 0xc
test eax, eax
je 0x417ac8
push 8
lea edx, [esp + 0x340]
push str.Filename
push edx
call fcn.0045c0d0
add esp, 0xc
test eax, eax
jne 0x4176f0
lea eax, [esp + 0x33c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417920
sub eax, edx
mov dword [esp + 0x2c], eax
je 0x417ac8
lea eax, [esp + 0x33c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417940
sub eax, edx
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x14]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x33c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x33c]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417975
jmp 0x417abc
mov eax, dword [esp + 0x14]
cmp byte [edi + eax - 1], 0xa
je 0x41799a
mov byte [edi + eax], 0xd
inc edi
mov byte [edi + eax], 0xa
inc edi
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0xb44]
mov eax, dword [ecx + 8]
cmp eax, 2
jne 0x417a32
test esi, esi
mov edx, dword [esp + 0x18]
push edx
jne 0x4179d2
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x344]
push str.Filename_:__s_r_nApproved_:__s_r_nDenied___:__r_n
push ecx
call fcn.00458ee7
add esp, 0x10
jmp 0x4179e7
lea eax, [esp + 0x340]
push str.Approved_:__s_r_nDenied___:__r_n
push eax
call fcn.00458ee7
add esp, 0xc
lea eax, [esp + 0x33c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4179f1
sub eax, edx
mov edx, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x10]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x33c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x33c]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417a26
jmp 0x417abc
cmp eax, 4
jne 0x417ac8
test esi, esi
mov eax, dword [esp + 0x18]
push eax
jne 0x417a60
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x344]
push str.Filename_:__s_r_nApproved_:__r_nDenied___:__s_r_n
push edx
call fcn.00458ee7
add esp, 0x10
jmp 0x417a75
lea ecx, [esp + 0x340]
push str.Approved_:__r_nDenied___:__s_r_n
push ecx
call fcn.00458ee7
add esp, 0xc
lea eax, [esp + 0x33c]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417a80
sub eax, edx
mov edx, dword [esp + 0x14]
mov ecx, eax
mov eax, dword [esp + 0x10]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x33c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea eax, [esp + 0x33c]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417ab5
mov ecx, dword [esp + 0x10]
sub eax, edx
add ecx, eax
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x20]
push ebx
call fcn.0045978d
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov esi, eax
push ebx
mov eax, edi
sub eax, esi
push eax
lea edx, [ecx + ebp]
push 1
push edx
call fcn.00459489
sub edi, esi
push ebx
add ebp, edi
call fcn.00459521
lea eax, [esp + 0x48]
push 0x469850
push eax
call fcn.00459902
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x417ba1
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x417b53
test al, 1
je 0x417b53
push 0x80
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x30]
push 0x469850
push eax
call fcn.00459902
mov esi, eax
add esp, 8
test esi, esi
jne 0x417ba1
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x140]
push str.Could_not_open__s_in_updateFileAccessList___for_writing_n
push edx
call fcn.00458ee7
lea eax, [esp + 0x144]
push eax
mov dword [esp + 0x148], 1
call fcn.0043e010
push 0
call fcn.00459521
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0045932f
add esp, 0x18
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xb30
ret
mov edi, dword [esp + 0x14]
push esi
push ebp
push 1
push edi
call fcn.004592e3
push esi
call fcn.00459521
push edi
call fcn.0045932f
add esp, 0x18
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xb30
ret