Function at 0x419a30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446500
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45d48c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45d48c
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, 0x104
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
mov edx, dword [0x45d530]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [ebp + 8]
push ecx
push edx
push edi
push str.InstallProperties
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x419cde
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x419ad3
mov ecx, ebx
lea eax, [ebp - 0x10]
call fcn.00403660
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], ebx
jge 0x419ae2
push 0x80070057
call fcn.004036b0
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + 0x208], ax
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x20]
push edx
lea edi, [ebp - 0x14]
call fcn.0041f200
test eax, eax
jne 0x419cd0
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
push esi
call fcn.0042f806
add esp, 8
test eax, eax
jne 0x419cd0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
mov dword [ebp - 0x14], ebx
jge 0x419b40
mov ecx, ebx
lea eax, [ebp - 0x10]
call fcn.00403660
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], ebx
jl 0x419ad8
push str.LocalPackage
lea edx, [ebp - 0x20]
xor ecx, ecx
mov dword [esi - 0xc], ebx
push edx
lea edi, [ebp - 0x14]
mov word [esi + 0x208], cx
call fcn.0041f200
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419b67
sub eax, edx
sar eax, 1
js 0x419ad8
cmp eax, dword [esi - 8]
jg 0x419ad8
xor ecx, ecx
mov dword [esi - 0xc], eax
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 8]
test eax, eax
je 0x419baa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x20], edi
jmp 0x419bad
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push 0x5c
push eax
call fcn.0042da33
add esp, 8
test eax, eax
jne 0x419bc6
or eax, 0xffffffff
jmp 0x419bca
sub eax, dword [ebx]
sar eax, 1
lea ecx, [ebp + 0x10]
mov edx, ebx
call fcn.00403900
mov ecx, dword [0x45d530]
mov eax, dword [eax]
lea edx, [ebp + 8]
push edx
push ecx
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419c0f
test edi, edi
je 0x419c05
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov edi, edx
test eax, eax
mov eax, dword [ebp + 0x10]
setne byte [ebp + 0xb]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419c32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp + 0xb], 0
je 0x419c46
test edi, edi
je 0x419cde
push edi
jmp 0x419cd8
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.0042da33
add esp, 8
test eax, eax
jne 0x419c5f
or ecx, 0xffffffff
jmp 0x419c65
sub eax, dword [ebx]
sar eax, 1
mov ecx, eax
mov eax, edi
sub eax, ecx
dec eax
push ebx
lea ecx, [ebp + 8]
call fcn.00406e00
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.00420870
test eax, eax
mov eax, dword [ebp + 8]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419ca2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x419cd0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x419cb4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x10]
call fcn.004032c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x419cde
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419d01
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10