Function at 0x41df30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5510d5
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xe0], ebx
mov eax, 0xf
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xe8], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 1
push ebx
push 0x580469
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.00404410
mov eax, dword [ebp - 0xe8]
mov byte [ebp - 4], 2
cmp dword [eax + 0x10], ebx
je 0x41e675
cmp dword [esi + 0x10], ebx
je 0x41e675
cmp dword [edi + 0x10], ebx
je 0x41e675
mov eax, esi
call fcn.0041dd50
mov dword [ebp - 0xfc], eax
cmp eax, 0xffffffff
jne 0x41e06e
push 0x58284c
lea ecx, [ebp - 0x64]
call fcn.00402c60
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00409440
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00403af0
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00402cc0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00402cc0
mov esi, dword [ebp - 0xd8]
xor ebx, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x2c]
mov byte [esi], bl
call fcn.00403af0
mov eax, 1
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x48]
call fcn.00402cc0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00402cc0
mov eax, esi
jmp 0x41e6e9
mov ecx, dword [ebp - 0xe8]
mov esi, dword [ebp - 0xdc]
push ecx
call fcn.0041e710
test eax, eax
jne 0x41e117
mov esi, dword [ebp - 0xe8]
mov eax, dword [ebp - 0xdc]
push esi
call fcn.0041ec70
test eax, eax
jne 0x41e117
push 0x582860
lea ecx, [ebp - 0x80]
call fcn.00402c60
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.00409440
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00403af0
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00402cc0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00402cc0
mov edi, esi
mov esi, dword [ebp - 0xd8]
mov eax, esi
call fcn.00402ca0
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], al
call fcn.00402cc0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402cc0
mov eax, esi
jmp 0x41e6e9
cmp dword [edi + 0x14], 0x10
jb 0x41e121
mov eax, dword [edi]
jmp 0x41e123
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41e1a7
push 0x582870
lea ecx, [ebp - 0x80]
call fcn.00402c60
mov ecx, eax
mov eax, edi
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 7
call fcn.00409440
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00403af0
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00402cc0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00402cc0
mov edi, esi
mov esi, dword [ebp - 0xd8]
mov eax, esi
call fcn.00402ca0
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], al
call fcn.00402cc0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402cc0
mov eax, esi
jmp 0x41e6e9
mov esi, dword [ebp - 0xdc]
mov eax, dword [esi + 0x24]
add esi, 0x24
cmp eax, ebx
je 0x41e1c0
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], ebx
mov eax, dword [edi + 0x10]
inc eax
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xf4], ebx
mov dword [ebp - 0xec], ebx
cmp eax, ebx
jbe 0x41e3d8
call fcn.004083f0
mov edx, eax
mov dword [ebp - 0xdc], edx
cmp edx, ebx
je 0x41e3d8
cmp dword [edi + 0x14], 0x10
jb 0x41e239
mov eax, dword [edi]
jmp 0x41e23b
mov eax, edi
sub edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x41e240
push esi
lea edx, [ebp - 0xec]
push edx
lea eax, [ebp - 0xf8]
push eax
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xf4]
push ecx
lea edx, [ebp - 0xf0]
push edx
push 4
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
cmp eax, ebx
je 0x41e377
push eax
lea esi, [ebp - 0x9c]
call fcn.00406ff0
add esp, 4
mov esi, eax
push str.GetNamedSecurityInfo
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 9
call fcn.00402c60
mov ecx, eax
mov eax, edi
lea ebx, [ebp - 0xd4]
mov byte [ebp - 4], 0xa
call fcn.00409440
push eax
mov eax, 0x582880
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xb
call fcn.004093f0
mov ecx, eax
lea edx, [ebp - 0x64]
mov bl, 0xc
push edx
mov eax, esi
mov byte [ebp - 4], bl
call fcn.00409800
add esp, 8
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call fcn.00403af0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.00402cc0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xb
call fcn.00402cc0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xa
call fcn.00402cc0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 9
call fcn.00402cc0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00402cc0
mov eax, dword [ebp - 0xdc]
push eax
call fcn.00523616
mov edi, esi
mov esi, dword [ebp - 0xd8]
add esp, 4
mov eax, esi
call fcn.00402ca0
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], al
call fcn.00402cc0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402cc0
mov eax, esi
jmp 0x41e6e9
mov ecx, dword [ebp - 0xf0]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
call esi
mov edx, dword [ebp - 0xf4]
push edx
mov dword [ebp - 0xf0], ebx
call esi
mov eax, dword [ebp - 0xec]
push eax
mov dword [ebp - 0xf4], ebx
call esi
mov edi, dword [ebp - 0xe8]
mov eax, dword [edi + 0x10]
inc eax
mov dword [ebp - 0xec], ebx
cmp eax, ebx
jbe 0x41e3c9
call fcn.004083f0
mov esi, eax
mov dword [ebp - 0xe8], esi
cmp esi, ebx
jne 0x41e3fb
mov ecx, dword [ebp - 0xdc]
push ecx
call fcn.00523616
add esp, 4
mov esi, dword [ebp - 0xd8]
lea edi, [ebp - 0x2c]
mov eax, esi
call fcn.00402ca0
mov dword [ebp - 0xe0], 1
mov byte [ebp - 4], 1
jmp 0x41e054
cmp dword [edi + 0x14], 0x10
jb 0x41e405
mov eax, dword [edi]
jmp 0x41e407
mov eax, edi
mov edx, esi
sub edx, eax
jmp 0x41e410
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x41e410
mov edx, dword [ebp - 0xfc]
push 3
push 1
push edx
push esi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
lea edx, [ebp - 0x11c]
cmp dword [ebp + 0x14], ebx
je 0x41e448
lea ecx, [ebp - 0xe4]
push ecx
push ebx
jmp 0x41e456
mov ecx, dword [ebp - 0xf8]
lea eax, [ebp - 0xe4]
push eax
push ecx
push edx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
cmp eax, ebx
je 0x41e52f
push eax
lea esi, [ebp - 0xd4]
call fcn.00406ff0
add esp, 4
mov esi, eax
push str.SetEntriesInAcl
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xe
call fcn.00402c60
mov ecx, eax
lea eax, [ebp - 0x9c]
push eax
mov eax, esi
mov byte [ebp - 4], 0xf
call fcn.00409800
add esp, 4
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.00403af0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0xf
call fcn.00402cc0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xe
call fcn.00402cc0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 2
call fcn.00402cc0
mov ecx, dword [ebp - 0xe4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0xe8]
push edx
mov dword [ebp - 0xe4], ebx
call fcn.00523616
mov eax, dword [ebp - 0xdc]
push eax
call fcn.00523616
mov esi, dword [ebp - 0xd8]
add esp, 8
lea edi, [ebp - 0x2c]
mov eax, esi
call fcn.00402ca0
mov dword [ebp - 0xe0], 1
mov byte [ebp - 4], 1
jmp 0x41e054
mov ecx, dword [ebp - 0xe4]
mov edi, dword [ebp - 0xdc]
push ebx
push ecx
push ebx
push ebx
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
cmp eax, ebx
je 0x41e62a
push eax
lea esi, [ebp - 0x80]
call fcn.00406ff0
add esp, 4
mov esi, eax
push str.SetNamedSecutiryInfo
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x11
call fcn.00402c60
push eax
mov eax, edi
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x12
call fcn.004093f0
push eax
mov eax, 0x582880
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x13
call fcn.004093f0
mov ecx, eax
lea edx, [ebp - 0x9c]
push edx
mov eax, esi
mov byte [ebp - 4], 0x14
call fcn.00409800
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0x15
call fcn.00403af0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x14
call fcn.00402cc0
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x13
call fcn.00402cc0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0x12
call fcn.00402cc0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x11
call fcn.00402cc0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00402cc0
mov eax, dword [ebp - 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xe8]
push ecx
call fcn.00523616
mov edx, dword [ebp - 0xdc]
push edx
jmp 0x41e504
mov eax, dword [ebp - 0xe4]
cmp eax, ebx
je 0x41e641
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xe4], ebx
push esi
call fcn.00523616
push edi
call fcn.00523616
mov esi, dword [ebp - 0xd8]
add esp, 8
push 0x580469
mov ecx, esi
call fcn.00402c60
mov dword [ebp - 0xe0], 1
mov byte [ebp - 4], 1
jmp 0x41e054
push 0x24
push 0x582824
lea ecx, [ebp - 0x2c]
call fcn.00404410
mov esi, dword [ebp - 0xd8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x2c]
mov byte [esi], bl
call fcn.00403af0
mov esi, 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0xe0], 1
cmp dword [ebp - 0x34], esi
jb 0x41e6c2
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042465c
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], esi
jb 0x41e6e3
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0042465c
add esp, 4
mov eax, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret 0x10