Function at 0x40513c
Capabilities:
Set registry value

Disassembly:
mov eax, 0x40fee0
call fcn.0040980c
sub esp, 0x33c
push ebx
push esi
push edi
call fcn.00403f2b
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_GetFocus]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push 0xb0
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
xor esi, esi
cmp dword [0x415bac], ebx
mov dword [ebp - 0x28], esi
jle 0x4053a9
mov dword [ebp - 0x14], 0x3000
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
neg eax
sbb eax, eax
and eax, edi
push 0x82
mov dword [0x414044], eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x14]
push edi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
push 0x81
push ebx
lea ecx, [ebp - 0x194]
call fcn.00401055
cmp byte [ebp - 0x108], bl
mov dword [ebp - 0x10], ebx
jne 0x405217
cmp dword [ebp + 0xc], ebx
je 0x405217
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00403c49
test eax, eax
jne 0x40520e
push str.Empty_Field
lea ecx, [ebp - 0x48]
call fcn.00401151
push eax
mov ecx, 0x414040
call fcn.004046f3
call fcn.00403c35
cmp dword [ebp - 0x10], ebx
jne 0x405445
lea eax, [ebp - 0x108]
push eax
call fcn.00409320
cmp eax, 0x80
pop ecx
jbe 0x405260
cmp dword [ebp + 0xc], ebx
je 0x405260
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x264]
call fcn.00403c49
test eax, eax
jne 0x405260
push str.Field_Too_Long__max_128_
lea ecx, [ebp - 0x38]
call fcn.00401151
push eax
mov ecx, 0x414040
call fcn.004046f3
call fcn.00403c35
cmp dword [ebp - 0x10], ebx
jne 0x405445
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x194]
mov byte [ebp - 0x88], bl
call fcn.00401224
cmp dword [ebp - 0x10], ebx
jne 0x405445
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00403c49
test eax, eax
jne 0x4052b5
mov ecx, dword [esi*4 + 0x415bb0]
mov eax, dword [ecx]
lea edx, [ebp - 0x194]
push edx
call dword [eax + 0x14]
call fcn.00403c35
cmp dword [ebp - 0x10], ebx
jne 0x405445
lea ecx, [ebp - 0x194]
call fcn.00401361
push eax
push dword [ebp - 0x14]
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea edi, [esi*4 + 0x415bb0]
mov ecx, dword [edi]
lea eax, [ebp - 0x194]
push eax
add ecx, 4
call fcn.00401256
cmp dword [ebp + 0xc], ebx
je 0x405396
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.SoftwareBLZPDASOSK100Variables
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405396
mov ecx, dword [edi]
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
push edx
call dword [eax + 4]
mov esi, dword [eax]
and esi, 0xfffffff
mov eax, 0x80
cmp esi, eax
jl 0x405338
mov esi, eax
mov ecx, dword [edi]
mov eax, dword [ecx]
push esi
lea edx, [ebp - 0x50]
push edx
call dword [eax + 4]
mov ecx, eax
call fcn.004010be
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00409090
lea eax, [ebp - 0x108]
push eax
mov byte [ebp + esi - 0x218], bl
call fcn.00409320
add esp, 0x10
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x28]
inc esi
inc dword [ebp - 0x14]
cmp esi, dword [0x415bac]
mov dword [ebp - 0x28], esi
jl 0x405196
push dword [ebp + 8]
lea ecx, [ebp - 0x84]
call fcn.004050f7
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], ebx
call fcn.00404b20
pop ecx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x348]
call fcn.00403c49
test eax, eax
jne 0x4053ea
mov eax, dword [esi]
push 0x25
mov ecx, esi
call dword [eax + 4]
call fcn.00403c35
cmp esi, ebx
je 0x4053f6
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp dword [ebp - 0x1c], ebx
jne 0x405400
cmp dword [ebp - 0x18], ebx
je 0x40541d
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 0xb1
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_SendMessageA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004038f1
mov ecx, dword [ebp - 0x2c]
pop edi
pop esi
cmp ecx, ebx
pop ebx
je 0x405439
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
add esi, 0x3000
push esi
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x405429