Function at 0x4318fb
Capabilities:
Move file
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x478095
call fcn.00467ed8
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.00405983
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 0x431c2a
mov edi, 0x1fff
push edi
call fcn.0046808f
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.00420055
push 0x49745c
push eax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 3
push eax
call fcn.004076d0
push 0xc
push eax
mov byte [ebp - 4], 4
call fcn.00418679
add esp, 0x20
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 3
call fcn.00407d51
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 2
call fcn.00407d51
cmp byte [ebp - 0x11], bl
je 0x431a2f
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push 0x497450
push edi
push dword [ebp - 0x1c]
push 0x497448
call esi
cmp eax, 0x1ffd
jne 0x431a2f
add edi, edi
push edi
call fcn.0046808f
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.004263b8
cmp byte [ebp - 0x28], bl
je 0x431a18
push dword [ebp - 0x24]
call fcn.0045ff78
pop ecx
push 0x497450
push edi
push dword [ebp - 0x1c]
push 0x497448
call esi
lea ecx, [edi - 2]
cmp ecx, eax
je 0x4319ea
lea eax, [ebp - 0x14]
push 1
push eax
lea ecx, [ebp - 0x80]
call fcn.0040590e
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 4], 6
call fcn.00426db3
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.00406741
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 6
call fcn.00407d51
jmp 0x431aa7
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.00405ab2
cmp dword [ebp - 0x4c], ebx
mov byte [ebp - 4], 9
je 0x431bf7
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.00405c5e
mov edi, eax
lea eax, [ebp - 0x80]
push 0x497444
push eax
lea eax, [ebp - 0x104]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040a582
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.004130a4
neg eax
sbb al, al
lea ecx, [ebp - 0x104]
inc al
mov byte [ebp - 4], 0xb
mov byte [ebp - 0x11], al
call fcn.00407d51
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 9
call fcn.00407d51
cmp byte [ebp - 0x11], bl
je 0x431bac
mov eax, dword [ebp - 0x74]
push dword [0x47e51c]
inc eax
lea ecx, [ebp - 0x58]
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.00405c5e
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.00406741
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 9
call fcn.00407d51
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.00405ab2
push dword [0x47e51c]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0xa
push ebx
push dword [ebp - 0x24]
call fcn.00406741
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 9
call fcn.00407d51
cmp dword [ebp - 0x4c], ebx
jne 0x431ae2
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call fcn.00407d51
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00407d51
cmp byte [ebp - 0x20], bl
mov byte [ebp - 4], 1
je 0x431df0
push dword [ebp - 0x1c]
call fcn.0045ff78
pop ecx
jmp 0x431df0
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x12]
push esi
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xe
call fcn.0040562c
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xf
push eax
push 0x497410
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, 0x4973f4
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.00405844
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 0x10
call fcn.0040654b
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.0040588a
lea ecx, [ebp - 0xa8]
call fcn.0040654b
mov edi, eax
cmp byte [edi], bl
je 0x431dba
mov esi, 0x4973ec
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.00405ab2
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.00405ab2
push esi
mov byte [ebp - 4], 0x12
call fcn.00468008
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x7c]
call fcn.004210fb
push eax
push ebx
lea ecx, [ebp - 0x7c]
call fcn.0040681f
push esi
call fcn.00468008
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.004210fb
push eax
push ebx
lea ecx, [ebp - 0x54]
call fcn.0040681f
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0xc]
call fcn.0041d77b
pop ecx
test al, al
pop ecx
je 0x431d8a
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.00406741
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x11
call fcn.00407d51
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xf
call fcn.00407d51
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 0x431cd3
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0x2c]
push dword [ebp + 0xc]
lea ecx, [eax + 4]
call fcn.00460f44
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xe
call fcn.00407d51
cmp dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
je 0x431df0
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.004130a4
test eax, eax
je 0x431e5e
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 0x431e4d
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 0x431e5e
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.00405983
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], bl
call fcn.00407d51
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8