Function at 0x402513
Capabilities:
Set registry value

Disassembly:
mov eax, 0x40cede
call fcn.0040681c
sub esp, 0x33c
push ebx
push esi
push edi
call fcn.00401ea5
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 [0x412bac], ebx
mov dword [ebp - 0x28], esi
jle 0x402780
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 [0x411044], 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 0x4025ee
cmp dword [ebp + 0xc], ebx
je 0x4025ee
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00401bc3
test eax, eax
jne 0x4025e5
push str.Empty_Field
lea ecx, [ebp - 0x48]
call fcn.0040111c
push eax
mov ecx, 0x411040
call fcn.00402047
call fcn.00401baf
cmp dword [ebp - 0x10], ebx
jne 0x40281b
lea eax, [ebp - 0x108]
push eax
call fcn.00406330
cmp eax, 0x80
pop ecx
jbe 0x402637
cmp dword [ebp + 0xc], ebx
je 0x402637
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x264]
call fcn.00401bc3
test eax, eax
jne 0x402637
push str.Field_Too_Long__max_128_
lea ecx, [ebp - 0x38]
call fcn.0040111c
push eax
mov ecx, 0x411040
call fcn.00402047
call fcn.00401baf
cmp dword [ebp - 0x10], ebx
jne 0x40281b
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x194]
mov byte [ebp - 0x88], bl
call fcn.00401144
cmp dword [ebp - 0x10], ebx
jne 0x40281b
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00401bc3
test eax, eax
jne 0x40268c
mov ecx, dword [esi*4 + 0x412bb0]
mov eax, dword [ecx]
lea edx, [ebp - 0x194]
push edx
call dword [eax + 0x14]
call fcn.00401baf
cmp dword [ebp - 0x10], ebx
jne 0x40281b
lea ecx, [ebp - 0x194]
call fcn.004011d5
push eax
push dword [ebp - 0x14]
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea edi, [esi*4 + 0x412bb0]
mov ecx, dword [edi]
lea eax, [ebp - 0x194]
push eax
add ecx, 4
call fcn.00401176
cmp dword [ebp + 0xc], ebx
je 0x40276d
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 0x40276d
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 0x40270f
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.004060a0
lea eax, [ebp - 0x108]
push eax
mov byte [ebp + esi - 0x218], bl
call fcn.00406330
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 [0x412bac]
mov dword [ebp - 0x28], esi
jl 0x40256d
push dword [ebp + 8]
lea ecx, [ebp - 0x84]
call fcn.004024ce
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], ebx
call fcn.00402373
pop ecx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x348]
call fcn.00401bc3
test eax, eax
jne 0x4027c0
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
call fcn.00401baf
cmp esi, ebx
je 0x4027cc
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp dword [ebp - 0x1c], ebx
jne 0x4027d6
cmp dword [ebp - 0x18], ebx
je 0x4027f3
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.004018da
mov ecx, dword [ebp - 0x2c]
pop edi
pop esi
cmp ecx, ebx
pop ebx
je 0x40280f
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 0x4027ff