Function at 0x403fae
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040422f
add esp, 8
test eax, eax
je 0x403fda
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x40bf44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x403fef
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x180
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x40bf44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404038
push 0x10
push 0x40b204
push str.Problem_saving_the_Spec._info_to_the_regisrty.
mov ecx, dword [0x40bef0]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40422b
cmp dword [0x40bfec], 0
jne 0x4040d0
push 0x40b244
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push 0x40b250
push 1
push 0
push 0
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x44]
push eax
call fcn.00404580
add esp, 4
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea edx, [ebp - 0x44]
push edx
push 1
push 0
push str.FieldDelimiter
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x44]
push ecx
call fcn.0040466d
add esp, 4
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
lea eax, [ebp - 0x44]
push eax
push 1
push 0
push str.TextQualifier
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4041ac
cmp dword [0x40bfec], 1
jne 0x404188
push 0x40b27c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push str.FixedWidth
push 1
push 0
push 0
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push 0x40c010
push 4
push 0
push str.NumberOfFields
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], 0
jmp 0x40412d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [0x40c010]
jge 0x404186
push 0
mov eax, dword [ebp - 4]
push eax
push 0x150
mov ecx, dword [0x40bf10]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 4]
add edx, 1
push edx
push str.Field_d
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 4
lea ecx, [ebp - 0x4c]
push ecx
push 4
push 0
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x404124
jmp 0x4041ac
push 0x40b2ac
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push str.PlainText
push 1
push 0
push 0
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.0040473e
push 4
push 0x40bfe0
push 4
push 0
push str.CodePage
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push 0x40bfe4
push 4
push 0
push str.TextLayout
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 8]
push edx
push 1
push 0
push 0
mov eax, dword [0x40befc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x404226
push 0x40
push str.Convert_Error
push str.Error_writing_to_registry.__Last_spec_name_could_not_be_saved
mov ecx, dword [0x40bef0]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
mov esp, ebp
pop ebp
ret