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

Disassembly:
mov eax, 0x464b09
call fcn.0043b400
sub esp, 0xd0
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.00437053
test al, al
jne 0x4389b2
call fcn.0043706f
test al, al
mov eax, SysReAllocStringLen
je 0x4389b7
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push edi
push 0x47a080
push eax
mov dword [ebp - 0x14], edi
call esi
cmp eax, edi
jne 0x438c3a
lea ecx, [ebp - 0x20]
call fcn.004090c6
mov ecx, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 0x20], ecx
jne 0x438c3a
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0xf003f
push edi
push 0x47a060
push ecx
mov dword [ebp - 0x14], edi
call esi
cmp eax, edi
jne 0x438c1c
lea ecx, [ebp - 0x1c]
call fcn.004090c6
mov ecx, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 0x1c], ecx
jne 0x438c1c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
push 0x47a058
push ecx
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x438a54
mov dword [ebp - 0x14], edi
push 1
pop eax
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
jb 0x438c0f
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, 0x104
lea eax, [ebp - 0x2a]
mov edi, 0x467570
push 0
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x467578
mov dword [ebp - 0x3c], edi
call fcn.00401aa0
lea eax, [ebp - 0x29]
push 0
push eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
mov dword [ebp - 0x84], 0x467578
mov dword [ebp - 0x64], edi
call fcn.00401aa0
push dword [ebp - 0x18]
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 3
mov dword [ebp - 0x34], esi
push 0x47a050
push eax
mov dword [ebp - 0x28], esi
call ebx
add esp, 0xc
lea eax, [ebp - 0xbc]
push dword [ebp - 0x18]
push 0x47a044
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x9c]
lea ecx, [ebp - 0x84]
push esi
push eax
call fcn.0043894e
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 4
call fcn.00405854
lea ecx, [ebp - 0x28]
mov dword [edi + 8], eax
push ecx
push eax
lea eax, [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0xdc]
push 0
push eax
push dword [ebp - 0x1c]
call edi
test eax, eax
jne 0x438b87
lea eax, [ebp - 0x90]
push esi
push eax
lea ecx, [ebp - 0x5c]
call fcn.0043894e
mov dword [ebp - 0x24], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 5
call fcn.00405854
mov ecx, dword [ebp - 0x24]
and dword [ebp - 0x24], 0
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x34]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xbc]
push 0
push eax
push dword [ebp - 0x1c]
call edi
test eax, eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 4
sete byte [ebp - 0xd]
call fcn.00438c5b
cmp byte [ebp - 0xd], 0
je 0x438b87
mov byte [ebp - 0xd], 1
jmp 0x438b8b
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.00438c5b
cmp byte [ebp - 0xd], 0
je 0x438be0
cmp dword [ebp - 0x78], 0
lea ecx, [ebp - 0x5c]
jne 0x438bb7
call fcn.00405854
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x438be0
call fcn.00405854
push 1
lea ecx, [ebp - 0x84]
mov edi, eax
call fcn.00405854
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x438be0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401279
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jbe 0x438a6e
mov ebx, dword [ebp - 0x30]
xor edi, edi
push 0x47a060
lea ecx, [ebp - 0x20]
call fcn.0042ed14
cmp dword [ebp - 0x1c], edi
je 0x438c2a
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jle 0x438c3a
and ebx, 0xffff
or ebx, 0x80070000
cmp dword [ebp - 0x20], edi
mov esi, ebx
je 0x438c4a
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