Function at 0x40e8eb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 4
push ebx
push ebx
push ebx
push str.Software
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40eccc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x4b3b4c
push 0x5c
push edi
call fcn.0048ca3c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40e95e
cmp byte [edi], al
je 0x40e9cb
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e953
sub ecx, edx
jmp 0x40e962
mov ecx, esi
sub ecx, edi
push ecx
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.0041d160
add esp, 0xc
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push 0x20006
push edi
push edi
push edi
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e9d8
push dword [ebp - 0x210]
call ebx
mov ecx, dword [ebp - 0x218]
lea eax, [esi + 1]
test esi, esi
mov dword [ebp - 0x210], ecx
mov edi, esi
cmovne edi, eax
test edi, edi
jne 0x40e93a
jmp 0x40e9d1
mov ecx, dword [ebp - 0x210]
xor edi, edi
jmp 0x40ea89
test esi, esi
je 0x40e9e4
sub esi, 0x4b3b4c
jmp 0x40e9e7
push 9
pop esi
push esi
lea eax, [ebp - 0x208]
push 0x4b3b4c
push eax
call fcn.0041d160
add esp, 0xc
call fcn.00435f20
test eax, eax
je 0x40ea79
call fcn.00435f20
cmp dword [eax], edi
je 0x40ea79
mov eax, dword [0x4edee0]
test eax, eax
je 0x40ea1f
mov edi, dword [eax + 0x190]
jmp 0x40ea25
mov edi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x40ea37
call fcn.00435f20
mov esi, dword [eax]
jmp 0x40ea39
xor esi, esi
push str.Error_creating_Key:_HKCUSoftware_s:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420470
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
push str.Error_creating_Key:_HKCUSoftware_s:__s
push dword [0x4edee0]
push edi
xor edi, edi
push edi
push 0x1319
push str.D:MyProjectsProPilotTestMain.c
push 0x103
call esi
add esp, 0x28
push dword [ebp - 0x210]
call ebx
mov ecx, edi
mov dword [ebp - 0x210], ecx
test ecx, ecx
je 0x40ed3e
mov eax, dword [0x5514ec]
push 4
add eax, 0x5e0
push eax
push 4
push edi
push str.Flags
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [0x55145c], 0
je 0x40ecc2
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push str.UidValues
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ecc2
mov eax, dword [0x55145c]
cmp dword [eax], edi
jle 0x40ecba
mov ecx, edi
mov dword [ebp - 0x21c], edi
cmp ecx, 0x9c44
jge 0x40ecba
mov esi, dword [ecx + eax + 4]
test esi, esi
je 0x40eca9
cmp dword [esi + 4], 0
mov eax, edi
mov ecx, edi
jle 0x40ec93
test eax, eax
jne 0x40eb43
mov eax, dword [esi + 8]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 4]
and eax, 1
inc ecx
cmp ecx, dword [esi + 4]
jl 0x40eb25
test eax, eax
je 0x40ec93
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [esi]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ec93
mov ebx, edi
cmp dword [esi + 4], edi
jle 0x40ec85
mov eax, dword [esi + 8]
mov edi, dword [eax + ebx*4]
test byte [edi + 4], 1
je 0x40ec79
mov eax, dword [edi + 8]
sub eax, 0
je 0x40ec4e
sub eax, 1
je 0x40ec15
sub eax, 1
jne 0x40ec79
mov eax, str.dbl_d
push eax
push dword [edi]
push 0x133f
push str.D:MyProjectsProPilotTestMain.c
push eax
lea eax, [ebp - 0x70]
push 0x64
push eax
call fcn.004236c0
movsd xmm0, qword [edi + 0x10]
lea eax, [ebp - 0xd8]
add esp, 0x14
movsd qword [esp], xmm0
push 9
push eax
call fcn.00444ce0
lea ecx, [ebp - 0xd8]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ebea
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0xd8]
push eax
push 1
xor edi, edi
lea eax, [ebp - 0x70]
push edi
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40ec7b
mov eax, str.str_d
push eax
push dword [edi]
push 0x1337
push str.D:MyProjectsProPilotTestMain.c
push eax
lea eax, [ebp - 0x70]
push 0x64
push eax
call fcn.004236c0
mov ecx, dword [edi + 0x10]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ec3c
sub ecx, edx
lea eax, [ecx + 1]
push eax
push dword [edi + 0x10]
jmp 0x40ebfe
mov eax, str.int_d
push eax
push dword [edi]
push 0x133b
push str.D:MyProjectsProPilotTestMain.c
push eax
lea eax, [ebp - 0x70]
push 0x64
push eax
call fcn.004236c0
add esp, 0x1c
lea eax, [edi + 0x10]
push 4
push eax
push 4
jmp 0x40ec00
xor edi, edi
inc ebx
cmp ebx, dword [esi + 4]
jl 0x40eb7b
push dword [ebp - 0x214]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x40eb17
mov eax, dword [0x55145c]
mov ecx, dword [ebp - 0x21c]
add ecx, 4
mov dword [ebp - 0x21c], ecx
cmp dword [eax], edi
jg 0x40eaff
push dword [ebp - 0x218]
call ebx
push dword [ebp - 0x210]
call ebx
jmp 0x40ed3e
call fcn.00435f20
test eax, eax
je 0x40ed3e
call fcn.00435f20
cmp dword [eax], ebx
je 0x40ed3e
mov eax, dword [0x4edee0]
test eax, eax
je 0x40ecef
mov esi, dword [eax + 0x190]
jmp 0x40ecf5
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x40ed07
call fcn.00435f20
mov edi, dword [eax]
jmp 0x40ed09
mov edi, ebx
mov ebx, str.Error_creating_Key:_HKCUSoftware:__s
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420470
pop ecx
pop ecx
push eax
push ebx
push dword [0x4edee0]
push esi
push 0
push 0x1363
push str.D:MyProjectsProPilotTestMain.c
push 0x103
call edi
add esp, 0x24
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0047f41c
leave
ret