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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
je 0x109057d
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x1090586
mov dword [eax], ebx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x109058f
mov dword [eax], ebx
push edi
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
jne 0x10905b3
call fcn.010a4804
mov esi, eax
push esi
push 0xf7d0197
call fcn.0107ae44
jmp 0x1090899
xor edi, edi
inc edi
push edi
push 0x101b860
mov dword [ebp - 0x1c], edi
call fcn.0109322e
mov esi, eax
cmp esi, ebx
je 0x10905d2
push esi
push 0xf820197
jmp 0x10905a9
push edi
push 0x100259c
call fcn.0109322e
mov esi, eax
cmp esi, ebx
je 0x10905eb
push esi
push 0xf850197
jmp 0x10905a9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1090608
call fcn.010a4804
mov esi, eax
push esi
push 0xf8b0197
jmp 0x10905a9
test al, 0x10
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
je 0x1090626
call fcn.0108ee94
mov esi, eax
cmp esi, ebx
je 0x109063c
push esi
push 0xf910197
jmp 0x10905a9
call fcn.010a4a18
mov esi, eax
cmp esi, ebx
je 0x109063c
push esi
push 0xf960197
jmp 0x10905a9
push 7
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call sub.certcli.dll_Ordinal_223
mov esi, eax
cmp esi, ebx
je 0x109065f
push esi
push 0xf9a0197
jmp 0x10905a9
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.CRYPT32.dll_PFXIsPFXBlob]
test eax, eax
jne 0x109067d
mov esi, 0x8007000d
push esi
push 0xfa10197
jmp 0x10905a9
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 0x4000
or eax, 0x21
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push eax
call fcn.01080d82
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x14], edi
jne 0x10906b4
call fcn.010a4804
mov esi, eax
push esi
push 0xfab0197
jmp 0x10905a9
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 1
push edi
call fcn.0108d242
mov esi, eax
cmp esi, ebx
je 0x10906d7
push esi
push 0xfb50197
jmp 0x10905a9
mov eax, dword [ebp - 4]
cmp eax, ebx
jne 0x10906ee
mov esi, 0x80092007
push esi
push 0xfba0197
jmp 0x10905a9
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x109070e
mov esi, 0x8007000e
push esi
push 0xfc30197
jmp 0x109075c
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 1
push edi
call fcn.0108d242
mov esi, eax
cmp esi, ebx
je 0x109072b
push esi
push 0xfcd0197
jmp 0x109075c
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0108d938
mov esi, eax
cmp esi, ebx
je 0x1090744
push esi
push 0xfd00197
jmp 0x109075c
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
call fcn.0107e4f0
mov esi, eax
cmp esi, ebx
je 0x1090766
push esi
push 0xfd30197
call fcn.0107ae44
jmp 0x109086d
cmp dword [ebp - 4], ebx
jbe 0x109084d
mov eax, dword [ebp + 8]
mov edi, dword [eax + ebx*8]
cmp dword [edi + 0xc], 1
jb 0x109090b
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0xc]
and dword [ebp + 0xc], 0
add esi, 0x38
test ebx, ebx
jbe 0x10907cc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + ecx*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 esi
push 1
call dword [sym.imp.CRYPT32.dll_CertComparePublicKeyInfo]
test eax, eax
jne 0x10907cc
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], ebx
jb 0x109079a
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
push 0x2000003
add eax, 0x30
push eax
push 1
call fcn.010811bd
test eax, eax
je 0x1090803
push eax
push 0xff90197
call fcn.0107ae44
cmp dword [ebp - 0x18], 0
je 0x1090812
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebx + 1]
mov dword [ebp - 0x20], eax
sub eax, dword [ebp - 4]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x1c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
call fcn.01090444
mov esi, eax
test esi, esi
jne 0x1090918
mov ebx, dword [ebp - 0x20]
cmp ebx, dword [ebp - 4]
jb 0x109076f
xor ebx, ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x109085c
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x109086b
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov dword [ebp - 8], ebx
xor esi, esi
cmp dword [ebp + 8], ebx
je 0x1090899
xor edi, edi
cmp dword [ebp - 4], ebx
jbe 0x1090890
mov eax, dword [ebp + 8]
mov eax, dword [eax + edi*8]
cmp eax, ebx
je 0x109088a
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
inc edi
cmp edi, dword [ebp - 4]
jb 0x1090879
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x10908a9
push dword [ebp - 8]
call edi
cmp dword [ebp - 0xc], ebx
je 0x10908b3
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 0x10], ebx
je 0x10908bd
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0x14], ebx
je 0x10908d7
push 1
push dword [ebp - 0x14]
call fcn.0108f084
push 2
push dword [ebp - 0x14]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
cmp dword [ebp - 0x24], ebx
je 0x10908e1
push dword [ebp - 0x24]
call edi
cmp dword [ebp - 0x1c], ebx
pop edi
je 0x1090903
push ebx
push 0x101b860
call fcn.0109322e
push ebx
push 0x100259c
call fcn.0109322e
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
mov esi, 0x8007000d
push esi
push 0xfdf0197
jmp 0x109091e
push esi
push 0x10120197
call fcn.0107ae44
xor ebx, ebx
jmp 0x109086d