Function at 0x4230d0
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.004237ac
push eax
mov edi, 0xf003f
push edi
push ebx
push 0x4028d8
push 0x80000001
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x4234bc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.004237ac
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 0x4234ad
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 0x4234ad
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.0040c996
lea eax, [esi + 1]
xor edx, edx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c996
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 0x423497
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, 6
ja 0x423497
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 0x423497
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 0x42327d
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.0040c996
lea ecx, [ebp - 8]
mov dword [ebp - 0x38], eax
cmp ecx, eax
je 0x42323d
push dword [eax]
call fcn.0040c1ab
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 8]
mov dword [eax], ebx
cmp dword [ebp - 0x30], ebx
je 0x42324b
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.0040c996
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x40], eax
cmp ecx, eax
je 0x423273
push dword [eax]
call fcn.0040c1ab
mov eax, dword [ebp - 0x40]
mov dword [eax], ebx
cmp dword [ebp - 0x30], ebx
je 0x4232b7
push dword [ebp - 0x30]
jmp 0x4232b1
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x34]
push eax
call fcn.0040c996
lea ecx, [ebp - 8]
mov dword [ebp - 0x40], eax
cmp ecx, eax
je 0x4232a9
push dword [eax]
call fcn.0040c1ab
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp - 8]
mov dword [eax], ebx
cmp dword [ebp - 0x34], ebx
je 0x4232b7
push dword [ebp - 0x34]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov ecx, edi
mov eax, 0x4028c0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4232e4
test dx, dx
je 0x4232e0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4232e4
add eax, 4
add ecx, 4
test dx, dx
jne 0x4232be
mov eax, ebx
jmp 0x4232e9
sbb eax, eax
or eax, 1
test eax, eax
je 0x423326
mov eax, dword [0x4292b0]
mov ecx, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42331a
test dx, dx
je 0x423316
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42331a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4232f4
mov eax, ebx
jmp 0x42331f
sbb eax, eax
or eax, 1
mov byte [ebp - 1], bl
test eax, eax
jne 0x42332a
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 0x42334f
cmp word [eax], bx
je 0x42334f
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 0x423367
cmp byte [ebp - 1], bl
jne 0x423468
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov eax, edi
jmp 0x42336f
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 0x4233b5
cmp word [ebp - 0x18], bx
je 0x42339b
push 2
pop ecx
jmp 0x42339e
mov ecx, dword [ebp - 0x3c]
push dword [ebp - 0x40]
mov edx, ecx
mov ecx, dword [ebp - 0x38]
call fcn.00410f0c
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 8]
test al, al
jne 0x4233bc
mov ecx, esi
call fcn.00411831
cmp word [ebp - 0x18], bx
je 0x423468
push dword [0x42a8cc]
lea ecx, [ebp - 8]
call fcn.0040c1ab
movzx eax, byte [ebp - 1]
mov dword [0x42a8cc], ebx
mov dword [0x4292c0], eax
test eax, eax
je 0x4233f4
xor ecx, ecx
lea esi, [ebp - 0x1c]
inc ecx
mov eax, ebx
mov dword [ebp - 0xc], ecx
jmp 0x4233fb
mov eax, edi
lea esi, [ebp - 0x38]
mov edi, ebx
push eax
mov ecx, 0x42a8cc
call fcn.0040c1ab
mov eax, dword [ebp - 0xc]
mov dword [esi], ebx
test al, 2
je 0x423426
and eax, 0xfffffffd
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x38], ebx
je 0x423426
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 0x423438
cmp dword [ebp - 0x1c], ebx
je 0x423438
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.0040f4af
call fcn.0040f0f0
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 0x423489
push eax
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test esi, esi
je 0x423494
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 0x4234a2
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test edi, edi
je 0x4234ad
push edi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
cmp dword [ebp - 0x10], 0
je 0x4234bc
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x4234cb
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