Function at 0x41df1f
Capabilities:
Delete file
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x10], ebx
call fcn.0041e451
push eax
mov edi, 0xf003f
push edi
push ebx
push 0x402660
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e1bd
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.0041e451
push eax
push edi
push ebx
push dword [esi + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e1ae
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x41e1ae
cmp dword [ebp - 0x2c], 1
je 0x41dfb1
call fcn.004214a4
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 8]
mov edi, dword [ebp - 0x20]
inc eax
push eax
xor edx, edx
mov dword [ebp - 0x18], eax
shr edi, 1
call fcn.0040fae3
lea eax, [edi + 1]
xor edx, edx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040fae3
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x41e194
mov word [esi + edi*2], ax
lea edx, [esi + 4]
lea eax, [edi - 1]
push eax
lea ecx, [ebp - 4]
call fcn.0040fae3
movzx eax, word [esi]
mov ecx, dword [ebp - 8]
sub eax, 0x30
mov dword [ebp - 0x28], eax
mov eax, dword [0x424304]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41e043
test dx, dx
je 0x41e03f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41e043
add eax, 4
add ecx, 4
test dx, dx
jne 0x41e01d
mov edi, ebx
jmp 0x41e048
sbb edi, edi
or edi, 1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], 2
movzx eax, word [eax]
test ax, ax
mov ecx, eax
mov dword [ebp - 0x24], ecx
setne byte [ebp - 0x30]
test ax, ax
jne 0x41e06f
test edi, edi
je 0x41e0bc
lea eax, [ebp - 8]
jmp 0x41e072
lea eax, [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push dword [eax]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x424e30], eax
cmp eax, 0xffffffff
je 0x41e0b4
cmp word [ebp - 0x24], bx
je 0x41e0a2
push 2
pop edx
jmp 0x41e0a5
mov edx, dword [ebp - 0x28]
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
call fcn.00410463
test al, al
jne 0x41e0bc
mov ecx, dword [ebp - 4]
call fcn.00410e32
cmp word [ebp - 0x24], bx
je 0x41e172
push dword [0x425970]
lea ecx, [ebp - 4]
call fcn.0040e232
xor eax, eax
mov dword [0x425970], ebx
test edi, edi
sete al
mov dword [0x424314], eax
test edi, edi
jne 0x41e0f8
lea edi, [ebp - 0x24]
mov dword [ebp - 0x14], 1
mov eax, ebx
jmp 0x41e104
mov eax, dword [ebp - 8]
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], ebx
push eax
mov ecx, 0x425970
call fcn.0040e232
mov eax, dword [ebp - 0x14]
mov dword [edi], ebx
test al, 2
je 0x41e12f
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], ebx
je 0x41e12f
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x14]
test al, 1
je 0x41e141
cmp dword [ebp - 0x24], ebx
je 0x41e141
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x28]
push ebx
push 1
push 0xb9
push dword [0x425e04]
mov dword [0x424ebc], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov cl, 1
call fcn.0040d7c7
call fcn.0040d3e0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x34]
push ebx
push ebx
push dword [eax + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
cmp dword [ebp - 4], 0
mov bl, 1
je 0x41e194
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test esi, esi
je 0x41e19f
push esi
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
cmp dword [ebp - 8], 0
je 0x41e1ae
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
cmp dword [ebp - 0xc], 0
je 0x41e1bd
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x41e1cc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret