Function at 0x4147c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [0x4a3ecc]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x38], 0
je 0x414908
mov ebx, ecx
xor esi, esi
dec esi
lea edi, [ebp - 0x2c]
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
lea edx, [ecx + 0xc]
mov ecx, edi
push 0x10
call 0x414b30
add esp, 4
mov edx, ebx
lea ebx, [ebp - 0x38]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
xor esi, esi
mov ecx, ebx
mov dword [ebp - 0x40], edx
push esi
call 0x414b30
add esp, 4
mov dword [ebp - 0x3c], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edi, ecx
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
cmp edi, eax
mov dword [ebp - 0x48], edx
jne 0x414842
cmp edx, ecx
jne 0x414842
mov ecx, dword [ebp - 0x40]
cmp byte [ecx + 0x3a], 0
mov ecx, edx
je 0x414922
sub ecx, edx
sar ecx, 3
sub eax, edi
sar eax, 3
mov ebx, edx
mov edx, edi
mov edi, dword [ebp - 0x40]
movzx esi, byte [edi + 0x3a]
mov dword [ebp - 0x44], esi
lea esi, [ebp - 0x3c]
push esi
push ebx
push ecx
xor ecx, ecx
push ecx
push ecx
push edx
push eax
push dword [ebp - 0x44]
push dword [edi + 0x24]
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x414912
mov ebx, dword [ebp - 0x3c]
xor esi, esi
test ebx, ebx
je 0x4148a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp ebx, 0xffffffff
je 0x414b01
call fcn.00449c40
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, ebx
mov ebx, dword [ebp - 0x40]
cmp byte [ebx + 0x3a], 0
je 0x4148f7
cmp byte [ebx + 0x3b], 0
je 0x4148f7
lea eax, [ebp - 0x1c]
movaps xmm0, xmmword [0x48b290]
movups xmmword [eax - 4], xmm0
push eax
push str.SeChangeNotifyPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x414a49
lea eax, [ebp - 0x20]
mov dword [eax + 0xc], 4
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x414a49
cmp byte [ebx + 0x39], 0
je 0x41494c
push esi
call fcn.004157b0
add esp, 4
jmp 0x41495e
mov esi, 0x3f0
jmp 0x414ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edx, dword [ebp - 0x48]
jmp 0x414a6f
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x24]
sub esp, 0x18
lea ecx, [ebp - 0x3c]
mov dword [esp + 0x14], ecx
movaps xmm0, xmmword [0x48b280]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x414874
push 0x10000000
push 0
push 0xa
push esi
call fcn.00480210
add esp, 0x10
test al, al
je 0x414a49
mov dword [ebp - 0x44], edi
mov eax, dword [ebx + 0x18]
mov ebx, dword [ebx + 0x1c]
cmp eax, ebx
je 0x414996
lea edi, [eax + 8]
push dword [eax]
push dword [eax + 4]
push edi
push esi
call fcn.00415630
add esp, 0x10
test al, al
je 0x414aef
add edi, 0xc
mov eax, edi
cmp edi, ebx
jne 0x414973
push 0x10000000
push esi
call fcn.00415870
add esp, 8
test al, al
mov edi, dword [ebp - 0x44]
je 0x414a49
mov eax, dword [ebp - 0x40]
push dword [eax + 0x34]
mov ebx, esi
push esi
call fcn.00404c20
add esp, 8
mov esi, eax
test eax, eax
jne 0x414a53
lea edi, [ebp - 0x20]
mov dword [edi], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov dword [ebp - 0x40], eax
call esi
xor esi, esi
push esi
push esi
push 0xf01ff
push edi
push dword [ebp - 0x40]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x414af1
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
cmp dword [edi], eax
je 0x414af9
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, dword [edi]
inc eax
cmp eax, 2
mov edi, dword [ebp - 0x44]
mov dword [ebp - 0x4c], edx
jae 0x414b08
mov ecx, dword [ebp - 0x40]
lea eax, [ecx + 1]
cmp eax, 2
jb 0x414a40
mov eax, dword [ebp + 8]
mov dword [eax], ecx
call fcn.00449c40
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x414a53
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebx + 1]
cmp eax, 2
mov edx, dword [ebp - 0x48]
jb 0x414a6f
call fcn.00449c40
push ebx
call fcn.00449c50
mov edx, dword [ebp - 0x48]
add esp, 4
test edx, edx
je 0x414aa6
mov eax, dword [ebp - 0x30]
sub eax, edx
cmp eax, 0x1000
jb 0x414a95
mov ecx, dword [edx - 4]
sub edx, ecx
add edx, 0xfffffffc
cmp edx, 0x20
jae 0x414b2b
add eax, 0x23
mov edx, ecx
push eax
push edx
call fcn.0045b9ca
add esp, 8
mov dword [ebp - 0x38], 0
test edi, edi
je 0x414ad9
mov eax, dword [ebp - 0x24]
sub eax, edi
cmp eax, 0x1000
jb 0x414ac8
mov ecx, dword [edi - 4]
sub edi, ecx
add edi, 0xfffffffc
cmp edi, 0x20
jae 0x414b2b
add eax, 0x23
mov edi, ecx
push eax
push edi
call fcn.0045b9ca
add esp, 8
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045be32
mov eax, esi
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov edi, dword [ebp - 0x44]
jmp 0x414a53
xor ebx, ebx
jmp 0x41489b
call fcn.00449c40
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00449c50
mov edx, dword [ebp - 0x4c]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
jmp 0x414a28
call fcn.00460d04
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [edx + 4]
mov esi, dword [edx]
xor edi, edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ebp - 0x10], ecx
mov dword [ecx + 8], edi
sub eax, esi
je 0x414bf8
sar eax, 2
imul esi, eax, 0xaaaaaaab
cmp esi, 0x20000000
jae 0x414c03
mov dword [ebp - 0x14], edx
lea edi, [esi*8]
cmp esi, 0x200
jb 0x414b97
lea eax, [edi + 0x23]
push eax
call fcn.0045b99a
add esp, 4
test eax, eax
je 0x414c08
mov ebx, eax
add ebx, 0x23
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x414ba2
push edi
call fcn.0045b99a
add esp, 4
mov ebx, eax
mov eax, edi
mov edi, dword [ebp - 0x10]
mov dword [edi], ebx
lea esi, [ebx + esi*8]
mov dword [edi + 8], esi
push eax
push 0
push ebx
call fcn.0045d780
add esp, 0xc
mov dword [edi + 4], esi
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx]
je 0x414bf8
xor esi, esi
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [ebx + edi*8 + 4], eax
mov ecx, dword [ecx]
add ecx, esi
call fcn.00410080
mov ecx, dword [ebp - 0x14]
mov dword [ebx + edi*8], eax
inc edi
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
imul eax, eax, 0xaaaaaaab
add esi, 0xc
cmp edi, eax
jb 0x414bcc
mov eax, dword [ebp - 0x10]
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004103b0
call fcn.00460d04
int3