Function at 0x5815d0
Capabilities:
Delete registry key
Delete registry value
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68215b
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.0063cb10
mov eax, dword [0x906648]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2224], ecx
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
push ebx
mov dword [ebp - 4], 0
call fcn.00580860
mov esi, eax
test esi, esi
js 0x581f86
cmp word [ebx], 0x7d
je 0x581f73
nop dword [eax]
nop word [eax + eax]
push 0x70a7a0
push ebx
mov dword [ebp - 0x2234], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x70a76c
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x581693
test edi, edi
je 0x581795
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00580860
mov esi, eax
test esi, esi
js 0x581f73
cmp dword [ebp + 0x10], 0
je 0x581795
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test ax, ax
je 0x5816f4
cmp ax, 0x5c
je 0x5816ec
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x5816d1
jmp 0x5816f4
test edx, edx
jne 0x581f5c
mov esi, 0x70b128
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x58174e
add esi, 4
cmp esi, 0x70b158
jl 0x581700
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2244]
push ebx
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
call fcn.00580fa0
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x223c], 0
test edi, edi
je 0x58178b
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00580860
mov esi, eax
test esi, esi
js 0x581f73
push ebx
mov ecx, edi
call fcn.005822d0
mov esi, eax
test esi, esi
js 0x581f73
mov dword [ebp - 0x2240], 0
jmp 0x581bb5
mov dword [ebp - 0x2240], 0
push 0x70a788
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x5817c5
mov ecx, dword [ebp - 0x2224]
xor edi, edi
push ebx
mov dword [ebp - 0x2234], edi
call fcn.00580860
mov esi, eax
test esi, esi
js 0x581f73
jmp 0x5817cb
mov edi, dword [ebp - 0x2234]
push 0x70a73c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x58191b
mov ecx, dword [ebp - 0x2224]
lea eax, [ebp - 0x2218]
push eax
call fcn.00580860
mov esi, eax
test esi, esi
js 0x581f73
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00580860
mov esi, eax
test esi, esi
js 0x581f73
cmp word [ebx], 0x3d
jne 0x581f5c
cmp dword [ebp + 0x10], 0
je 0x58189c
mov eax, dword [ebp - 0x2220]
mov edi, dword [ebp - 0x2224]
mov ecx, edi
mov dword [ebp - 0x2250], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2250]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
call fcn.0057f3a0
mov esi, eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test esi, esi
js 0x581f73
mov byte [ebp - 4], 0
mov dword [ebp - 0x224c], 0
jmp 0x581bb5
cmp dword [ebp + 0x14], 0
jne 0x581900
test edi, edi
je 0x581900
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2234], 0
push eax
push 0x20006
push 0
push 0
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x581f68
mov edi, dword [ebp - 0x2234]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x5818f5
cmp eax, 2
jne 0x581f44
test edi, edi
je 0x581900
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.005822d0
mov esi, eax
test esi, esi
js 0x581f73
jmp 0x581f38
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x581948
mov edx, ecx
cmp dx, 0x5c
je 0x581940
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x581927
jmp 0x581948
test eax, eax
jne 0x581f5c
cmp dword [ebp + 0x10], 0
je 0x581c10
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x5819b8
cmp dword [esi], 0
je 0x5819ab
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x581a08
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5819b1
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x5819d3
cmp dword [esi + 4], 0
jne 0x5819b8
mov eax, 1
jmp 0x5819d3
lea eax, [ebp - 0x221c]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x581a08
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x5819e8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x581b7c
jmp 0x581a0e
mov edi, dword [ebp - 0x2230]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x581a6e
cmp dword [esi], 0
je 0x581a61
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x581ab6
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x581a67
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x581a89
cmp dword [esi + 4], 0
jne 0x581a6e
mov eax, 1
jmp 0x581a89
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x581ab6
test edi, edi
je 0x581a98
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
je 0x581b7c
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x581b23
cmp dword [esi], 0
je 0x581b16
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x581f63
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x581b1c
push 0
push dword [esi]
lea ecx, [ebp - 0x2238]
push ecx
lea ecx, [ebp - 0x221c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x581b4b
cmp dword [esi + 4], 0
jne 0x581b23
mov eax, 1
jmp 0x581b4b
lea eax, [ebp - 0x2238]
push eax
lea eax, [ebp - 0x221c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x581f68
test edi, edi
je 0x581b5e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x581f68
mov edi, dword [ebp - 0x2224]
mov ecx, edi
push ebx
call fcn.00580860
mov esi, eax
test esi, esi
js 0x581f73
cmp word [ebx], 0x3d
jne 0x581bb5
push ebx
push 0
lea eax, [ebp - 0x2230]
mov ecx, edi
push eax
call fcn.0057f3a0
mov esi, eax
test esi, esi
js 0x581f73
cmp word [ebx], 0x7b
jne 0x581f38
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x581bc4
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x581f38
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2230]
push ebx
call fcn.005815d0
mov esi, eax
test esi, esi
js 0x581f73
push ebx
mov ecx, edi
call fcn.00580860
mov esi, eax
test esi, esi
js 0x581f73
jmp 0x581f38
cmp dword [ebp + 0x14], 0
jne 0x581cd0
mov esi, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], 0
test esi, esi
je 0x581c84
cmp dword [esi], 0
je 0x581c77
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x581c4a
lea edi, [eax + 1]
jmp 0x581cd5
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x581c7d
push 0
push dword [esi]
lea ecx, [ebp - 0x221c]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call eax
jmp 0x581c9f
cmp dword [esi + 4], 0
jne 0x581c84
mov edi, 1
jmp 0x581ca1
lea eax, [ebp - 0x221c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x581cd5
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x581cb8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x221c]
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], 0
jmp 0x581cd5
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s
push eax
call fcn.0057fc10
mov ecx, dword [ebp - 0x2224]
add esp, 0x14
push ebx
call fcn.00580860
mov esi, eax
test esi, esi
js 0x581f73
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.005822d0
mov esi, eax
test esi, esi
js 0x581f73
cmp word [ebx], 0x7b
jne 0x581d97
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x581d40
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x581d97
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2224]
push 0
push dword [ebp - 0x2230]
push ebx
call fcn.005815d0
mov esi, eax
test esi, esi
jns 0x581d81
cmp dword [ebp - 0x221c], 0
je 0x581f73
mov ecx, dword [ebp - 0x2224]
push ebx
call fcn.00580860
mov esi, eax
test esi, esi
js 0x581f73
cmp edi, 2
je 0x581f38
test edi, edi
je 0x581db4
cmp dword [ebp + 0x14], 0
jne 0x581f38
push edi
jmp 0x581f69
cmp dword [ebp + 0x14], 0
je 0x581e46
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x581e46
cmp dword [ebp - 0x221c], eax
jbe 0x581e46
mov edi, 0x70b128
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x581f38
add edi, 4
cmp edi, 0x70b158
jl 0x581e00
cmp dword [ebp - 0x2234], 0
je 0x581f38
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00580fa0
jmp 0x581f38
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x581e7f
xor edi, edi
jmp 0x581e8b
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2230]
xor eax, eax
test ecx, ecx
je 0x581ea6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x581f68
cmp dword [ebp - 0x2234], eax
je 0x581f38
test edi, edi
jne 0x581f38
cmp byte [0x911608], al
jne 0x581f03
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x581ef5
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x911604], eax
mov byte [0x911608], 1
jmp 0x581f08
mov eax, dword [0x911604]
mov byte [0x911608], 1
jmp 0x581f08
mov eax, dword [0x911604]
test eax, eax
je 0x581f21
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2220]
call eax
jmp 0x581f34
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x581f68
cmp word [ebx], 0x7d
jne 0x581660
jmp 0x581f73
push eax
call fcn.0057fcf0
add esp, 4
mov esi, eax
test edi, edi
je 0x581f73
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x581f73
mov esi, 0x80020009
jmp 0x581f73
mov eax, 1
push eax
call fcn.0057fcf0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x581f84
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0063c972
mov esp, ebp
pop ebp
ret 0x10