Function at 0x48b800
Capabilities:
Delete registry key
Move file
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f04da
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x53f100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
xor ebx, ebx
push 0x501028
mov esi, 0xfffffffe
mov dword [ebp - 0x230], ebx
call fcn.00476970
mov ecx, dword [ebp + 8]
add esp, 4
lea eax, [ebp - 0x230]
push eax
push 0x20019
push ebx
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x48b910
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp - 0x220], esp
push eax
mov eax, dword [ebp + 8]
push eax
push str._MyRegSaveKeyEx:_failed:_couldnt_open_source_key__s__LE_d
push edx
call fcn.00478610
add esp, 0x10
call fcn.0048a810
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b8c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b8e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x48c37e
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push str..test
lea edx, [ebp + 0xc]
push edx
push ecx
call fcn.00424a38
mov ebx, dword [ebp - 0x230]
add esp, 0xc
call fcn.0048b030
xor edi, edi
add esp, 4
cmp eax, edi
je 0x48be36
push ecx
mov eax, esp
mov dword [ebp - 0x220], esp
push str.MyRegSaveKeyEx:_RegSaveKeyEx_seems_to_work._Now_doing_it_with_the_right_SA_attributes
push eax
call fcn.00478610
add esp, 8
call fcn.0048a810
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov dword [ebp - 0x220], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0047bbb0
add esp, 4
cmp eax, edi
jne 0x48ba3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push eax
push edx
push str._MyRegSaveKeyEx:_failed_deleting_hive_file_for_second_RegSaveKeyEx:__s__LE_d
push ecx
call fcn.00478610
add esp, 0x10
call fcn.0048a810
mov eax, dword [ebp - 0x230]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b9e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ba08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x48c37e
mov dword [ebp - 0x228], edi
call fcn.004cfd7f
push eax
lea ecx, [ebp - 0x22c]
push str.SoftwareCameyo.Repackage._d
push ecx
call fcn.00478610
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x22c]
cmp eax, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
je 0x48bb12
cmp word [eax], 0
je 0x48bb12
lea edx, [ebp - 0x224]
push edx
push 0x10008
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48bb0c
lea esp, [esp]
mov edx, dword [ebp - 0x224]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0
push edx
mov dword [ebp - 0x234], 0x104
call edi
cmp eax, 0x103
je 0x48baf3
test eax, eax
jne 0x48baff
mov ecx, dword [ebp - 0x224]
push eax
lea eax, [ebp - 0x21c]
push eax
push ecx
call fcn.00479750
add esp, 0xc
test eax, eax
je 0x48baa0
jmp 0x48baff
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 0x224]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
push 0
lea ecx, [ebp - 0x228]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x48bc14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp - 0x220], esp
push eax
mov eax, dword [ebp - 0x22c]
push eax
push str._MyRegSaveKeyEx:_could_not_create_Repackage_key:__s__LE_d
push edx
call fcn.00478610
add esp, 0x10
call fcn.0048a810
mov ecx, dword [ebp - 0x230]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48bb9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bbbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bbe2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48b908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or eax, 0xffffffff
jmp 0x48c37e
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x507fe4
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 0x230]
push 0
push ecx
push 0
push edx
call eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push eax
push ebx
push str.MyRegSaveKeyEx:_SHCopyKeyW_returned_Res_d__LE_d
push ecx
call fcn.00478610
add esp, 0x10
call fcn.0048a810
add esp, 4
test ebx, ebx
jne 0x48bca1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x228]
push 2
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyExW]
mov ebx, eax
call esi
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push eax
push ebx
push str.MyRegSaveKeyEx:_actual_RegSaveKeyEx_returned_Res_d__LE_d
push ecx
jmp 0x48bcb4
call esi
push ecx
mov edx, esp
mov dword [ebp - 0x220], esp
push eax
push ebx
push str._MyRegSaveKeyEx:_SHCopeKeyW_failed:_Res_d__LE_d
push edx
call fcn.00478610
add esp, 0x10
call fcn.0048a810
mov eax, dword [ebp - 0x228]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
mov esi, eax
test eax, eax
je 0x48bd75
cmp word [eax], 0
je 0x48bd75
lea ecx, [ebp - 0x224]
push ecx
push 0x10008
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48bd75
mov ecx, dword [ebp - 0x224]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0
push ecx
mov dword [ebp - 0x234], 0x104
call edi
cmp eax, 0x103
je 0x48bd5c
test eax, eax
jne 0x48bd68
push eax
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x21c]
push edx
push eax
call fcn.00479750
add esp, 0xc
test eax, eax
je 0x48bd09
jmp 0x48bd68
push esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push str.MyRegSaveKeyEx:_success__short_path_
call fcn.004247e9
call fcn.0048a810
mov edx, dword [ebp - 0x230]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bdc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48bde6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48be09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48be2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x48c37e
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.RegLoadAppKeyW
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x48c2e9
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
mov edx, esp
mov dword [ebp - 0x220], esp
push eax
mov eax, dword [ebp + 0x10]
push ecx
push eax
push str.MyRegSaveKeyEx:_trying_DoRunDll__s_:_KeyName_s__TargetFile_s
push edx
call fcn.00478610
add esp, 0x14
call fcn.0048a810
mov esi, esp
mov dword [ebp - 0x220], esp
push str.VirtReg.dat
call fcn.004cfd7f
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.CE._x._x._x._s
push esi
call fcn.00478610
lea ecx, [ebp - 0x224]
add esp, 0x18
push ecx
call fcn.00477ce0
add esp, 8
mov bl, 4
mov byte [ebp - 4], bl
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x234], edi
mov eax, dword [edx - 0xc]
push ecx
mov dword [ebp - 0x220], esp
cmp eax, edi
je 0x48c0b9
mov ecx, dword [ebp - 0x224]
mov edx, dword [ebp + 8]
mov eax, esp
push ecx
push edx
push str._s__s
push eax
lea esi, [ebp - 0x234]
call fcn.00478610
add esp, 0xc
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x228], esp
push str.MyRegSaveKeyExRundll
call fcn.004247e9
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x22c], esp
mov edi, esp
push eax
call fcn.00425422
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.004805c0
add esp, 0xc
test eax, eax
je 0x48c0a9
cmp dword [ebp - 0x234], 0x7b
jne 0x48c0a9
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push str.MyRegSaveKeyEx:_success__through_Rundll_
call fcn.004247e9
call fcn.0048a810
mov eax, dword [ebp - 0x224]
add esp, 4
push 0xf
push 0xc0000000
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x220], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0048b6b0
add esp, 0xc
push ecx
mov dword [ebp - 0x220], esp
test eax, eax
je 0x48c01f
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0047bbb0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x224]
add esp, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x48bff1
xor esi, esi
jmp 0x48c2c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, dword [ebp - 0x224]
mov edx, esp
mov dword [ebp - 0x220], esp
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push str.MyRegSaveKeyEx:_MoveFile1__s___s__failed__LE_d
push edx
call fcn.00478610
add esp, 0x14
jmp 0x48c0c5
mov edx, esp
push str.MyRegSaveKeyEx:_timed_out_waiting_for_file_to_become_available__1_
push edx
call fcn.00478610
add esp, 8
call fcn.0048a810
mov dword [ebp - 0x220], esp
mov esi, esp
push str.VirtReg.dat
call fcn.004cfd7f
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.CE._x._x._x._s
push esi
call fcn.00478610
lea eax, [ebp - 0x220]
add esp, 0x18
push eax
call fcn.00477ce0
add esp, 8
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 7
call fcn.00424eee
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c0cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x48c0cd
push ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push str.MyRegSaveKeyEx:_Rundll_failed
jmp 0x48c0c0
mov ecx, esp
push str.MyRegSaveKeyEx:_no_ExportDll_specified
call fcn.004247e9
call fcn.0048a810
add esp, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x228], esp
push edx
push eax
push SysReAllocStringLen
push str.MyRegSaveKeyEx:_trying_directly_through_our_process:_hRootKey0x_x__KeyName_s__TargetFile_s
push ecx
call fcn.00478610
add esp, 0x14
call fcn.0048a810
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
mov dword [ebp - 0x228], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 0x22c], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], bl
call fcn.0048b250
mov esi, eax
add esp, 8
test esi, esi
jne 0x48c29c
push ecx
mov ecx, esp
mov dword [ebp - 0x228], esp
push str.MyRegSaveKeyEx:_success__directly_through_our_process_
call fcn.004247e9
call fcn.0048a810
mov eax, dword [ebp - 0x224]
add esp, 4
push 0xf
push 0xc0000000
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x228], esp
mov esi, esp
push eax
call fcn.00425422
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0048b6b0
add esp, 0xc
test eax, eax
jne 0x48c254
push ecx
mov ecx, esp
mov dword [ebp - 0x228], esp
push str.MyRegSaveKeyEx:_timed_out_waiting_for_file_to_become_available__2_
push ecx
call fcn.00478610
add esp, 8
call fcn.0048a810
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48c1de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c201
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c224
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c24a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0xc
jmp 0x48c37e
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x224]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffffe
je 0x48c2c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x228], esp
push eax
mov eax, dword [ebp - 0x224]
push edx
push eax
push str.MyRegSaveKeyEx:_MoveFile2__s___s__failed__LE_d
push ecx
call fcn.00478610
add esp, 0x14
jmp 0x48c2bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x228], esp
push eax
push esi
push str.MyRegSaveKeyEx:_failed_directly_through_our_process:_Res_d__LE_d
push ecx
call fcn.00478610
add esp, 0x10
call fcn.0048a810
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48c2e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x228], esp
push eax
push esi
push str.MyRegSaveKeyEx:_Res_d__LE_d
push ecx
call fcn.00478610
add esp, 0x10
call fcn.0048a810
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48c333
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c356
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48c37c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 - 0x14]
xor ecx, ebp
call fcn.004cb516
mov esp, ebp
pop ebp
ret