Function at 0x104e736
Capabilities:
Delete file
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x1079e94]
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 + 0x1c]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x434], 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 - 0x428], eax
xor eax, eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
call fcn.0104ba74
test eax, eax
jne 0x104e7d1
lea eax, [ebp - 0x418]
push eax
push dword [ebp + 0x3c]
push esi
push edi
call fcn.0104c4e5
test eax, eax
je 0x104e7c8
push eax
push 0xde300ca
call fcn.01053610
cmp dword [ebp - 0x418], 0
jne 0x104e817
push dword [ebp + 0x3c]
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
test eax, eax
mov dword [ebp - 0x418], eax
jne 0x104e815
call fcn.0106d6ff
push 0
mov esi, eax
push esi
push 0x100
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.01051e27
push esi
push 0xdf600ca
jmp 0x104eb2b
xor esi, esi
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x418]
call fcn.01057e4c
test eax, eax
je 0x104e878
push eax
push 0xdfc00ca
call fcn.01053610
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 ebx
push dword [ebp - 0x434]
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.0104d3ce
mov esi, eax
test esi, esi
je 0x104e8e7
push esi
push 0xe2400ca
jmp 0x104eb2b
mov eax, dword [ebp + 0x28]
shl eax, 0x10
or eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x438]
je 0x104e838
lea eax, [ebp - 0x42c]
push eax
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push ebx
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
call fcn.0104f04b
test eax, eax
je 0x104e8b7
push eax
push 0xe0800ca
call fcn.01053610
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.01051e27
push esi
push 0xe1200ca
jmp 0x104eb2b
push dword [ebp - 0x418]
push dword [ebp + 0x24]
push 0
push ebx
call fcn.010694e1
mov esi, eax
test esi, esi
je 0x104e909
push esi
push 0xe2900ca
jmp 0x104eb2b
cmp dword [ebp + 0x2c], 0
je 0x104e941
push dword [ebp - 0x418]
push dword [ebp + 0x30]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push 1
push edi
push ebx
push dword [ebp - 0x43c]
call fcn.0104e1d6
mov esi, eax
test esi, esi
je 0x104e941
push esi
push 0xe3800ca
jmp 0x104eb2b
mov edi, dword [ebp - 0x428]
test edi, edi
mov esi, 0x80070002
je 0x104e9a3
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x104e96d
call fcn.0106d6ff
push esi
push eax
push 0xe4600ca
push edi
call fcn.01053590
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.0104b9b3
test eax, eax
jne 0x104e9a3
call fcn.0106d6ff
push eax
push 0xe5100ca
push edi
call fcn.0105364b
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x100e43c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x104eb09
cmp eax, edi
jae 0x104eb09
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push 0x100e414
call esi
mov dword [esp], 0x100e3fc
mov dword [ebp - 0x428], eax
call esi
mov ecx, dword [ebp - 0x428]
add ecx, eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x428], ecx
call esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x428]
lea eax, [ecx + eax + 1]
cmp eax, edi
jbe 0x104ea1e
mov esi, 0x80070003
push esi
push 0xe6900ca
jmp 0x104eb2b
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x414]
push 0x100e3c0
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x424]
push dword [ebp - 0x41c]
push eax
push dword [ebp + 0x24]
lea eax, [ebp - 0x414]
push 0x10059c4
push ebx
push eax
call fcn.0104c239
mov esi, eax
test esi, esi
je 0x104ea7f
push esi
push 0xe7800ca
jmp 0x104eb2b
mov eax, dword [ebp - 0x418]
push 0x102
push dword [eax + 8]
push dword [eax + 4]
push dword [ebp - 0x424]
call sub.certcli.dll_Ordinal_225
mov esi, eax
test esi, esi
je 0x104eac9
push dword [ebp - 0x424]
push esi
push 0x11d
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.01051e27
push esi
push 0xe8800ca
jmp 0x104eb2b
cmp dword [ebp + 0x30], 0
jne 0x104eb30
lea eax, [ebp - 0x430]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x28]
push ebx
call fcn.01054f79
mov esi, eax
test esi, esi
je 0x104eaef
push esi
push 0xe9400ca
jmp 0x104eb2b
push dword [ebp + 0x2c]
push dword [ebp + 0x2c]
push ebx
call fcn.0104e136
mov esi, eax
test esi, esi
je 0x104eb30
push esi
push 0xe9a00ca
jmp 0x104eb2b
push 0
push esi
push 0x107
push dword [ebp - 0x420]
push dword [ebp + 0xc]
push dword [ebp - 0x41c]
call fcn.01051e27
push esi
push 0xe6200ca
call fcn.01053610
xor ebx, ebx
cmp dword [ebp - 0x418], ebx
je 0x104eb46
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 0x104eb5c
push dword [ebp - 0x42c]
call edi
cmp dword [ebp - 0x430], ebx
je 0x104eb6c
push dword [ebp - 0x430]
call edi
cmp dword [ebp - 0x424], ebx
je 0x104eb7c
push dword [ebp - 0x424]
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0104b509
leave
ret 0x3c