Function at 0x703c8630
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x7c
mov dword [ebp - 0x44], eax
mov eax, dword [eax]
mov dword [ebp - 0x40], edx
mov edx, ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
call sym._get_word
mov edi, eax
test eax, eax
js 0x703c8826
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0x100
xor esi, esi
mov dword [ebp - 0x48], eax
call eax
mov edx, edi
mov dword [ebp - 0x20], pe_nt_image_headers32
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0
jmp 0x703c87aa
mov dword [esp + 4], str.ForceRemove
mov eax, dword [ebx]
mov esi, 3
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x703c8900
mov edx, ebx
lea eax, [ebp - 0x30]
call sym._get_word
mov edx, eax
test eax, eax
js 0x703c87f0
test byte [0x703cc038], 8
jne 0x703c8890
test edi, edi
je 0x703c8830
mov eax, dword [ebx]
cmp esi, 2
je 0x703c8b08
cmp esi, 4
je 0x703c8ae0
cmp esi, 3
je 0x703c8bc0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x2c]
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
test eax, eax
jne 0x703c8ef5
mov eax, dword [ebp - 0x30]
cmp word [eax], 0x3d
je 0x703c89e0
cmp esi, 2
je 0x703c8b28
cmp esi, 2
lea eax, [esi - 2]
setne byte [ebp - 0x3c]
and eax, 0xfffffffd
je 0x703c874d
mov eax, dword [ebp - 0x30]
cmp word [eax], 0x7b
je 0x703c8a80
test byte [0x703cc038], 8
jne 0x703c8856
test edi, edi
jne 0x703c876f
test esi, esi
je 0x703c88d0
cmp esi, 3
je 0x703c88d0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x703c8788
cmp byte [ebp - 0x3c], 0
je 0x703c8788
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov edx, ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
call sym._get_word
mov edx, eax
test eax, eax
js 0x703c8c20
mov eax, dword [ebx]
cmp word [eax + 2], 0
jne 0x703c87b9
cmp word [eax], 0x7d
je 0x703c87f0
mov dword [esp + 4], str.NoRemove
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
jne 0x703c8690
mov edx, ebx
lea eax, [ebp - 0x30]
mov esi, 1
call sym._get_word
mov edx, eax
test eax, eax
jns 0x703c86c7
nop
cmp esi, 2
mov edi, edx
setne byte [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x703c881e
cmp byte [ebp - 0x3c], 0
je 0x703c881e
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi - 2]
and eax, 0xfffffffd
jne 0x703c8950
cmp esi, 4
jne 0x703c871b
mov byte [ebp - 0x3c], 1
test byte [0x703cc038], 8
je 0x703c875a
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str._x__x_n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x703c875a
mov eax, dword [ebx]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.name___s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x703c86d4
mov eax, dword [ebp - 0x24]
test byte [0x703cc038], 8
jne 0x703c8b80
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
sub esp, 8
jmp 0x703c876f
mov dword [esp + 4], 0x703cf7ee
mov eax, dword [ebx]
mov esi, 2
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x703c86b3
mov dword [esp + 4], str.Delete
mov eax, dword [ebx]
mov esi, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test eax, eax
je 0x703c86b3
xor esi, esi
jmp 0x703c86c7
mov eax, dword [ebx]
mov ecx, 0xffffffff
lea edx, [ebp - 0x24]
call sym._strbuf_write
lea eax, [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
test eax, eax
je 0x703c871b
test byte [0x703cc038], 4
je 0x703c871b
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x24]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0xc], str.Could_not_open_key__s:__08lx_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebp - 0x30]
cmp word [eax], 0x3d
jne 0x703c8728
lea esi, [esi]
add eax, 2
mov edx, ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
call sym._get_word
mov edx, eax
test eax, eax
js 0x703c87f0
cmp dword [ebx + 8], 1
jne 0x703c8f26
test edi, edi
je 0x703c8b50
mov eax, dword [ebx]
movzx edx, word [eax]
cmp dx, 0x64
je 0x703c8cd8
cmp dx, 0x73
je 0x703c8c30
cmp dx, 0x62
je 0x703c8d80
cmp esi, 2
mov edi, 0x80020009
setne byte [ebp - 0x3c]
test byte [0x703cc038], 4
je 0x703c87f9
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Wrong_resource_type:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x703c87f9
movzx eax, word [eax + 2]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_iswspace]
test eax, eax
je 0x703c874d
mov edx, ebx
lea eax, [ebp - 0x30]
call sym._get_word
mov edx, eax
test eax, eax
js 0x703c8abf
mov dword [esp], edi
mov edx, dword [ebp - 0x2c]
mov ecx, ebx
lea eax, [ebp - 0x30]
call sym._do_process_key
mov edx, eax
test eax, eax
jns 0x703c874d
mov eax, dword [ebp - 0x24]
mov edi, edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x703c8812
jmp 0x703c881e
test byte [0x703cc038], 8
jne 0x703c8be0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
sub esp, 8
jmp 0x703c8845
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
mov ecx, 0xffffffff
call sym._strbuf_write
mov eax, dword [ebp - 0x30]
cmp word [eax], 0x3d
je 0x703c89e0
test byte [0x703cc038], 4
jne 0x703c8ecc
mov eax, dword [ebp - 0x24]
mov edi, 0x80020009
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x703c881e
mov eax, dword [ebp - 0x30]
cmp word [eax], 0x2d
jne 0x703c8b5f
add eax, 2
mov dword [ebp - 0x30], eax
mov edx, ebx
lea eax, [ebp - 0x30]
call sym._get_word
mov edx, eax
test edx, edx
jns 0x703c8731
jmp 0x703c87f0
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Deleting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebp - 0x24]
jmp 0x703c88e0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteTreeW]
mov eax, dword [ebx]
sub esp, 8
jmp 0x703c86f9
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Deleting__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
mov eax, dword [ebx]
jmp 0x703c8aed
mov edi, eax
jmp 0x703c87f9
mov edx, ebx
lea eax, [ebp - 0x30]
call sym._get_word
mov edx, eax
test eax, eax
js 0x703c87f0
mov edx, dword [ebx]
cmp word [edx], 0
je 0x703c9022
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x703c8c58
sub eax, edx
add eax, 2
xor ecx, ecx
cmp dword [ebp - 0x1c], 0
je 0x703c8c71
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov edx, eax
test eax, eax
je 0x703c8731
test byte [0x703cc038], 4
jne 0x703c8fef
test edx, edx
jle 0x703c8b6b
movzx eax, dx
or eax, 0x80070000
cmp esi, 2
mov edi, eax
setne byte [ebp - 0x3c]
jmp 0x703c87f9
mov edx, ebx
lea eax, [ebp - 0x30]
call sym._get_word
mov edx, eax
test eax, eax
js 0x703c87f0
mov dword [ebp - 0x3c], eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcstol]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
xor eax, eax
test edx, edx
mov edx, dword [ebp - 0x3c]
je 0x703c8d1c
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3c], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x3c]
sub esp, 0x18
test eax, eax
mov ecx, eax
je 0x703c8b6b
test byte [0x703cc038], 4
jne 0x703c8fbc
movzx edx, cx
or edx, 0x80070000
test ecx, ecx
cmovle edx, ecx
jmp 0x703c8b6b
mov edx, ebx
lea eax, [ebp - 0x30]
call sym._get_word
mov edx, eax
test eax, eax
js 0x703c87f0
mov eax, dword [ebx]
cmp word [eax], 0
mov dword [ebp - 0x50], eax
je 0x703c902c
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x703c8da8
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
sar eax, 1
add eax, 1
mov ecx, eax
shr ecx, 0x1f
add eax, ecx
sar eax, 1
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], eax
mov dword [esp], eax
mov eax, dword [ebp - 0x48]
call eax
mov edx, dword [ebp - 0x54]
test eax, eax
mov dword [ebp - 0x3c], eax
je 0x703c9045
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x703c8e51
xor eax, eax
mov dword [ebp - 0x58], ebx
mov ebx, dword [ebp - 0x50]
mov dword [ebp + 8], edi
mov edi, eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x60], edx
jmp 0x703c8e3c
call sym._xdigit_to_int
mov esi, eax
cmp eax, 0xffffffff
je 0x703c8f16
movzx eax, word [ebx + edi*4 + 2]
call sym._xdigit_to_int
cmp eax, 0xffffffff
je 0x703c8f16
shl esi, 4
mov edx, esi
or edx, eax
mov eax, dword [ebp - 0x3c]
mov byte [eax + edi], dl
add edi, 1
cmp dword [ebp - 0x4c], edi
je 0x703c8fa5
movzx eax, word [ebx + edi*4]
test ax, ax
jne 0x703c8e00
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
xor eax, eax
test ecx, ecx
je 0x703c8e5d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], edx
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], ecx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x4c]
sub esp, 0x18
test eax, eax
mov ecx, eax
je 0x703c8eb5
test byte [0x703cc038], 4
jne 0x703c9056
movzx edx, cx
or edx, 0x80070000
test ecx, ecx
cmovle edx, ecx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov edx, dword [ebp - 0x4c]
jmp 0x703c8b6b
mov dword [esp + 0xc], str.value_not_set__n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x703c8b35
mov edi, eax
test byte [0x703cc038], 4
jne 0x703c8f78
movzx eax, di
mov byte [ebp - 0x3c], 1
or eax, 0x80070000
test edi, edi
cmovg edi, eax
jmp 0x703c87f9
mov esi, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x58]
mov edx, 0x80004005
mov edi, dword [ebp + 8]
jmp 0x703c8eb5
cmp esi, 2
mov edi, 0x80020009
setne byte [ebp - 0x3c]
test byte [0x703cc038], 4
je 0x703c87f9
mov eax, dword [ebx]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.Wrong_registry_type:__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x703c87f9
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_create_open__key:__08lx_n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_2
jmp 0x703c8f00
mov eax, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov edi, dword [ebp + 8]
jmp 0x703c8e51
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_set_value_of_key:__08lx_n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 2
mov dword [ebp - 0x3c], eax
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x3c]
jmp 0x703c8d6b
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_set_value_of_key:__08lx_n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 2
mov dword [ebp - 0x3c], eax
call sym._wine_dbg_log.constprop.0_2
mov edx, dword [ebp - 0x3c]
jmp 0x703c8cb3
mov eax, 2
jmp 0x703c8c66
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x48]
mov dword [esp], 0
call eax
mov edx, dword [ebp - 0x4c]
test eax, eax
mov dword [ebp - 0x3c], eax
jne 0x703c9089
cmp esi, 2
mov edi, 0x8007000e
setne byte [ebp - 0x3c]
jmp 0x703c87f9
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Could_not_set_value_of_key:_0x_08lx_n
mov dword [esp + 8], str.do_process_key
mov dword [esp + 4], 0x703cc038
mov dword [esp], 2
mov dword [ebp - 0x4c], eax
call sym._wine_dbg_log.constprop.0_2
mov ecx, dword [ebp - 0x4c]
jmp 0x703c8ea7
mov dword [ebp - 0x5c], 0
jmp 0x703c8e51