Function at 0x403410
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x40d078]
xor eax, esp
test ebx, ebx
mov dword [esp + 0x110], eax
jne 0x40343f
xor eax, eax
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004092bc
add esp, 0x114
ret
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [0x40a004]
test eax, eax
jne 0x40349b
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x24], 0x104
call dword [section..rdata]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [0x40a010]
test esi, esi
je 0x4034f5
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [0x40a074]
cmp eax, 3
jb 0x40365b
lea edi, [esp + 0x14]
mov byte [esp + 0x16], 0
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4034c0
mov ecx, dword [str.Program_Files]
mov edx, dword [0x40ad5c]
mov eax, dword [0x40ad60]
mov dword [edi], ecx
mov cx, word [0x40ad64]
mov dword [edi + 4], edx
mov dl, byte [0x40ad66]
mov dword [edi + 8], eax
mov word [edi + 0xc], cx
mov byte [edi + 0xe], dl
lea eax, [esp + 0x14]
push eax
call dword [0x40a078]
cmp eax, 0xffffffff
je 0x40365b
test al, 0x10
je 0x40365b
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403518
sub eax, edx
mov ecx, eax
mov al, byte [esp + ecx + 0x13]
cmp al, 0x5c
je 0x40352f
cmp al, 0x2f
jne 0x403535
mov byte [esp + ecx + 0x13], 0
dec ecx
mov eax, ebx
lea esi, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403540
sub eax, esi
lea ecx, [ecx + eax*2 + 0x16]
cmp ecx, 0x104
jae 0x40365b
lea edi, [esp + 0x14]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403560
mov edx, dword [str.RisingRSDData_]
mov eax, dword [0x40ad48]
mov ecx, dword [0x40ad4c]
mov dword [edi], edx
mov edx, dword [0x40ad50]
mov dword [edi + 4], eax
mov ax, word [0x40ad54]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov word [edi + 0x10], ax
mov eax, ebx
mov edx, ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403598
lea edi, [esp + 0x14]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4035a6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4035c3
mov cx, word [0x40a65c]
mov eax, ebx
mov word [edi], cx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4035e0
lea edi, [esp + 0x14]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4035f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403610
mov edx, dword [str..ini]
mov al, byte [0x40ad40]
lea ecx, [esp + 0x14]
push ecx
push 0
push str.WILLREBOOT
mov dword [edi], edx
push str.SETUP
mov byte [edi + 4], al
call dword [0x40a07c]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004092bc
add esp, 0x114
ret
mov ecx, dword [esp + 0x118]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004092bc
add esp, 0x114
ret