Function at 0x40ef1b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4cdbf8]
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 0x40f2fc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x4b3eec
push 0x5c
push edi
call fcn.0048d4ac
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40ef8e
cmp byte [edi], al
je 0x40effb
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40ef83
sub ecx, edx
jmp 0x40ef92
mov ecx, esi
sub ecx, edi
push ecx
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.0041e7d0
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 0x40f008
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 0x40ef6a
jmp 0x40f001
mov ecx, dword [ebp - 0x210]
xor edi, edi
jmp 0x40f0b9
test esi, esi
je 0x40f014
sub esi, 0x4b3eec
jmp 0x40f017
push 9
pop esi
push esi
lea eax, [ebp - 0x208]
push 0x4b3eec
push eax
call fcn.0041e7d0
add esp, 0xc
call fcn.00436990
test eax, eax
je 0x40f0a9
call fcn.00436990
cmp dword [eax], edi
je 0x40f0a9
mov eax, dword [0x4eeee0]
test eax, eax
je 0x40f04f
mov edi, dword [eax + 0x190]
jmp 0x40f055
mov edi, dword [0x4eeee4]
call fcn.00436990
test eax, eax
je 0x40f067
call fcn.00436990
mov esi, dword [eax]
jmp 0x40f069
xor esi, esi
push str.Error_creating_Key:_HKCUSoftware_s:__s
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420fd0
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
push str.Error_creating_Key:_HKCUSoftware_s:__s
push dword [0x4eeee0]
push edi
xor edi, edi
push edi
push 0x1342
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 0x40f36e
mov eax, dword [0x5524ec]
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 [0x55245c], 0
je 0x40f2f2
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 0x40f2f2
mov eax, dword [0x55245c]
cmp dword [eax], edi
jle 0x40f2ea
mov ecx, edi
mov dword [ebp - 0x21c], edi
cmp ecx, 0x9c44
jge 0x40f2ea
mov esi, dword [ecx + eax + 4]
test esi, esi
je 0x40f2d9
cmp dword [esi + 4], 0
mov eax, edi
mov ecx, edi
jle 0x40f2c3
test eax, eax
jne 0x40f173
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 0x40f155
test eax, eax
je 0x40f2c3
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 0x40f2c3
mov ebx, edi
cmp dword [esi + 4], edi
jle 0x40f2b5
mov eax, dword [esi + 8]
mov edi, dword [eax + ebx*4]
test byte [edi + 4], 1
je 0x40f2a9
mov eax, dword [edi + 8]
sub eax, 0
je 0x40f27e
sub eax, 1
je 0x40f245
sub eax, 1
jne 0x40f2a9
mov eax, str.dbl_d
push eax
push dword [edi]
push 0x1368
push str.D:MyProjectsProPilotTestMain.c
push eax
lea eax, [ebp - 0x70]
push 0x64
push eax
call fcn.00424110
movsd xmm0, qword [edi + 0x10]
lea eax, [ebp - 0xd8]
add esp, 0x14
movsd qword [esp], xmm0
push 9
push eax
call fcn.00445720
lea ecx, [ebp - 0xd8]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f21a
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 0x40f2ab
mov eax, str.str_d
push eax
push dword [edi]
push 0x1360
push str.D:MyProjectsProPilotTestMain.c
push eax
lea eax, [ebp - 0x70]
push 0x64
push eax
call fcn.00424110
mov ecx, dword [edi + 0x10]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f26c
sub ecx, edx
lea eax, [ecx + 1]
push eax
push dword [edi + 0x10]
jmp 0x40f22e
mov eax, str.int_d
push eax
push dword [edi]
push 0x1364
push str.D:MyProjectsProPilotTestMain.c
push eax
lea eax, [ebp - 0x70]
push 0x64
push eax
call fcn.00424110
add esp, 0x1c
lea eax, [edi + 0x10]
push 4
push eax
push 4
jmp 0x40f230
xor edi, edi
inc ebx
cmp ebx, dword [esi + 4]
jl 0x40f1ab
push dword [ebp - 0x214]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x40f147
mov eax, dword [0x55245c]
mov ecx, dword [ebp - 0x21c]
add ecx, 4
mov dword [ebp - 0x21c], ecx
cmp dword [eax], edi
jg 0x40f12f
push dword [ebp - 0x218]
call ebx
push dword [ebp - 0x210]
call ebx
jmp 0x40f36e
call fcn.00436990
test eax, eax
je 0x40f36e
call fcn.00436990
cmp dword [eax], ebx
je 0x40f36e
mov eax, dword [0x4eeee0]
test eax, eax
je 0x40f31f
mov esi, dword [eax + 0x190]
jmp 0x40f325
mov esi, dword [0x4eeee4]
call fcn.00436990
test eax, eax
je 0x40f337
call fcn.00436990
mov edi, dword [eax]
jmp 0x40f339
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.00420fd0
pop ecx
pop ecx
push eax
push ebx
push dword [0x4eeee0]
push esi
push 0
push 0x137b
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.0047fe8c
leave
ret