Function at 0x41eb90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551db4
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5a9f00]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0xe4], ebx
mov eax, 0xf
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xec], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 1
push ebx
push 0x581489
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.00404400
mov eax, dword [ebp - 0xec]
mov byte [ebp - 4], 2
cmp dword [eax + 0x10], ebx
je 0x41f327
cmp dword [esi + 0x10], ebx
je 0x41f327
cmp dword [edi + 0x10], ebx
je 0x41f327
mov eax, esi
call fcn.0041e9b0
mov dword [ebp - 0x100], eax
cmp eax, 0xffffffff
jne 0x41ecd1
push 0x583980
lea ecx, [ebp - 0x68]
call fcn.00402c90
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x84]
mov byte [ebp - 4], 3
call fcn.00409440
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.00403b10
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00402cf0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00402cf0
mov esi, dword [ebp - 0xe0]
xor ebx, ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x30]
mov byte [esi], bl
call fcn.00403b10
mov eax, 1
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], al
lea ecx, [ebp - 0x4c]
call fcn.00402cf0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402cf0
mov eax, esi
jmp 0x41f39b
mov ecx, dword [ebp - 0xec]
mov esi, dword [ebp - 0xdc]
push ecx
call fcn.0041f3c0
test eax, eax
jne 0x41ed80
mov esi, dword [ebp - 0xec]
mov eax, dword [ebp - 0xdc]
push esi
call fcn.0041f920
test eax, eax
jne 0x41ed80
push 0x583994
lea ecx, [ebp - 0x84]
call fcn.00402c90
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x68]
mov byte [ebp - 4], 5
call fcn.00409440
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.00403b10
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00402cf0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00402cf0
mov edi, esi
mov esi, dword [ebp - 0xe0]
mov eax, esi
call fcn.00402cd0
mov eax, 1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], al
call fcn.00402cf0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402cf0
mov eax, esi
jmp 0x41f39b
cmp dword [edi + 0x14], 0x10
jb 0x41ed8a
mov eax, dword [edi]
jmp 0x41ed8c
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41ee16
push 0x5839a4
lea ecx, [ebp - 0x84]
call fcn.00402c90
mov ecx, eax
mov eax, edi
lea ebx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.00409440
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.00403b10
mov ecx, ebx
mov byte [ebp - 4], 7
call fcn.00402cf0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00402cf0
mov edi, esi
mov esi, dword [ebp - 0xe0]
mov eax, esi
call fcn.00402cd0
mov eax, 1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], al
call fcn.00402cf0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402cf0
mov eax, esi
jmp 0x41f39b
mov esi, dword [ebp - 0xdc]
mov eax, dword [esi + 0x24]
add esi, 0x24
cmp eax, ebx
je 0x41ee2f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], ebx
mov eax, dword [edi + 0x10]
inc eax
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0x120], 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 - 0xf4], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf0], ebx
cmp eax, ebx
jbe 0x41f04e
call fcn.004083f0
mov edx, eax
mov dword [ebp - 0xdc], edx
cmp edx, ebx
je 0x41f04e
cmp dword [edi + 0x14], 0x10
jb 0x41eea8
mov eax, dword [edi]
jmp 0x41eeaa
mov eax, edi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x41eeb0
push esi
lea edx, [ebp - 0xf0]
push edx
lea eax, [ebp - 0xfc]
push eax
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xf8]
push ecx
lea edx, [ebp - 0xf4]
push edx
push 4
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
cmp eax, ebx
je 0x41efed
push eax
lea esi, [ebp - 0xa0]
call fcn.00406ff0
add esp, 4
mov esi, eax
push str.GetNamedSecurityInfo
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 9
call fcn.00402c90
mov ecx, eax
mov eax, edi
lea ebx, [ebp - 0xbc]
mov byte [ebp - 4], 0xa
call fcn.00409440
push eax
mov eax, 0x5839b4
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xb
call fcn.004093f0
mov ecx, eax
lea edx, [ebp - 0x68]
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 - 0x30]
mov byte [ebp - 4], 0xd
call fcn.00403b10
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.00402cf0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xb
call fcn.00402cf0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xa
call fcn.00402cf0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 9
call fcn.00402cf0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.00402cf0
mov eax, dword [ebp - 0xdc]
push eax
call fcn.005242b6
mov edi, esi
mov esi, dword [ebp - 0xe0]
add esp, 4
mov eax, esi
call fcn.00402cd0
mov eax, 1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xe4], eax
mov byte [ebp - 4], al
call fcn.00402cf0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402cf0
mov eax, esi
jmp 0x41f39b
mov ecx, dword [ebp - 0xf4]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
call esi
mov edx, dword [ebp - 0xf8]
push edx
mov dword [ebp - 0xf4], ebx
call esi
mov eax, dword [ebp - 0xf0]
push eax
mov dword [ebp - 0xf8], ebx
call esi
mov edi, dword [ebp - 0xec]
mov eax, dword [edi + 0x10]
inc eax
mov dword [ebp - 0xf0], ebx
cmp eax, ebx
jbe 0x41f03f
call fcn.004083f0
mov esi, eax
mov dword [ebp - 0xec], esi
cmp esi, ebx
jne 0x41f071
mov ecx, dword [ebp - 0xdc]
push ecx
call fcn.005242b6
add esp, 4
mov esi, dword [ebp - 0xe0]
lea edi, [ebp - 0x30]
mov eax, esi
call fcn.00402cd0
mov dword [ebp - 0xe4], 1
mov byte [ebp - 4], 1
jmp 0x41ecb7
cmp dword [edi + 0x14], 0x10
jb 0x41f07b
mov eax, dword [edi]
jmp 0x41f07d
mov eax, edi
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x41f081
mov edx, dword [ebp - 0x100]
push 3
push 1
push edx
push esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
lea edx, [ebp - 0x120]
cmp dword [ebp + 0x18], ebx
je 0x41f0b9
lea ecx, [ebp - 0xe8]
push ecx
push ebx
jmp 0x41f0c7
mov ecx, dword [ebp - 0xfc]
lea eax, [ebp - 0xe8]
push eax
push ecx
push edx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
cmp eax, ebx
je 0x41f1a0
push eax
lea esi, [ebp - 0xbc]
call fcn.00406ff0
add esp, 4
mov esi, eax
push str.SetEntriesInAcl
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xe
call fcn.00402c90
mov ecx, eax
lea eax, [ebp - 0xa0]
push eax
mov eax, esi
mov byte [ebp - 4], 0xf
call fcn.00409800
add esp, 4
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 0x10
call fcn.00403b10
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0xf
call fcn.00402cf0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xe
call fcn.00402cf0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 2
call fcn.00402cf0
mov ecx, dword [ebp - 0xe8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0xec]
push edx
mov dword [ebp - 0xe8], ebx
call fcn.005242b6
mov eax, dword [ebp - 0xdc]
push eax
call fcn.005242b6
mov esi, dword [ebp - 0xe0]
add esp, 8
lea edi, [ebp - 0x30]
mov eax, esi
call fcn.00402cd0
mov dword [ebp - 0xe4], 1
mov byte [ebp - 4], 1
jmp 0x41ecb7
cmp dword [ebp + 0x14], 1
push ebx
jne 0x41f1c0
mov ecx, dword [ebp - 0xe8]
mov edx, dword [ebp - 0xdc]
push ecx
push ebx
push ebx
push 0x20000004
push 1
push edx
jmp 0x41f1d7
mov eax, dword [ebp - 0xe8]
mov ecx, dword [ebp - 0xdc]
push eax
push ebx
push ebx
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
cmp eax, ebx
je 0x41f2c4
push eax
lea esi, [ebp - 0x84]
call fcn.00406ff0
add esp, 4
mov esi, eax
push str.SetNamedSecutiryInfo
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00402c90
push eax
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x12
call fcn.004093f0
push eax
mov eax, 0x5839b4
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x13
call fcn.004093f0
mov ecx, eax
lea edx, [ebp - 0xa0]
push edx
mov eax, esi
mov byte [ebp - 4], 0x14
call fcn.00409800
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 0x15
call fcn.00403b10
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0x14
call fcn.00402cf0
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x13
call fcn.00402cf0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0x12
call fcn.00402cf0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00402cf0
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00402cf0
mov eax, dword [ebp - 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xec]
push ecx
call fcn.005242b6
mov edx, dword [ebp - 0xdc]
push edx
jmp 0x41f175
mov eax, dword [ebp - 0xe8]
cmp eax, ebx
je 0x41f2db
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0xe8], ebx
push esi
call fcn.005242b6
mov eax, dword [ebp - 0xdc]
push eax
call fcn.005242b6
mov edi, dword [ebp - 0xe0]
add esp, 8
push 0x581489
mov ecx, edi
call fcn.00402c90
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0xe4], 1
mov byte [ebp - 4], 1
call fcn.00402cf0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402cf0
mov eax, edi
jmp 0x41f39b
push 0x24
push 0x583958
lea ecx, [ebp - 0x30]
call fcn.00404400
mov esi, dword [ebp - 0xe0]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x30]
mov byte [esi], bl
call fcn.00403b10
mov esi, 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0xe4], 1
cmp dword [ebp - 0x38], esi
jb 0x41f374
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00425301
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
cmp dword [ebp - 0x1c], esi
jb 0x41f395
mov edx, dword [ebp - 0x30]
push edx
call fcn.00425301
add esp, 4
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00523d1e
mov esp, ebp
pop ebp
ret 0x14