Function at 0x4a949c
Capabilities:
Delete file
Delete registry value
Move file
Set registry value

Disassembly:
push 0x494
mov eax, 0x50a84b
call fcn.004e3d69
xor ebx, ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x488], ebx
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x48c]
call fcn.004027f9
mov dword [ebp - 4], ebx
mov dword [ebp - 0x474], 0x2001f
cmp byte [edi], bl
je 0x4a94f6
mov al, byte [esi + 0x30]
xor ecx, ecx
cmp al, bl
sete cl
dec ecx
and ecx, 0xffffff00
add ecx, 0x2021f
mov dword [ebp - 0x474], ecx
call fcn.004077e9
mov eax, dword [esi + 0x34]
dec eax
cmp eax, 8
ja case.default.0x4a9504
jmp dword [eax*4 + 0x4a9d48]
cmp dword [esi + 8], 1
jg 0x4a9516
call fcn.004be614
mov eax, dword [esi + 4]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x48c]
add ecx, 0xfffffff0
call fcn.0040285b
mov eax, dword [ebp - 0x488]
call fcn.004e3dec
ret
cmp dword [esi + 8], ebx
jle 0x4a9511
mov eax, dword [esi + 4]
push ecx
mov dword [ebp - 0x490], esp
mov ecx, esp
push eax
call fcn.00402305
lea eax, [ebp - 0x494]
push eax
call fcn.004aa643
push eax
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 1
call fcn.004025da
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x494]
add ecx, 0xfffffff0
call fcn.0040285b
push ecx
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x47c], esp
mov ecx, esp
push eax
call fcn.00402305
call fcn.004aa611
cmp eax, 2
je 0x4a95bf
push ecx
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x47c], esp
mov ecx, esp
push eax
call fcn.00402305
call fcn.004aa2e4
mov ecx, dword [esi + 8]
cmp ecx, ebx
jle 0x4a9511
cmp ecx, 1
mov esi, dword [esi + 4]
mov eax, dword [esi]
jle 0x4a9511
mov esi, dword [esi + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x4a9522
mov dword [ebp - 0x488], ebx
jmp case.default.0x4a9504
lea eax, [edi + 0x24]
push eax
lea ecx, [ebp - 0x484]
call fcn.00402305
mov byte [ebp - 4], 2
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x478]
call fcn.004027f9
mov byte [ebp - 4], 3
mov dword [ebp - 0x240], ebx
cmp dword [edi + 0x38], ebx
jne 0x4a971c
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
cmp eax, ebx
jne 0x4a9667
mov ecx, dword [ebp - 0x478]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x484]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x48c]
add ecx, 0xfffffff0
call fcn.0040285b
xor eax, eax
jmp 0x4a953c
mov edx, dword [edi + 0x2c]
cmp dword [edx - 0xc], ebx
jne 0x4a96ad
add eax, 0xfffffffd
push eax
lea eax, [ebp - 0x49c]
push eax
call fcn.00407984
push 0x5ce7f4
mov byte [ebp - 4], 4
push dword [eax]
lea eax, [edi + 0x2c]
push str._s_s
push eax
call fcn.00402a1d
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x49c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040285b
push dword [edi + 0x2c]
call fcn.0043b332
pop ecx
mov dword [edi + 0x38], eax
cmp eax, ebx
jne 0x4a971c
push ebx
push ebx
push 0x5afd90
push ecx
mov ecx, esp
mov dword [ebp - 0x47c], esp
push str.RESOURCESTRING
call fcn.0040253b
push ecx
mov ecx, esp
mov dword [ebp - 0x474], esp
push str.IDS_UNZIP_ERR
mov byte [ebp - 4], 5
call fcn.0040253b
lea eax, [ebp - 0x498]
push eax
mov byte [ebp - 4], 3
call fcn.00406ef3
mov byte [ebp - 4], 6
push dword [eax]
call fcn.004be306
mov ecx, dword [ebp - 0x498]
add ecx, 0xfffffff0
call fcn.0040285b
jmp 0x4a9636
mov eax, dword [edi + 0x38]
push 0xffffffffffffffff
lea ebx, [ebp - 0x240]
call fcn.0043b3c5
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
pop ecx
mov dword [ebp - 0x47c], eax
jle 0x4a9511
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
sub eax, ebx
je 0x4a9752
dec eax
je 0x4a97c7
dec eax
dec eax
jne 0x4a9636
cmp dword [esi + 8], 3
jle 0x4a9511
mov eax, dword [esi + 4]
add eax, 0xc
push eax
lea ecx, [ebp - 0x478]
call fcn.004025da
cmp dword [ebp - 0x240], ebx
mov dword [ebp - 0x474], ebx
jle 0x4a986d
push dword [ebp - 0x474]
mov eax, dword [edi + 0x38]
lea ebx, [ebp - 0x470]
call fcn.0043b3c5
pop ecx
mov ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x46c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a97d9
test dx, dx
je 0x4a97c3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a97d9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a97a1
xor eax, eax
jmp 0x4a97de
cmp dword [esi + 8], 2
jle 0x4a9511
mov eax, dword [esi + 4]
add eax, 8
jmp 0x4a9762
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4a981e
mov ebx, dword [ebp - 0x478]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x484]
push ebx
call fcn.00414446
push dword [edi + 0x24]
mov eax, dword [edi + 0x38]
call fcn.0043b421
mov eax, dword [edi + 0x38]
pop ecx
push ebx
push dword [ebp - 0x474]
call fcn.0043b3f0
pop ecx
pop ecx
mov dword [ebp - 0x47c], eax
test eax, eax
je 0x4a9838
inc dword [ebp - 0x474]
mov eax, dword [ebp - 0x474]
cmp eax, dword [ebp - 0x240]
jl 0x4a9780
jmp 0x4a986d
mov al, byte [esi + 0x30]
mov byte [ebp - 0x474], al
push dword [ebp - 0x474]
lea eax, [ebp - 0x484]
push ecx
mov dword [ebp - 0x474], esp
mov ecx, esp
push eax
call fcn.00402305
call fcn.004aa46f
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x47c], 0
jne 0x4a9880
mov dword [ebp - 0x488], 1
mov ecx, dword [ebp - 0x478]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x484]
add ecx, 0xfffffff0
call fcn.0040285b
jmp case.default.0x4a9504
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 4], 7
cmp dword [esi + 8], ebx
mov dword [ebp - 0x488], ebx
jle 0x4a9511
cmp dword [esi + 0x1c], ebx
mov eax, dword [esi + 4]
mov eax, dword [eax]
jle 0x4a9511
mov esi, dword [esi + 0x18]
push eax
mov eax, dword [esi]
call fcn.004aa553
push eax
mov eax, dword [ebp - 0x474]
lea edi, [ebp - 0x480]
call fcn.0041455e
test eax, eax
jne 0x4a9910
mov esi, edi
call fcn.00417e10
lea ecx, [ebp - 0x480]
mov esi, eax
call fcn.0041459a
xor eax, eax
cmp esi, ebx
sete al
mov dword [ebp - 0x488], eax
lea ecx, [ebp - 0x480]
call fcn.0041459a
jmp case.default.0x4a9504
lea eax, [edi + 0x24]
push eax
lea ecx, [ebp - 0x478]
call fcn.00402305
mov byte [ebp - 4], 8
call fcn.004be6f3
push eax
lea ecx, [ebp - 0x484]
call fcn.004027f9
mov byte [ebp - 4], 9
mov dword [ebp - 0x240], ebx
cmp dword [edi + 0x38], ebx
jne 0x4a9a31
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
cmp eax, ebx
jne 0x4a997c
mov ecx, dword [ebp - 0x484]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x478]
jmp 0x4a964a
mov edx, dword [edi + 0x2c]
cmp dword [edx - 0xc], ebx
jne 0x4a99c2
add eax, 0xfffffffd
push eax
lea eax, [ebp - 0x4a0]
push eax
call fcn.00407984
push 0x5ce7f4
mov byte [ebp - 4], 0xa
push dword [eax]
lea eax, [edi + 0x2c]
push str._s_s
push eax
call fcn.00402a1d
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x4a0]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040285b
push dword [edi + 0x2c]
call fcn.0043b332
pop ecx
mov dword [edi + 0x38], eax
cmp eax, ebx
jne 0x4a9a31
push ebx
push ebx
push 0x5afd90
push ecx
mov ecx, esp
mov dword [ebp - 0x47c], esp
push str.RESOURCESTRING
call fcn.0040253b
push ecx
mov ecx, esp
mov dword [ebp - 0x474], esp
push str.IDS_UNZIP_ERR
mov byte [ebp - 4], 0xb
call fcn.0040253b
lea eax, [ebp - 0x490]
push eax
mov byte [ebp - 4], 9
call fcn.00406ef3
mov byte [ebp - 4], 0xc
push dword [eax]
call fcn.004be306
mov ecx, dword [ebp - 0x490]
add ecx, 0xfffffff0
call fcn.0040285b
jmp 0x4a9963
mov eax, dword [edi + 0x38]
push 0xffffffffffffffff
lea ebx, [ebp - 0x240]
call fcn.0043b3c5
cmp dword [esi + 8], 1
pop ecx
mov dword [ebp - 0x47c], eax
jle 0x4a9511
mov eax, dword [esi + 4]
add eax, 4
push eax
lea ecx, [ebp - 0x484]
call fcn.004025da
and dword [ebp - 0x474], 0
cmp dword [ebp - 0x240], 0
jle 0x4a9b53
push dword [ebp - 0x474]
mov eax, dword [edi + 0x38]
lea ebx, [ebp - 0x470]
call fcn.0043b3c5
pop ecx
mov ecx, dword [ebp - 0x484]
lea eax, [ebp - 0x46c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a9abf
test dx, dx
je 0x4a9abb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a9abf
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a9a99
xor eax, eax
jmp 0x4a9ac4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4a9b04
mov ebx, dword [ebp - 0x484]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x478]
push ebx
call fcn.00414446
push dword [edi + 0x24]
mov eax, dword [edi + 0x38]
call fcn.0043b421
mov eax, dword [edi + 0x38]
pop ecx
push ebx
push dword [ebp - 0x474]
call fcn.0043b3f0
pop ecx
pop ecx
mov dword [ebp - 0x47c], eax
test eax, eax
je 0x4a9b1e
inc dword [ebp - 0x474]
mov eax, dword [ebp - 0x474]
cmp eax, dword [ebp - 0x240]
jl 0x4a9a78
jmp 0x4a9b53
mov al, byte [esi + 0x30]
mov byte [ebp - 0x474], al
push dword [ebp - 0x474]
lea eax, [ebp - 0x478]
push ecx
mov dword [ebp - 0x474], esp
mov ecx, esp
push eax
call fcn.00402305
call fcn.004aa46f
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x47c], 0
jne 0x4a9b66
mov dword [ebp - 0x488], 1
mov ecx, dword [ebp - 0x484]
add ecx, 0xfffffff0
call fcn.0040285b
mov ecx, dword [ebp - 0x478]
jmp 0x4a9894
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 4], 0xd
cmp dword [esi + 8], ebx
mov dword [ebp - 0x488], ebx
jle 0x4a9511
cmp dword [esi + 0x1c], 1
mov eax, dword [esi + 4]
mov ecx, dword [eax]
jle 0x4a9511
mov eax, dword [esi + 0x18]
add eax, 4
mov eax, dword [eax]
push ecx
call fcn.004aa553
push eax
mov eax, dword [ebp - 0x474]
lea edi, [ebp - 0x480]
call fcn.0041455e
test eax, eax
jne 0x4a9910
cmp dword [esi + 8], 1
jle 0x4a9511
mov eax, dword [esi + 4]
push dword [eax + 4]
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4a98f6
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 4], 0xe
cmp dword [esi + 8], ebx
mov dword [ebp - 0x488], ebx
jle 0x4a9511
cmp dword [esi + 0x1c], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
jle 0x4a9511
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
push ebx
push ebx
push dword [ebp - 0x474]
push ebx
push ebx
push ecx
call fcn.004aa553
push eax
lea ecx, [ebp - 0x480]
call fcn.004aa92f
test eax, eax
jne 0x4a9910
xor edi, edi
inc edi
cmp dword [esi + 0x1c], edi
jle 0x4a9511
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
sub eax, ebx
je 0x4a9d14
dec eax
je 0x4a9ce1
dec eax
je 0x4a9ca0
dec eax
je 0x4a9c7f
lea ecx, [ebp - 0x480]
call fcn.0041459a
jmp 0x4a9652
mov ecx, dword [esi + 8]
cmp ecx, 2
jle 0x4a9511
cmp ecx, edi
mov esi, dword [esi + 4]
mov eax, dword [esi + 8]
jle 0x4a9511
push 2
jmp 0x4a9d2f
mov edx, dword [esi + 0x2c]
cmp edx, ebx
je 0x4a9cd4
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x4a9cd4
cmp dword [esi + 8], edi
jle 0x4a9511
push edx
push ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push 3
push ebx
push eax
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4a98f6
cmp dword [esi + 8], edi
jle 0x4a9511
push ebx
push ebx
jmp 0x4a9cb9
cmp dword [esi + 0x1c], 2
jle 0x4a9511
mov eax, dword [esi + 0x18]
add eax, 8
cmp dword [esi + 8], edi
jle 0x4a9511
push dword [eax]
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
push ecx
lea eax, [ebp - 0x480]
push eax
call fcn.004aa8db
jmp 0x4a98f6
mov ecx, dword [esi + 8]
cmp ecx, 2
jle 0x4a9511
cmp ecx, edi
mov esi, dword [esi + 4]
mov eax, dword [esi + 8]
jle 0x4a9511
push edi
mov esi, dword [esi + 4]
push eax
push esi
lea eax, [ebp - 0x480]
push eax
call fcn.004aa8f9
jmp 0x4a98f6