Function at 0x10866c0
Capabilities:
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x10cd598]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x34]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x440], eax
mov eax, dword [ebp + 0x40]
push esi
mov esi, dword [ebp + 0x38]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x44]
push edi
push dword [ebp + 0x20]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x434], eax
xor eax, eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
call fcn.010801ec
test eax, eax
jne 0x1086766
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x3c]
push esi
push edi
call fcn.010835f3
test eax, eax
je 0x108675d
push eax
push 0x119a00ca
call fcn.010893e6
cmp dword [ebp - 0x418], 0
jne 0x10867ac
push dword [ebp + 0x3c]
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x10867aa
call fcn.0108edc3
push 0
mov esi, eax
push esi
push 0x100
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.01088380
push esi
push 0x11ad00ca
jmp 0x1086aed
xor esi, esi
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x418]
call fcn.0109163b
test eax, eax
je 0x108680f
push eax
push 0x11b300ca
call fcn.010893e6
push dword [ebp - 0x418]
push dword [ebp + 0x3c]
push esi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push edi
push dword [ebp - 0x424]
push ebx
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.010849cd
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x1086883
push esi
push 0x11dc00ca
jmp 0x1086aed
mov eax, dword [ebp + 0x28]
shl eax, 0x10
or eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x444]
je 0x10867cd
lea eax, [ebp - 0x42c]
push eax
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp - 0x424]
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
call fcn.0107fdbc
test eax, eax
je 0x1086853
push eax
push 0x11bf00ca
call fcn.010893e6
push dword [ebp - 0x42c]
mov esi, 0x8007000d
push esi
push 0xfd
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.01088380
push esi
push 0x11ca00ca
jmp 0x1086aed
push dword [ebp - 0x418]
push dword [ebp + 0x24]
push ebx
push dword [ebp - 0x424]
call fcn.010ab776
mov esi, eax
cmp esi, ebx
je 0x10868a9
push esi
push 0x11e100ca
jmp 0x1086aed
cmp dword [ebp + 0x2c], ebx
je 0x1086914
lea eax, [ebp - 0x438]
push eax
mov dword [ebp - 0x438], 1
call fcn.0109c97f
cmp eax, ebx
je 0x10868d3
push eax
push 0x11e800ca
call fcn.010893e6
push dword [ebp - 0x434]
push dword [ebp - 0x418]
push dword [ebp + 0x30]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp - 0x438]
push edi
push dword [ebp - 0x424]
push dword [ebp - 0x440]
call fcn.0108627b
mov esi, eax
cmp esi, ebx
je 0x1086914
push esi
push 0x11f600ca
jmp 0x1086aed
mov edi, dword [ebp - 0x43c]
mov esi, 0x80070002
cmp edi, ebx
je 0x1086976
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1086940
call fcn.0108edc3
push esi
push eax
push 0x120400ca
push edi
call fcn.0108933a
push dword [ebp - 0x420]
mov eax, dword [ebp - 0x418]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
push dword [eax + 8]
push dword [eax + 4]
push edi
call fcn.01082f90
test eax, eax
jne 0x1086976
call fcn.0108edc3
push eax
push 0x120f00ca
push edi
call fcn.01089421
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x101ad90
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebx
je 0x1086acc
cmp eax, edi
jae 0x1086acc
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10869a7
sub eax, edx
sar eax, 1
add eax, 0x1d
cmp eax, edi
jbe 0x10869cc
mov esi, 0x80070003
push esi
push 0x122700ca
jmp 0x1086aed
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01048c8a
push 0x101ad54
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0103e10a
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x428]
push dword [ebp - 0x41c]
push eax
push dword [ebp + 0x24]
lea eax, [ebp - 0x414]
push 0x1007290
push dword [ebp - 0x424]
push eax
call fcn.01085023
mov esi, eax
cmp esi, ebx
je 0x1086a33
push esi
push 0x123600ca
jmp 0x1086aed
mov eax, dword [ebp - 0x418]
push 0x102
push dword [eax + 8]
push dword [eax + 4]
push dword [ebp - 0x428]
call sub.certcli.dll_Ordinal_225
mov esi, eax
cmp esi, ebx
je 0x1086a7d
push dword [ebp - 0x428]
push esi
push 0x11d
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.01088380
push esi
push 0x124600ca
jmp 0x1086aed
cmp dword [ebp + 0x30], ebx
jne 0x1086af2
lea eax, [ebp - 0x430]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x28]
push dword [ebp - 0x424]
call fcn.0108b53a
mov esi, eax
test esi, esi
je 0x1086aa7
push esi
push 0x125200ca
jmp 0x1086aed
push dword [ebp - 0x434]
push dword [ebp + 0x2c]
push dword [ebp + 0x2c]
push dword [ebp - 0x424]
call fcn.01085bcd
mov esi, eax
test esi, esi
je 0x1086af2
push esi
push 0x125900ca
jmp 0x1086aed
push ebx
push esi
push 0x107
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.01088380
push esi
push 0x122000ca
call fcn.010893e6
xor ebx, ebx
cmp dword [ebp - 0x418], ebx
je 0x1086b08
push dword [ebp - 0x418]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x42c], ebx
je 0x1086b1e
push dword [ebp - 0x42c]
call edi
cmp dword [ebp - 0x430], ebx
je 0x1086b2e
push dword [ebp - 0x430]
call edi
cmp dword [ebp - 0x428], ebx
je 0x1086b3e
push dword [ebp - 0x428]
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01074bd5
leave
ret 0x40