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

Disassembly:
mov eax, 0x478295
call fcn.004680bc
sub esp, 0x148
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0xd0], 0x47e4b8
mov dword [ebp - 0xb0], 0x47e4b0
call fcn.0040595a
push 1
pop esi
push 4
push ebx
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x431cd0
mov edi, 0x1fff
push edi
call fcn.0046826f
cmp eax, ebx
mov dword [ebp - 0x1c], eax
setne cl
mov byte [ebp - 0x20], cl
lea eax, [ebp - 0x104]
push ebx
push eax
mov byte [ebp - 4], 2
call fcn.00420140
push str.WININIT.INI
push eax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 3
push eax
call fcn.00407793
push 0xc
push eax
mov byte [ebp - 4], 4
call fcn.0041859e
add esp, 0x20
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 3
call fcn.00407421
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 2
call fcn.00407421
cmp byte [ebp - 0x11], bl
je 0x431ad5
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push 0x4974bc
push edi
push dword [ebp - 0x1c]
push str.rename
call esi
cmp eax, 0x1ffd
jne 0x431ad5
add edi, edi
push edi
call fcn.0046826f
pop ecx
cmp eax, ebx
setne cl
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], cl
push eax
lea ecx, [ebp - 0x20]
call fcn.0042647e
cmp byte [ebp - 0x28], bl
je 0x431abe
push dword [ebp - 0x24]
call fcn.00460118
pop ecx
push 0x4974bc
push edi
push dword [ebp - 0x1c]
push str.rename
call esi
lea ecx, [edi - 2]
cmp ecx, eax
je 0x431a90
lea eax, [ebp - 0x14]
push 1
push eax
lea ecx, [ebp - 0x80]
call fcn.004058e5
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 4], 6
call fcn.00426e79
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 7
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x7c]
call fcn.00406732
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 6
call fcn.00407421
jmp 0x431b4d
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x13]
push 1
push eax
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 5
call fcn.00405a89
cmp dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 9
je 0x431c9d
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0xa4]
neg eax
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x58]
inc eax
push eax
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.00405c35
mov edi, eax
lea eax, [ebp - 0x80]
push 0x4974b0
push eax
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040a3b8
add esp, 0xc
mov ecx, edi
add edi, 4
neg ecx
sbb ecx, ecx
mov byte [ebp - 4], 0xc
and ecx, edi
push ecx
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
and ecx, eax
call fcn.00412fe3
neg eax
sbb al, al
lea ecx, [ebp - 0x104]
inc al
mov byte [ebp - 4], 0xb
mov byte [ebp - 0x11], al
call fcn.00407421
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 9
call fcn.00407421
cmp byte [ebp - 0x11], bl
je 0x431c52
mov eax, dword [ebp - 0x74]
push dword [0x47e51c]
inc eax
lea ecx, [ebp - 0x58]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.00405c35
push dword [0x47e51c]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xd
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0xcc]
call fcn.00406732
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 9
call fcn.00407421
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
lea eax, [ebp - 0x12]
push 1
push eax
push esi
lea ecx, [ebp - 0xa8]
call fcn.00405a89
push dword [0x47e51c]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xa
push ebx
push dword [ebp - 0x24]
call fcn.00406732
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 9
call fcn.00407421
cmp dword [ebp - 0x4c], ebx
jne 0x431b88
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00407421
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00407421
cmp byte [ebp - 0x20], bl
mov byte [ebp - 4], 1
je 0x431e96
push dword [ebp - 0x1c]
call fcn.00460118
pop ecx
jmp 0x431e96
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x12]
push esi
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xe
call fcn.0040561b
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xf
push eax
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
mov esi, str.PendingFileRenameOperations
push ebx
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
call edi
push dword [ebp - 0x24]
lea eax, [ebp - 0xdc]
lea ecx, [ebp - 0xa8]
push eax
call fcn.0040581b
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0x10
call fcn.0040653c
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x24]
push ecx
push eax
push ebx
push ebx
push esi
push dword [ebp - 0x18]
call edi
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 0xf
call fcn.00405861
lea ecx, [ebp - 0xa8]
call fcn.0040653c
mov edi, eax
cmp byte [edi], bl
je 0x431e60
mov esi, 0x497458
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x13]
lea eax, [eax + edi + 1]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x80], 0x47e4b8
mov dword [ebp - 0x60], 0x47e4b0
call fcn.00405a89
lea eax, [ebp - 0x14]
push ebx
push eax
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x58], 0x47e4b8
mov dword [ebp - 0x38], 0x47e4b0
call fcn.00405a89
push esi
mov byte [ebp - 4], 0x12
call fcn.004681ec
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x7c]
call fcn.00421198
push eax
push ebx
lea ecx, [ebp - 0x7c]
call fcn.00406810
push esi
call fcn.004681ec
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.00421198
push eax
push ebx
lea ecx, [ebp - 0x54]
call fcn.00406810
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xc]
call fcn.0041d844
pop ecx
test al, al
pop ecx
je 0x431e30
push dword [0x47e51c]
lea eax, [ebp - 0x58]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x54]
and eax, ecx
push ebx
push eax
lea ecx, [ebp - 0xcc]
call fcn.00406732
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x11
call fcn.00407421
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xf
call fcn.00407421
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + edi + 1], bl
lea edi, [eax + edi + 1]
jne 0x431d79
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0x2c]
push dword [ebp + 0xc]
lea ecx, [eax + 4]
call fcn.004610e4
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xe
call fcn.00407421
cmp dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
je 0x431e96
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0xd0]
neg ecx
sbb ecx, ecx
and ecx, eax
call fcn.00412fe3
test eax, eax
je 0x431f04
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp - 0x2c]
lea edx, [ebp + 0xc]
push edx
push 0x496750
mov eax, dword [eax + 0x11c]
push 0x4811ec
push eax
mov byte [ebp - 4], 0x13
mov ecx, dword [eax]
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x431ef3
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x431f04
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xd0]
push ebx
push eax
mov ecx, esi
mov dword [esi], 0x47e4b8
mov dword [esi + 0x20], 0x47e4b0
call fcn.0040595a
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], bl
call fcn.00407421
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8