Function at 0x10785e7
Capabilities:
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x10b5894]
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]
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x34]
push esi
mov esi, dword [ebp + 0x38]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0x40]
push edi
push dword [ebp + 0x20]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x438], 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.010735aa
test eax, eax
jne 0x1078684
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x3c]
push esi
push edi
call fcn.01076061
test eax, eax
je 0x107867b
push eax
push 0xe8e00ca
call fcn.0107ae44
cmp dword [ebp - 0x418], 0
jne 0x10786ca
push dword [ebp + 0x3c]
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
test eax, eax
mov dword [ebp - 0x418], eax
jne 0x10786c8
call fcn.010a4804
push 0
mov esi, eax
push esi
push 0x100
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.01079f9e
push esi
push 0xea100ca
jmp 0x10789ff
xor esi, esi
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x418]
call fcn.010810bc
test eax, eax
je 0x107872d
push eax
push 0xea700ca
call fcn.0107ae44
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.01076a05
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x10787a1
push esi
push 0xecf00ca
jmp 0x10789ff
mov eax, dword [ebp + 0x28]
shl eax, 0x10
or eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x440]
je 0x10786eb
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.0107289e
test eax, eax
je 0x1078771
push eax
push 0xeb300ca
call fcn.0107ae44
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.01079f9e
push esi
push 0xebd00ca
jmp 0x10789ff
push dword [ebp - 0x418]
push dword [ebp + 0x24]
push ebx
push dword [ebp - 0x424]
call fcn.01097a08
mov esi, eax
cmp esi, ebx
je 0x10787c7
push esi
push 0xed400ca
jmp 0x10789ff
cmp dword [ebp + 0x2c], ebx
je 0x107882c
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 0x434], 1
call fcn.0108bf48
cmp eax, ebx
je 0x10787f1
push eax
push 0xedb00ca
call fcn.0107ae44
push dword [ebp - 0x418]
push dword [ebp + 0x30]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp - 0x434]
push edi
push dword [ebp - 0x424]
push dword [ebp - 0x43c]
call fcn.0107826b
mov esi, eax
cmp esi, ebx
je 0x107882c
push esi
push 0xee800ca
jmp 0x10789ff
mov edi, dword [ebp - 0x438]
cmp edi, ebx
mov esi, 0x80070002
je 0x107888e
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1078858
call fcn.010a4804
push esi
push eax
push 0xef600ca
push edi
call fcn.0107adc0
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.01075a1d
test eax, eax
jne 0x107888e
call fcn.010a4804
push eax
push 0xf0100ca
push edi
call fcn.0107ae7f
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1017f1c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebx
je 0x10789de
cmp eax, edi
jae 0x10789de
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x10788bf
sub eax, edx
sar eax, 1
add eax, 0x1d
cmp eax, edi
jbe 0x10788e4
mov esi, 0x80070003
push esi
push 0xf1900ca
jmp 0x10789ff
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01042598
push 0x1017ee0
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01037c0d
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 0x10069f0
push dword [ebp - 0x424]
push eax
call fcn.01077099
mov esi, eax
cmp esi, ebx
je 0x107894b
push esi
push 0xf2800ca
jmp 0x10789ff
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 0x1078995
push dword [ebp - 0x428]
push esi
push 0x11d
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.01079f9e
push esi
push 0xf3800ca
jmp 0x10789ff
cmp dword [ebp + 0x30], ebx
jne 0x1078a04
lea eax, [ebp - 0x430]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x28]
push dword [ebp - 0x424]
call fcn.0107c684
mov esi, eax
test esi, esi
je 0x10789bf
push esi
push 0xf4400ca
jmp 0x10789ff
push dword [ebp + 0x2c]
push dword [ebp + 0x2c]
push dword [ebp - 0x424]
call fcn.01077bfb
mov esi, eax
test esi, esi
je 0x1078a04
push esi
push 0xf4a00ca
jmp 0x10789ff
push ebx
push esi
push 0x107
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.01079f9e
push esi
push 0xf1200ca
call fcn.0107ae44
xor ebx, ebx
cmp dword [ebp - 0x418], ebx
je 0x1078a1a
push dword [ebp - 0x418]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [ebp - 0x42c], ebx
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1078a30
push dword [ebp - 0x42c]
call edi
cmp dword [ebp - 0x430], ebx
je 0x1078a40
push dword [ebp - 0x430]
call edi
cmp dword [ebp - 0x428], ebx
je 0x1078a50
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.01068363
leave
ret 0x3c