Function at 0x4302d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov eax, dword [edi + 0x90]
mov dword [ebp - 4], 0
test eax, eax
jne 0x430310
lea eax, [edi + 0x94]
lea ecx, [ebp - 0x458]
lea edx, [ebp - 0x658]
push ecx
push edx
lea ecx, [ebp - 0x258]
lea edx, [ebp - 0x30]
push ecx
push edx
push eax
call fcn.0057f69a
mov eax, dword [edi + 0x17c]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
push 0
push 0
push 0xf0
push eax
call esi
mov ecx, dword [0x6754cc]
test eax, eax
setne bl
mov dword [ebp - 0x28], ecx
mov edx, dword [edi + 0x1b8]
push 0
push 0
push 0x147
push edx
mov byte [ebp - 4], 1
call esi
lea ecx, [ebp - 0x28]
push ecx
push eax
lea ecx, [edi + 0x19c]
call fcn.005a298e
xor esi, esi
mov eax, dword [edi + 0x5c]
cmp esi, dword [eax + 8]
jge 0x430563
mov edx, dword [eax + 4]
lea edi, [esi + esi*2]
shl edi, 3
mov dword [ebp - 0x24], edi
mov eax, dword [edx + edi + 4]
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.0057ffb4
add esp, 8
test eax, eax
jne 0x43055a
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x5c]
mov eax, dword [edx + 4]
mov cl, byte [eax + edi + 0x14]
lea eax, [eax + edi + 0x14]
cmp cl, bl
jne 0x4303ce
test bl, bl
je 0x4306f5
test bl, bl
mov byte [eax], bl
je 0x430532
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], esi
mov word [ebp - 0x18], si
mov ecx, 0x64f028
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4304fe
lea edx, [ebp - 0x30]
test edx, edx
je 0x4304fe
lea eax, [ebp - 0x258]
test eax, eax
je 0x4304fe
push ecx
lea ecx, [ebp - 0x48]
call fcn.00401f20
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00403ba0
lea edx, [ebp - 0x258]
lea ecx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 4
call fcn.00403ba0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00401070
mov ebx, dword [ebp - 0x3c]
cmp ebx, esi
jne 0x430452
lea ebx, [ebp - 0x38]
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x54]
call fcn.00401fa0
push eax
call fcn.0057e90a
mov edx, eax
push ebx
mov dword [ebp - 0x58], edx
call fcn.0057e90a
mov ecx, dword [ebp - 0x58]
add esi, ecx
lea esi, [eax + esi + 3]
lea ebx, [esi + esi]
push ebx
call fcn.005970d9
mov edx, eax
add esp, 0xc
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x4304d7
mov ecx, ebx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x54]
call fcn.00401fa0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401fa0
push eax
lea ecx, [ebp - 0x48]
call fcn.00401fa0
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.0057e89a
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0057e90a
mov edi, dword [ebp - 0x24]
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00401070
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401070
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
jne 0x430505
lea ebx, [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x5c]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + edi + 0x10]
lea esi, [ecx + edi + 0x10]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea ecx, [ebp - 0x1c]
mov dword [esi], eax
mov byte [ebp - 4], 1
call fcn.00401070
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x5c]
call fcn.004843c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x20]
inc esi
jmp 0x430380
xor al, al
test al, al
jne 0x4306f5
mov eax, dword [0x67a040]
xor ecx, ecx
test bl, bl
lea edx, [ebp - 0x24]
push 4
setne cl
push edx
xor esi, esi
push 4
push esi
push str.RememberLastSave
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test bl, bl
je 0x4306f5
xor eax, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], si
mov ecx, 0x64f028
mov byte [ebp - 4], 6
test ecx, ecx
je 0x4306bb
lea edx, [ebp - 0x30]
test edx, edx
je 0x4306bb
lea ecx, [ebp - 0x258]
test ecx, ecx
je 0x4306bb
push 0x64f028
lea ecx, [ebp - 0x3c]
call fcn.00401f20
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 7
call fcn.00403ba0
lea eax, [ebp - 0x258]
mov bl, 8
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00403ba0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
call fcn.00401070
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
call fcn.00401fa0
push eax
call fcn.0057e90a
add esp, 4
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.00401fa0
push eax
call fcn.0057e90a
add edi, esi
lea esi, [eax + edi + 3]
lea edi, [esi + esi]
push edi
call fcn.005970d9
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x1c], edx
je 0x430695
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x48]
call fcn.00401fa0
push eax
lea ecx, [ebp - 0x54]
call fcn.00401fa0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401fa0
push eax
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.0057e89a
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0057e90a
add esp, 0x18
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00401070
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x430712
lea eax, [ebp - 0x18]
lea esi, [ebp - 0x18]
push eax
call fcn.0057e90a
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [0x67a040]
push edx
push esi
push 0
push 0
push str.LocalPathW
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, eax
jmp 0x4306c5