Function at 0x406b00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fa36
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5b7f60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0xc0], eax
jb 0x406b41
mov eax, dword [eax]
push eax
push str.Setting_up_custom_database_parameter:__s
push 0x200
call fcn.004060b0
add esp, 0xc
push 1
lea eax, [ebp - 0xad]
push eax
push str.SOFTWAREFLEXnetConnect_
lea ecx, [ebp - 0x44]
call fcn.004136e0
push 1
lea ecx, [ebp - 0xad]
push ecx
xor ebx, ebx
push 0x58e008
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], ebx
call fcn.004136e0
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.00408b50
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], bl
call fcn.004026f0
push 1
lea ecx, [ebp - 0xad]
push ecx
push str.Database
lea ecx, [ebp - 0x78]
call fcn.004136e0
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], ebx
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
lea esi, [esi + esi + 2]
cmp esi, dword [ebp - 0x20]
jae 0x406be9
cmp eax, ebx
jne 0x406c08
push eax
call fcn.0043097b
shr esi, 6
inc esi
shl esi, 6
add esp, 4
push esi
mov dword [ebp - 0x20], esi
call fcn.00430986
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x20]
push 3
push edx
push eax
lea ecx, [ebp - 0x44]
call fcn.00401bb0
mov eax, dword [ebp - 0x24]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push eax
push SysReAllocString
lea ecx, [ebp - 0xbc]
call fcn.0040c850
test eax, eax
jne 0x406d09
mov esi, dword [edi + 0x14]
lea esi, [esi + esi + 2]
cmp esi, dword [edi + 0x24]
jae 0x406c4d
cmp dword [edi + 0x20], ebx
jne 0x406c6f
mov ecx, dword [edi + 0x20]
push ecx
call fcn.0043097b
shr esi, 6
inc esi
shl esi, 6
add esp, 4
push esi
mov dword [edi + 0x24], esi
call fcn.00430986
add esp, 4
mov dword [edi + 0x20], eax
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
push 3
push edx
push eax
mov ecx, edi
call fcn.00401bb0
mov esi, dword [ebp - 0x64]
mov edi, dword [edi + 0x20]
mov eax, dword [ebp - 0x58]
lea esi, [esi + esi + 2]
cmp esi, dword [ebp - 0x54]
jae 0x406c96
cmp eax, ebx
jne 0x406cb5
push eax
call fcn.0043097b
shr esi, 6
inc esi
shl esi, 6
add esp, 4
push esi
mov dword [ebp - 0x54], esi
call fcn.00430986
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x54]
push 3
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.00401bb0
mov esi, dword [ebp - 0x58]
cmp edi, ebx
je 0x406ce6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0xbc]
inc eax
push eax
push edi
push 1
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0xc0]
cmp dword [eax + 0x14], 8
jb 0x406cf4
mov eax, dword [eax]
push eax
push str.Successfully_set_custom_database_parameter__s
push 0x200
call fcn.004060b0
add esp, 0xc
jmp 0x406d18
push str.Failed_to_set_database_parameter
push 8
call fcn.004060b0
add esp, 8
mov eax, dword [ebp - 0xbc]
cmp eax, ebx
je 0x406d29
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x78]
call fcn.004026f0
lea ecx, [ebp - 0x44]
call fcn.004026f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005319a6
mov esp, ebp
pop ebp
ret