Function at 0x403f60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x468060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x14]
mov eax, edi
cmp edi, 4
jb 0x403f85
mov eax, 4
mov ecx, dword [esi + 0x18]
mov dword [ebp - 8], ecx
lea ebx, [esi + 4]
cmp ecx, 0x10
jb 0x403f97
mov edx, dword [ebx]
jmp 0x403f99
mov edx, ebx
mov ecx, str.lock
call fcn.004055a0
test eax, eax
jne 0x403fdc
cmp edi, 4
jb 0x403fdc
cmp edi, 4
setne al
test eax, eax
jne 0x403fdc
cmp dword [ebp - 8], 0x10
jb 0x403fbe
mov ebx, dword [ebx]
push ebx
call fcn.0040bce3
add esp, 4
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0x45fd18
jmp 0x404151
mov edi, dword [esi + 0x14]
mov eax, edi
cmp edi, 4
jb 0x403feb
mov eax, 4
cmp dword [ebp - 8], 0x10
jb 0x403ff5
mov edx, dword [ebx]
jmp 0x403ff7
mov edx, ebx
mov ecx, str.nav1
call fcn.004055a0
test eax, eax
jne 0x404075
cmp edi, 4
jb 0x404075
cmp edi, 4
setne al
test eax, eax
jne 0x404075
cmp dword [ebp - 8], 0x10
jb 0x40401c
mov ebx, dword [ebx]
test ebx, ebx
jne 0x404024
xor eax, eax
jmp 0x40404f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40403a
xor eax, eax
jmp 0x40404f
lea eax, [edi + edi]
call fcn.004154f0
mov esi, esp
push 3
mov edx, edi
mov eax, ebx
call fcn.00403a10
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404054
sub ecx, esi
sar ecx, 1
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0x45fdb8
jmp 0x404151
mov ecx, str.nav2
mov edi, esi
call fcn.00405620
test eax, eax
jne 0x4040e3
cmp dword [esi + 0x18], 0x10
jb 0x40408d
mov ebx, dword [ebx]
test ebx, ebx
jne 0x404095
xor eax, eax
jmp 0x4040c0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x4040ab
xor eax, eax
jmp 0x4040c0
lea eax, [edi + edi]
call fcn.004154f0
mov esi, esp
push 3
mov edx, edi
mov eax, ebx
call fcn.00403a10
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4040c5
sub ecx, esi
sar ecx, 1
lea edx, [ecx + ecx + 2]
push edx
push eax
push 1
push 0x45fdc4
jmp 0x404151
mov ecx, str.nav3
call fcn.00405620
test eax, eax
jne 0x404175
cmp dword [esi + 0x18], 0x10
jb 0x4040fd
mov ebx, dword [ebx]
test ebx, ebx
jne 0x404105
xor eax, eax
jmp 0x404130
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40411b
xor eax, eax
jmp 0x404130
lea eax, [edi + edi]
call fcn.004154f0
mov esi, esp
push 3
mov edx, edi
mov eax, ebx
call fcn.00403a10
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404135
sub ecx, esi
sar ecx, 1
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0x45fdd0
push str.SOFTWARE_safepage
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b009
mov esp, ebp
pop ebp
ret
mov ecx, str.nav4
call fcn.00405620
test eax, eax
jne 0x4041d7
cmp dword [esi + 0x18], 0x10
jb 0x40418b
mov ebx, dword [ebx]
test ebx, ebx
jne 0x404193
xor ecx, ecx
jmp 0x4041c0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x4041a9
xor ecx, ecx
jmp 0x4041c0
lea eax, [edi + edi]
call fcn.004154f0
mov esi, esp
push 3
mov edx, edi
mov eax, ebx
call fcn.00403a10
mov ecx, eax
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4041c5
mov edx, 0x45fddc
jmp 0x404237
mov ecx, str.nav5
call fcn.00405620
test eax, eax
jne 0x404244
cmp dword [esi + 0x18], 0x10
jb 0x4041ed
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4041f5
xor ecx, ecx
jmp 0x404222
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40420b
xor ecx, ecx
jmp 0x404222
lea eax, [edi + edi]
call fcn.004154f0
mov esi, esp
push 3
mov edx, edi
mov eax, ebx
call fcn.00403a10
mov ecx, eax
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x404227
mov edx, 0x45fde8
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
call fcn.00402f80
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b009
mov esp, ebp
pop ebp
ret