Function at 0x102f82c
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x794
mov eax, dword [0x1099a38]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x1009618
xor edi, edi
push esi
mov dword [ebp - 0x760], edi
mov dword [ebp - 0x768], edi
call fcn.01070fc9
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.01073f21
push ebx
mov dword [ebp - 0x764], eax
lea eax, [ebp - 0x414]
push eax
push 0x1009220
push esi
call fcn.01070fc9
cmp dword [ebp - 0x764], edi
jne 0x102f8de
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x1009604
push esi
call fcn.01070fc9
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.01073f21
push ebx
mov dword [ebp - 0x764], eax
lea eax, [ebp - 0x414]
push eax
push 0x1009600
push esi
call fcn.01070fc9
cmp dword [ebp - 0x764], 1
jne 0x102fccb
and dword [ebp - 0x770], 0
and dword [ebp - 0x76c], 0
lea eax, [ebp - 0x794]
mov dword [ebp - 0x780], eax
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x730]
push eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x794], 0x10095ec
mov dword [ebp - 0x790], 0x10095d4
mov dword [ebp - 0x78c], 0x10095bc
mov dword [ebp - 0x784], 3
call fcn.01070fc9
push 0x10095ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, eax
test ecx, ecx
mov dword [ebp - 0x764], ecx
je 0x102f9b2
mov eax, dword [0x10bd1e4]
cmp eax, 5
ja 0x102f99d
jne 0x102f974
cmp dword [0x10bd1e8], 1
jae 0x102f99d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1009594
push ecx
call esi
push 0x1009580
push dword [ebp - 0x764]
mov dword [ebp - 0x760], eax
call esi
mov dword [ebp - 0x768], eax
jmp 0x102f9c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1009564
push ecx
call esi
push 0x100954c
jmp 0x102f987
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1009500
call fcn.01071ac0
pop ecx
pop ecx
cmp dword [ebp - 0x760], 0
je 0x102fc94
cmp dword [ebp - 0x768], 0
je 0x102fc94
push ebx
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x102fc7e
lea edi, [ebp - 0x310]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x102f9fc
lea eax, [ebp - 0x20c]
push eax
push 0x10094f0
lea eax, [ebp - 0x310]
mov esi, 0x10094ec
push eax
movsw word es:[edi], word [esi]
call fcn.010780c4
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDecompressOrCopyFileA]
mov edi, eax
test edi, edi
jne 0x102fa8e
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.msvcrt.dll_mbstowcs]
add esp, 0xc
lea eax, [ebp - 0x774]
push eax
lea eax, [ebp - 0x77c]
push eax
lea eax, [ebp - 0x778]
push eax
lea eax, [ebp - 0x788]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [ebp - 0x760]
mov edi, eax
test edi, edi
je 0x102faad
push edi
push 0x10094a0
jmp 0x102fa94
push edi
push 0x1009458
call fcn.01071ac0
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x102fc9f
push dword [ebp - 0x788]
push dword [ebp - 0x774]
push 1
call dword [sym.imp.CRYPT32.dll_CertCreateCertificateContext]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x760], eax
jne 0x102faeb
call esi
mov edi, eax
test edi, edi
jne 0x102faeb
call esi
push eax
push 0x1009408
call fcn.01071ac0
pop ecx
pop ecx
push 0xd
pop edi
push dword [ebp - 0x774]
push dword [ebp - 0x77c]
push dword [ebp - 0x778]
call dword [ebp - 0x768]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x760], 0
je 0x102fc9f
push 0x10093fc
push 0x20000
push 0
push 1
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
test eax, eax
mov dword [ebp - 0x768], eax
jne 0x102fb5e
call esi
mov edi, eax
push edi
push 0x10093c0
call fcn.01071ac0
test edi, edi
pop ecx
pop ecx
jne 0x102fc3f
push 0xd
pop edi
jmp 0x102fc3f
mov ebx, dword [sym.imp.CRYPT32.dll_CryptEncodeObject]
lea eax, [ebp - 0x770]
push eax
push 0
lea eax, [ebp - 0x784]
push eax
push 0x24
push 1
call ebx
test eax, eax
je 0x102fc71
cmp dword [ebp - 0x770], 0
jbe 0x102fc9f
push dword [ebp - 0x770]
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0x76c], eax
je 0x102fc62
lea ecx, [ebp - 0x770]
push ecx
push eax
lea eax, [ebp - 0x784]
push eax
push 0x24
push 1
call ebx
test eax, eax
je 0x102fc71
lea eax, [ebp - 0x770]
push eax
xor edi, edi
push edi
push 9
push dword [ebp - 0x760]
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
test eax, eax
jne 0x102fbff
call esi
mov edi, eax
test edi, edi
jne 0x102fbee
push 0xd
pop edi
push edi
push 0x1009370
call fcn.01071ac0
test edi, edi
pop ecx
pop ecx
jne 0x102fc31
push 0
push 2
push dword [ebp - 0x760]
push dword [ebp - 0x768]
call dword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
test eax, eax
jne 0x102fc31
call esi
mov edi, eax
test edi, edi
jne 0x102fc24
push 0xd
pop edi
push edi
push 0x1009320
call fcn.01071ac0
pop ecx
pop ecx
push 0
push dword [ebp - 0x768]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
push dword [ebp - 0x760]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
cmp dword [ebp - 0x76c], 0
je 0x102fc9f
push dword [ebp - 0x76c]
call dword [sym.imp.msvcrt.dll_free]
jmp 0x102fc9e
push 0x10092d0
call fcn.01071ac0
pop ecx
push 8
jmp 0x102fc7b
call esi
mov edi, eax
test edi, edi
jne 0x102fc31
push 0xd
pop edi
jmp 0x102fc31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push 0x1009288
call fcn.01071ac0
pop ecx
jmp 0x102fc9e
push 0x1009248
call fcn.01071ac0
pop ecx
cmp dword [ebp - 0x764], 0
je 0x102fcb4
push dword [ebp - 0x764]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x102fccb
push edi
push 0x1009224
push 0x1106960
call fcn.01071ac0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 4