Function at 0x422f10
Capabilities:
Delete file
Delete registry key
Query or enumerate registry value
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x14], ebx
call fcn.004235ec
push eax
mov edi, 0xf003f
push edi
push ebx
push 0x4028b8
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x4232fc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.004235ec
push eax
push edi
push ebx
push dword [esi + 8]
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x4232ed
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4232ed
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
inc eax
shr esi, 1
xor edx, edx
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x3c], esi
call fcn.0040c916
lea eax, [esi + 1]
xor edx, edx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c916
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
push eax
push esi
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x4232d7
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
lea eax, [esi + eax*2]
mov dword [ebp - 0x18], eax
mov word [eax], cx
movzx eax, word [esi]
add eax, 0xffffffd0
mov dword [ebp - 0x3c], eax
cmp eax, 5
ja 0x4232d7
push 0x2c
push esi
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
mov dword [ebp - 0x30], eax
pop ecx
pop ecx
test eax, eax
je 0x4232d7
add eax, 2
push 0x2c
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcschr]
pop ecx
pop ecx
mov edx, eax
mov esi, ebx
mov dword [ebp - 0x40], edx
mov eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], esi
push 2
pop ecx
mov dword [ebp - 0xc], ecx
test edx, edx
je 0x4230bd
sub eax, edx
sub eax, ecx
sar eax, 1
mov dword [ebp - 0x18], eax
mov eax, edx
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x30]
push eax
call fcn.0040c916
lea ecx, [ebp - 8]
mov dword [ebp - 0x38], eax
cmp ecx, eax
je 0x42307d
push dword [eax]
call fcn.0040c12b
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 8]
mov dword [eax], ebx
cmp dword [ebp - 0x30], ebx
je 0x42308b
push dword [ebp - 0x30]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
mov edx, dword [ebp - 0x40]
push eax
add edx, 2
call fcn.0040c916
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x40], eax
cmp ecx, eax
je 0x4230b3
push dword [eax]
call fcn.0040c12b
mov eax, dword [ebp - 0x40]
mov dword [eax], ebx
cmp dword [ebp - 0x30], ebx
je 0x4230f7
push dword [ebp - 0x30]
jmp 0x4230f1
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x34]
push eax
call fcn.0040c916
lea ecx, [ebp - 8]
mov dword [ebp - 0x40], eax
cmp ecx, eax
je 0x4230e9
push dword [eax]
call fcn.0040c12b
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 8]
mov dword [eax], ebx
cmp dword [ebp - 0x34], ebx
je 0x4230f7
push dword [ebp - 0x34]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov ecx, edi
mov eax, 0x4028a0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x423124
test dx, dx
je 0x423120
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x423124
add eax, 4
add ecx, 4
test dx, dx
jne 0x4230fe
mov eax, ebx
jmp 0x423129
sbb eax, eax
or eax, 1
test eax, eax
je 0x423166
mov eax, dword [0x4292b0]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42315a
test dx, dx
je 0x423156
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42315a
add eax, 4
add ecx, 4
test dx, dx
jne 0x423134
mov eax, ebx
jmp 0x42315f
sbb eax, eax
or eax, 1
mov byte [ebp - 1], bl
test eax, eax
jne 0x42316a
mov byte [ebp - 1], 1
movzx eax, word [esi]
test ax, ax
mov ecx, eax
mov eax, dword [ebp - 0x20]
setne byte [ebp - 0x40]
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x42318f
cmp word [eax], bx
je 0x42318f
push eax
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0x18]
test cx, cx
jne 0x4231a7
cmp byte [ebp - 1], bl
jne 0x4232a8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov eax, edi
jmp 0x4231af
lea eax, [ebp - 8]
mov dword [ebp - 0x38], eax
mov eax, esi
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov dword [0x429d8c], eax
cmp eax, 0xffffffff
je 0x4231f5
cmp word [ebp - 0x18], bx
je 0x4231db
push 2
pop ecx
jmp 0x4231de
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x40]
mov edx, ecx
mov ecx, dword [ebp - 0x38]
call fcn.00410da5
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 8]
test al, al
jne 0x4231fc
mov ecx, esi
call fcn.0041170b
cmp word [ebp - 0x18], bx
je 0x4232a8
push dword [0x42a8cc]
lea ecx, [ebp - 8]
call fcn.0040c12b
movzx eax, byte [ebp - 1]
mov dword [0x42a8cc], ebx
mov dword [0x4292c0], eax
test eax, eax
je 0x423234
xor ecx, ecx
lea esi, [ebp - 0x1c]
inc ecx
mov eax, ebx
mov dword [ebp - 0xc], ecx
jmp 0x42323b
mov eax, edi
lea esi, [ebp - 0x38]
mov edi, ebx
push eax
mov ecx, 0x42a8cc
call fcn.0040c12b
mov eax, dword [ebp - 0xc]
mov dword [esi], ebx
test al, 2
je 0x423266
and eax, 0xfffffffd
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x38], ebx
je 0x423266
push dword [ebp - 0x38]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov eax, dword [ebp - 0xc]
test al, 1
je 0x423278
cmp dword [ebp - 0x1c], ebx
je 0x423278
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x3c]
push ebx
push 1
push 0xb9
push dword [0x42adac]
mov dword [0x429e18], eax
call dword [sym.imp.USER32.dll_SendMessageW]
call fcn.0040f3d3
call fcn.0040f022
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov eax, dword [ebp - 0x44]
push ebx
push ebx
push dword [eax + 8]
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov eax, dword [ebp - 0x20]
mov bl, 1
test eax, eax
je 0x4232c9
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test esi, esi
je 0x4232d4
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4232e2
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test edi, edi
je 0x4232ed
push edi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
cmp dword [ebp - 0x10], 0
je 0x4232fc
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x42330b
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret