Function at 0x4e601b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x518ddc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x30], edx
mov ebx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x4e6061
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4e606a
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4e6073
mov dword [eax], ecx
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
jne 0x4e6097
call fcn.004c73cc
mov esi, eax
push esi
push 0x132a0197
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4e6493
xor eax, eax
inc eax
push 0x12
mov edx, eax
mov dword [esp + 0x1c], eax
pop ecx
call fcn.004e6904
mov esi, eax
test esi, esi
je 0x4e60b6
push esi
push 0x132f0197
jmp 0x4e608c
mov edx, dword [esp + 0x18]
push 0x11
pop ecx
call fcn.004e6904
mov esi, eax
test esi, esi
je 0x4e60d0
push esi
push 0x13320197
jmp 0x4e608c
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4e60eb
call fcn.004c73cc
mov esi, eax
push esi
push 0x13380197
jmp 0x4e608c
lea edx, [esp + 0x14]
mov ecx, edi
test al, 0x10
je 0x4e6115
call fcn.004e5b35
mov esi, eax
test esi, esi
je 0x4e6128
push esi
push 0x133e0197
call dword [sym.imp.certcli.dll_Ordinal_357]
mov eax, dword [esp + 0x14]
jmp 0x4e6434
call fcn.004c723f
mov esi, eax
test esi, esi
je 0x4e6128
push esi
push 0x13430197
jmp 0x4e6106
push 7
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.certcli.dll_Ordinal_223]
mov esi, eax
test esi, esi
je 0x4e6151
push esi
push 0x13470197
jmp 0x4e6106
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.CRYPT32.dll_PFXIsPFXBlob]
test eax, eax
jne 0x4e616f
mov eax, 0x8007000d
push eax
mov esi, eax
push 0x134e0197
jmp 0x4e6106
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x40]
mov edx, dword [esp + 0x30]
neg eax
sbb eax, eax
and eax, 0x4000
add eax, 0x21
push eax
call fcn.004d7fcf
mov ebx, eax
mov dword [esp + 0x30], ebx
test ebx, ebx
jne 0x4e61a9
call fcn.004c73cc
mov esi, eax
push esi
push 0x13600197
jmp 0x4e6106
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.004e5e20
mov esi, eax
test esi, esi
je 0x4e61c5
push esi
push 0x13630197
jmp 0x4e6106
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push 0
push eax
lea eax, [esp + 0x28]
mov edx, edi
push eax
push 0
mov ecx, ebx
call fcn.004e415b
mov esi, eax
test esi, esi
je 0x4e61fb
push esi
push 0x136c0197
call dword [sym.imp.certcli.dll_Ordinal_357]
mov eax, dword [esp + 0x14]
jmp 0x4e6438
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4e6210
mov esi, 0x80092007
push esi
push 0x13710197
jmp 0x4e61ec
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4e6240
mov esi, 0x8007000e
push esi
push 0x137a0197
call dword [sym.imp.certcli.dll_Ordinal_357]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
jmp 0x4e6438
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push ebx
push eax
push 0
push 0
mov edx, edi
call fcn.004e415b
mov esi, eax
test esi, esi
je 0x4e626c
push esi
push 0x13840197
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4e6407
mov ecx, dword [esp + 0x1c]
mov edx, ebx
call fcn.004e5d17
mov esi, eax
test esi, esi
je 0x4e6285
push esi
push 0x13870197
jmp 0x4e6261
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x34]
call fcn.004cb226
mov esi, eax
test esi, esi
je 0x4e62a0
push esi
push 0x138a0197
jmp 0x4e6261
xor edi, edi
cmp dword [esp + 0x1c], edi
jbe 0x4e63e1
mov edx, dword [ebx + edi*8]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], edx
cmp dword [edx + 0xc], ecx
jb 0x4e64db
mov eax, dword [edx + 0x10]
xor esi, esi
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
add eax, 0x38
mov dword [esp + 0x28], eax
test edi, edi
je 0x4e6310
mov eax, dword [ebx + esi*8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
add eax, 0x38
push eax
push dword [esp + 0x2c]
push ecx
call dword [sym.imp.CRYPT32.dll_CertComparePublicKeyInfo]
test eax, eax
jne 0x4e630c
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, edi
jb 0x4e62dd
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + esi*8 + 4]
cmp eax, 0xffffffff
je 0x4e631e
mov esi, eax
shr esi, 0x10
and dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
mov eax, dword [edx + 0x10]
push 0x2000003
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0xc]
add edx, 0x30
call fcn.004c76e7
test eax, eax
je 0x4e6355
push eax
push 0x13be0197
call dword [sym.imp.certcli.dll_Ordinal_357]
cmp dword [esp + 0x28], 0
je 0x4e6366
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x34]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
mov edx, edi
sub eax, dword [esp + 0x1c]
neg eax
mov byte [esp + 0x13], 0
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
push eax
lea eax, [esp + 0x17]
push eax
push dword [esp + 0x34]
push dword [esp + 0x44]
push esi
call fcn.004e5a0a
mov esi, eax
test esi, esi
jne 0x4e64d0
cmp byte [esp + 0x13], al
jne 0x4e63d3
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 4]
call fcn.004e5ed7
test eax, eax
je 0x4e63d3
push eax
push 0x13e60197
call dword [sym.imp.certcli.dll_Ordinal_357]
mov edi, dword [esp + 0x28]
cmp edi, dword [esp + 0x1c]
jb 0x4e62ac
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4e63f3
mov eax, dword [esp + 0x20]
and dword [esp + 0x20], 0
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4e6405
mov eax, dword [esp + 0x14]
and dword [esp + 0x3c], 0
mov dword [ecx], eax
xor esi, esi
xor edi, edi
cmp dword [esp + 0x1c], edi
jbe 0x4e6425
cmp dword [ebx + edi*8], 0
je 0x4e641e
push dword [ebx + edi*8]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
inc edi
cmp edi, dword [esp + 0x1c]
jb 0x4e640f
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
test eax, eax
je 0x4e6443
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 0
je 0x4e6454
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4e6463
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4e6486
cmp dword [esp + 0x38], 0
jne 0x4e647a
push edi
mov ecx, ebx
call fcn.004e5f2b
push 0
push dword [esp + 0x28]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
test ebx, ebx
je 0x4e6493
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
cmp dword [esp + 0x44], 0
je 0x4e64a4
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x18], 0
je 0x4e64c5
push 0x12
xor edx, edx
pop ecx
call fcn.004e6904
push 0x11
xor edx, edx
pop ecx
call fcn.004e6904
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0x13da0197
jmp 0x4e6261
mov eax, 0x8007000d
push eax
mov esi, eax
push 0x13960197
jmp 0x4e6261