Function at 0x40f535
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [0x42f164]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xf003f
call fcn.0040ef62
mov dword [ebp - 0x14], eax
xor eax, eax
cmp dword [ebp - 0x14], eax
pop ecx
jne 0x40f575
push dword [0x42f164]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40f71a
lea ecx, [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push eax
push eax
mov ebx, str.size10
push eax
push ebx
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x40f5ae
push dword [0x42f164]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__ld_querying_Softwrap_registry_key._nSoftwrap_cannot_continue._If_the_problem_persists__please_ncontact_Softwrap_Support__details_on_http:__www.softwrap.com_
jmp 0x40f713
push dword [ebp - 0x10]
call fcn.004179b4
pop ecx
mov edi, eax
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
push eax
push ebx
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
call esi
test eax, eax
je 0x40f5fc
push dword [0x42f164]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call fcn.00417985
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__ld_accessing_a_Softwrap_registry_key._nSoftwrap_cannot_continue._If_the_problem_persists__please_ncontact_Softwrap_Support__details_on_http:__www.softwrap.com_
jmp 0x40f713
push dword [ebp - 0x10]
call fcn.004179b4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
pop ecx
mov dword [ebp - 4], edi
lea eax, [edi + eax - 0x230]
cmp edi, eax
ja 0x40f6a2
push 2
lea eax, [ebp - 0x248]
push dword [ebp - 4]
push eax
call fcn.0040ced0
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
jbe 0x40f68c
sub esp, 0x22c
mov ecx, 0x8b
lea esi, [ebp - 0x248]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0040eddb
add esp, 0x22c
test al, al
je 0x40f689
cmp dword [ebp - 0x20], 0xface0ff1
jne 0x40f689
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push dword [ebp - 4]
add eax, esi
push eax
call fcn.00417bc0
add dword [ebp - 4], 0x22f
add esp, 0xc
add esi, dword [ebp - 0x18]
mov dword [ebp - 0xc], esi
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
inc dword [ebp - 4]
lea eax, [edi + eax - 0x230]
cmp dword [ebp - 4], eax
jbe 0x40f61d
push edi
call fcn.00417985
pop ecx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x40f6da
push dword [0x42f164]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 8]
call fcn.00417985
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__ld_purging_Softwrap_registry_key_nSoftwrap_cannot_continue._If_the_problem_persists__please_ncontact_Softwrap_Support__details_on_http:__www.softwrap.com_
jmp 0x40f713
push dword [ebp - 0xc]
push dword [ebp - 8]
push 3
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40f71e
push dword [0x42f164]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 8]
call fcn.00417985
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__ld_setting_Softwrap_registry_key_nSoftwrap_cannot_continue._If_the_problem_persists__please_ncontact_Softwrap_Support__details_on_http:__www.softwrap.com_
call fcn.00410576
pop ecx
pop ecx
xor eax, eax
jmp 0x40f735
push dword [ebp - 8]
call fcn.00417985
cmp dword [ebp - 0xc], 0
pop ecx
je 0x40f732
mov eax, dword [ebp - 0xc]
jmp 0x40f735
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret