Function at 0x4396fc
Capabilities:
Delete file
Move file
Query or enumerate registry value

Disassembly:
mov eax, 0x464cb5
call fcn.0043c274
sub esp, 0x110
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], edi
call fcn.00437cf3
test al, al
jne 0x439733
call fcn.00437d0f
test al, al
mov eax, SysReAllocString
je 0x439738
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push edi
push 0x47abb0
push eax
mov dword [ebp - 0x14], edi
call esi
cmp eax, edi
jne 0x4399c5
lea ecx, [ebp - 0x20]
call fcn.00408f03
mov ecx, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 0x20], ecx
jne 0x4399c5
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0xf003f
push edi
push 0x47ab74
push ecx
mov dword [ebp - 0x14], edi
call esi
cmp eax, edi
jne 0x4399a7
lea ecx, [ebp - 0x1c]
call fcn.00408f03
mov ecx, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 0x1c], ecx
jne 0x4399a7
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push 0x47ab58
push ecx
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x4397d5
mov dword [ebp - 0x14], edi
push 1
pop eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
jb 0x43999a
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, 0x4675b0
mov esi, 0x104
lea eax, [ebp - 0x29]
push 0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x4675b8
mov dword [ebp - 0x3c], ebx
call fcn.00401c77
lea eax, [ebp - 0x2a]
push 0
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
mov dword [ebp - 0x84], 0x4675b8
mov dword [ebp - 0x64], ebx
call fcn.00401c77
push dword [ebp - 0x18]
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], esi
push 0x47ab48
push eax
mov dword [ebp - 0x24], esi
call edi
add esp, 0xc
lea eax, [ebp - 0x11c]
push dword [ebp - 0x18]
push 0x47ab34
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x84]
push esi
push eax
call fcn.0042cf38
mov ecx, dword [eax]
mov byte [ebp - 4], 4
mov byte [eax + 4], 1
call fcn.00401e7b
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x28]
and dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0xdc]
push 0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x439908
lea eax, [ebp - 0x90]
push esi
push eax
lea ecx, [ebp - 0x5c]
call fcn.0042cf38
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.00401e7b
mov eax, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x28]
and dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x11c]
push 0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
sete byte [ebp - 0xd]
call fcn.004399e6
cmp byte [ebp - 0xd], 0
je 0x439908
mov byte [ebp - 0xd], 1
jmp 0x43990c
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.004399e6
cmp byte [ebp - 0xd], 0
je 0x43996b
cmp dword [ebp - 0x78], 0
jne 0x43993c
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x439933
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x43996b
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
jne 0x439948
mov ecx, 0x467588
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x439954
mov eax, 0x467588
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x43996b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.0040125c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.0040125c
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jbe 0x4397f4
mov ebx, dword [ebp - 0x30]
xor edi, edi
push 0x47ab74
lea ecx, [ebp - 0x20]
call fcn.0042f58e
cmp dword [ebp - 0x1c], edi
je 0x4399b5
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jle 0x4399c5
and ebx, 0xffff
or ebx, 0x80070000
cmp dword [ebp - 0x20], edi
mov esi, ebx
je 0x4399d5
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret