Function at 0x1089834
Capabilities:
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x10d0620]
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.01083387
test eax, eax
jne 0x10898da
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x3c]
push esi
push edi
call fcn.0108678e
test eax, eax
je 0x10898d1
push eax
push 0x119a00ca
call fcn.0108c55a
cmp dword [ebp - 0x418], 0
jne 0x1089920
push dword [ebp + 0x3c]
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x108991e
call fcn.01091f43
push 0
mov esi, eax
push esi
push 0x100
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.0108b4f4
push esi
push 0x11ad00ca
jmp 0x1089c61
xor esi, esi
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x418]
call fcn.010947bc
test eax, eax
je 0x1089983
push eax
push 0x11b300ca
call fcn.0108c55a
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.01087b41
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x10899f7
push esi
push 0x11dc00ca
jmp 0x1089c61
mov eax, dword [ebp + 0x28]
shl eax, 0x10
or eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x444]
je 0x1089941
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.01082f57
test eax, eax
je 0x10899c7
push eax
push 0x11bf00ca
call fcn.0108c55a
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.0108b4f4
push esi
push 0x11ca00ca
jmp 0x1089c61
push dword [ebp - 0x418]
push dword [ebp + 0x24]
push ebx
push dword [ebp - 0x424]
call fcn.010ae90e
mov esi, eax
cmp esi, ebx
je 0x1089a1d
push esi
push 0x11e100ca
jmp 0x1089c61
cmp dword [ebp + 0x2c], ebx
je 0x1089a88
lea eax, [ebp - 0x438]
push eax
mov dword [ebp - 0x438], 1
call fcn.0109fb3c
cmp eax, ebx
je 0x1089a47
push eax
push 0x11e800ca
call fcn.0108c55a
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.010893ef
mov esi, eax
cmp esi, ebx
je 0x1089a88
push esi
push 0x11f600ca
jmp 0x1089c61
mov edi, dword [ebp - 0x43c]
mov esi, 0x80070002
cmp edi, ebx
je 0x1089aea
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1089ab4
call fcn.01091f43
push esi
push eax
push 0x120400ca
push edi
call fcn.0108c4ae
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.0108612b
test eax, eax
jne 0x1089aea
call fcn.01091f43
push eax
push 0x120f00ca
push edi
call fcn.0108c595
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x101b4a8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebx
je 0x1089c40
cmp eax, edi
jae 0x1089c40
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1089b1b
sub eax, edx
sar eax, 1
add eax, 0x1d
cmp eax, edi
jbe 0x1089b40
mov esi, 0x80070003
push esi
push 0x122700ca
jmp 0x1089c61
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x208
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01049437
push 0x101b46c
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0103e89a
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 0x1007398
push dword [ebp - 0x424]
push eax
call fcn.01088197
mov esi, eax
cmp esi, ebx
je 0x1089ba7
push esi
push 0x123600ca
jmp 0x1089c61
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 0x1089bf1
push dword [ebp - 0x428]
push esi
push 0x11d
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.0108b4f4
push esi
push 0x124600ca
jmp 0x1089c61
cmp dword [ebp + 0x30], ebx
jne 0x1089c66
lea eax, [ebp - 0x430]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x28]
push dword [ebp - 0x424]
call fcn.0108e6ae
mov esi, eax
test esi, esi
je 0x1089c1b
push esi
push 0x125200ca
jmp 0x1089c61
push dword [ebp - 0x434]
push dword [ebp + 0x2c]
push dword [ebp + 0x2c]
push dword [ebp - 0x424]
call fcn.01088d41
mov esi, eax
test esi, esi
je 0x1089c66
push esi
push 0x125900ca
jmp 0x1089c61
push ebx
push esi
push 0x107
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.0108b4f4
push esi
push 0x122000ca
call fcn.0108c55a
xor ebx, ebx
cmp dword [ebp - 0x418], ebx
je 0x1089c7c
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 0x1089c92
push dword [ebp - 0x42c]
call edi
cmp dword [ebp - 0x430], ebx
je 0x1089ca2
push dword [ebp - 0x430]
call edi
cmp dword [ebp - 0x428], ebx
je 0x1089cb2
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.01077dc7
leave
ret 0x40