Function at 0x41a370
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446f90
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 0x41a61e
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 0x41a413
mov ecx, ebx
lea eax, [ebp - 0x10]
call fcn.00403650
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], ebx
jge 0x41a422
push 0x80070057
call fcn.004036a0
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.0041fae0
test eax, eax
jne 0x41a610
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push eax
push esi
call fcn.004301c6
add esp, 8
test eax, eax
jne 0x41a610
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 0x41a480
mov ecx, ebx
lea eax, [ebp - 0x10]
call fcn.00403650
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], ebx
jl 0x41a418
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.0041fae0
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a4a7
sub eax, edx
sar eax, 1
js 0x41a418
cmp eax, dword [esi - 8]
jg 0x41a418
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 0x41a4ea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x20], edi
jmp 0x41a4ed
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push 0x5c
push eax
call fcn.0042e453
add esp, 8
test eax, eax
jne 0x41a506
or eax, 0xffffffff
jmp 0x41a50a
sub eax, dword [ebx]
sar eax, 1
lea ecx, [ebp + 0x10]
mov edx, ebx
call fcn.004038f0
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 0x41a54f
test edi, edi
je 0x41a545
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 0x41a572
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp + 0xb], 0
je 0x41a586
test edi, edi
je 0x41a61e
push edi
jmp 0x41a618
mov eax, dword [ebx]
mov edi, dword [eax - 0xc]
push 0x5c
push eax
call fcn.0042e453
add esp, 8
test eax, eax
jne 0x41a59f
or ecx, 0xffffffff
jmp 0x41a5a5
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.00406df0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x20]
call fcn.00421150
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 0x41a5e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41a610
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x41a5f4
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 0x41a61e
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 0x41a641
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