Function at 0x10897dd
Capabilities:
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x10d0640]
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.01083314
test eax, eax
jne 0x1089883
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x3c]
push esi
push edi
call fcn.01086737
test eax, eax
je 0x108987a
push eax
push 0x119a00ca
call fcn.0108c503
cmp dword [ebp - 0x418], 0
jne 0x10898c9
push dword [ebp + 0x3c]
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x10898c7
call fcn.01091f1e
push 0
mov esi, eax
push esi
push 0x100
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.0108b49d
push esi
push 0x11ad00ca
jmp 0x1089c0a
xor esi, esi
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x418]
call fcn.0109479e
test eax, eax
je 0x108992c
push eax
push 0x11b300ca
call fcn.0108c503
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.01087aea
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x10899a0
push esi
push 0x11dc00ca
jmp 0x1089c0a
mov eax, dword [ebp + 0x28]
shl eax, 0x10
or eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x444]
je 0x10898ea
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.01082ee4
test eax, eax
je 0x1089970
push eax
push 0x11bf00ca
call fcn.0108c503
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.0108b49d
push esi
push 0x11ca00ca
jmp 0x1089c0a
push dword [ebp - 0x418]
push dword [ebp + 0x24]
push ebx
push dword [ebp - 0x424]
call fcn.010ae979
mov esi, eax
cmp esi, ebx
je 0x10899c6
push esi
push 0x11e100ca
jmp 0x1089c0a
cmp dword [ebp + 0x2c], ebx
je 0x1089a31
lea eax, [ebp - 0x438]
push eax
mov dword [ebp - 0x438], 1
call fcn.0109fb2e
cmp eax, ebx
je 0x10899f0
push eax
push 0x11e800ca
call fcn.0108c503
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.01089398
mov esi, eax
cmp esi, ebx
je 0x1089a31
push esi
push 0x11f600ca
jmp 0x1089c0a
mov edi, dword [ebp - 0x43c]
mov esi, 0x80070002
cmp edi, ebx
je 0x1089a93
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1089a5d
call fcn.01091f1e
push esi
push eax
push 0x120400ca
push edi
call fcn.0108c457
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.010860d4
test eax, eax
jne 0x1089a93
call fcn.01091f1e
push eax
push 0x120f00ca
push edi
call fcn.0108c53e
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x101b418
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebx
je 0x1089be9
cmp eax, edi
jae 0x1089be9
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1089ac4
sub eax, edx
sar eax, 1
add eax, 0x1d
cmp eax, edi
jbe 0x1089ae9
mov esi, 0x80070003
push esi
push 0x122700ca
jmp 0x1089c0a
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01049378
push 0x101b3dc
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0103e7cf
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 0x1007380
push dword [ebp - 0x424]
push eax
call fcn.01088140
mov esi, eax
cmp esi, ebx
je 0x1089b50
push esi
push 0x123600ca
jmp 0x1089c0a
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 0x1089b9a
push dword [ebp - 0x428]
push esi
push 0x11d
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.0108b49d
push esi
push 0x124600ca
jmp 0x1089c0a
cmp dword [ebp + 0x30], ebx
jne 0x1089c0f
lea eax, [ebp - 0x430]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x28]
push dword [ebp - 0x424]
call fcn.0108e689
mov esi, eax
test esi, esi
je 0x1089bc4
push esi
push 0x125200ca
jmp 0x1089c0a
push dword [ebp - 0x434]
push dword [ebp + 0x2c]
push dword [ebp + 0x2c]
push dword [ebp - 0x424]
call fcn.01088cea
mov esi, eax
test esi, esi
je 0x1089c0f
push esi
push 0x125900ca
jmp 0x1089c0a
push ebx
push esi
push 0x107
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.0108b49d
push esi
push 0x122000ca
call fcn.0108c503
xor ebx, ebx
cmp dword [ebp - 0x418], ebx
je 0x1089c25
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 0x1089c3b
push dword [ebp - 0x42c]
call edi
cmp dword [ebp - 0x430], ebx
je 0x1089c4b
push dword [ebp - 0x430]
call edi
cmp dword [ebp - 0x428], ebx
je 0x1089c5b
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.01077d0b
leave
ret 0x40