Function at 0x40cd10
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x540245
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x594aa4]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x594aa4]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
push 8
mov esi, ecx
xor eax, eax
mov ebp, 7
xor ebx, ebx
push str.SOFTWARE
lea ecx, [esp + 0x58]
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
call fcn.00408820
push 1
lea ecx, [esp + 0x54]
push ecx
lea edi, [esp + 0x74]
mov ecx, 0x5ab7d0
mov dword [esp + 0x158], ebx
call fcn.004157c0
mov byte [esp + 0x150], 1
cmp byte [esp + 0x90], bl
jne 0x40cdf2
mov esi, 8
mov dword [esp + 0x6c], vtable.Win32Reg::RegistryKey.0
cmp dword [esp + 0x8c], esi
jb 0x40cdc3
mov edx, dword [esp + 0x78]
push edx
call fcn.0044687d
add esp, 4
xor eax, eax
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], ax
cmp dword [esp + 0x68], esi
jb 0x40cdeb
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0044687d
add esp, 4
xor al, al
jmp 0x40d414
push 0xa
push str._nNwmpe
lea ecx, [esp + 0x58]
call fcn.00408820
push 1
lea edx, [esp + 0x54]
push edx
lea edi, [esp + 0x9c]
lea ecx, [esp + 0x74]
call fcn.004157c0
mov byte [esp + 0x150], 2
mov eax, dword [esi + 0x40]
push 2
add eax, 0xfffffffe
push eax
lea ebp, [esi + 0x2c]
push 0x57d9dc
mov ecx, ebp
call fcn.004102d0
inc eax
push eax
push ebx
lea eax, [esp + 0x130]
push eax
mov ecx, ebp
call fcn.00405ce0
mov byte [esp + 0x150], 3
cmp byte [esp + 0xb8], bl
jne 0x40cf19
lea ecx, [esp + 0x50]
push ecx
lea edi, [esp + 0x104]
lea ecx, [esp + 0x70]
call fcn.004159f0
mov esi, eax
push 0xffffffffffffffff
mov byte [esp + 0x154], 4
mov edx, dword [esi + 4]
push ebx
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0xa8]
mov dword [esp + 0xa4], edx
call fcn.00406e30
mov cl, byte [esi + 0x24]
mov byte [esp + 0x150], 3
mov esi, 8
mov byte [esp + 0xb8], cl
mov dword [esp + method.Win32Reg::RegistryKey.virtual_0], vtable.Win32Reg::RegistryKey.0
cmp dword [esp + 0x120], esi
jb 0x40ced7
mov edx, dword [esp + 0x10c]
push edx
call fcn.0044687d
add esp, 4
push str.BasePath
lea ecx, [esp + 0x1c]
call fcn.00405c40
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x1c]
call fcn.00415c10
cmp dword [esp + 0x30], esi
jb 0x40cfe2
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044687d
add esp, 4
jmp 0x40cfe2
push str.BasePath
lea ecx, [esp + 0x1c]
call fcn.00405c40
lea ecx, [esp + 0x18]
lea esi, [esp + 0x100]
lea ebx, [esp + 0x94]
mov byte [esp + 0x150], 5
call fcn.00415c60
mov ebx, 7
mov esi, 8
mov byte [esp + 0x150], bl
cmp dword [esp + 0x30], esi
jb 0x40cf6a
mov edx, dword [esp + 0x1c]
push edx
call fcn.0044687d
add esp, 4
xor eax, eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
cmp dword [esp + 0x114], eax
jne 0x40cfbf
push str.BasePath
lea ecx, [esp + 0x38]
call fcn.00405c40
lea ecx, [esp + 0x94]
push ecx
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x38]
call fcn.00415c10
cmp dword [esp + 0x4c], esi
jb 0x40cfbf
mov edx, dword [esp + 0x38]
push edx
call fcn.0044687d
add esp, 4
mov byte [esp + 0x150], 3
cmp dword [esp + 0x118], esi
jb 0x40cfe0
mov eax, dword [esp + 0x104]
push eax
call fcn.0044687d
add esp, 4
xor ebx, ebx
push 1
push 0x5ab5a0
lea edi, [esp + 0xc4]
lea ecx, [esp + 0x9c]
call fcn.004157c0
mov byte [esp + 0x150], 8
cmp byte [esp + 0xe0], bl
jne 0x40d083
push 0x5ab5a0
lea edi, [esp + 0x104]
lea ecx, [esp + 0x98]
call fcn.004159f0
mov esi, eax
mov byte [esp + 0x150], 9
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push ebx
lea edx, [esi + 8]
mov dword [esp + 0xc8], ecx
push edx
lea ecx, [esp + 0xd0]
call fcn.00406e30
mov al, byte [esi + 0x24]
mov byte [esp + 0x150], 8
cmp dword [esp + 0x120], 8
mov byte [esp + 0xe0], al
mov dword [esp + method.Win32Reg::RegistryKey.virtual_0], vtable.Win32Reg::RegistryKey.0
jb 0x40d083
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.0044687d
add esp, 4
push 0x5ab664
lea edx, [esp + 0xe8]
push ebp
push edx
call fcn.0040abd0
add esp, 0xc
mov byte [esp + 0x150], 0xa
cmp dword [ebp + 0x18], 8
jb 0x40d0ac
mov ebp, dword [ebp + 4]
jmp 0x40d0af
add ebp, 4
xor eax, eax
mov word [esp + 0x1c], ax
mov esi, 7
mov eax, ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
lea edx, [eax + 2]
jmp 0x40d0d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d0d0
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.00408820
mov byte [esp + 0x150], 0xb
xor ecx, ecx
push 4
mov word [esp + 0x3c], cx
push str.Path
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
call fcn.00408820
mov ecx, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x40d124
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x40d132
lea eax, [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0xd4]
push eax
call ebp
cmp eax, ebx
je 0x40d15a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x4c], edi
jb 0x40d16d
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov byte [esp + 0x150], 0xa
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], dx
cmp dword [esp + 0x30], edi
jb 0x40d197
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044687d
add esp, 4
xor ecx, ecx
push esi
mov word [esp + 0x20], cx
push str.version
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ebx
call fcn.00408820
mov ecx, dword [0x5ab5dc]
cmp dword [0x5ab5f0], edi
jae 0x40d1c8
mov ecx, 0x5ab5dc
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x40d1d6
lea eax, [esp + 0x1c]
mov edx, dword [0x5ab5ec]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0xd4]
push eax
call ebp
cmp eax, ebx
je 0x40d1fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x30], edi
jb 0x40d20d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0044687d
add esp, 4
mov edx, dword [esp + 0xe8]
cmp dword [esp + 0xfc], edi
jae 0x40d224
lea edx, [esp + 0xe8]
xor eax, eax
mov word [esp + 0x1c], ax
mov eax, edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
lea edi, [eax + 2]
jmp 0x40d240
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d240
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00408820
mov byte [esp + 0x150], 0xc
xor ecx, ecx
push 6
mov word [esp + 0x3c], cx
push str.Loader
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
call fcn.00408820
mov ecx, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x40d294
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x40d2a2
lea eax, [esp + 0x38]
mov edx, dword [esp + 0x2c]
lea edx, [edx + edx + 2]
push edx
push ecx
push 1
push ebx
push eax
mov eax, dword [esp + 0xd4]
push eax
call ebp
test eax, eax
je 0x40d2c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x4c], edi
jb 0x40d2d7
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], dx
cmp dword [esp + 0x30], edi
jb 0x40d2f9
mov eax, dword [esp + 0x1c]
push eax
call fcn.0044687d
add esp, 4
cmp dword [esp + 0xfc], edi
jb 0x40d312
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov ebp, vtable.Win32Reg::RegistryKey.0
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov word [esp + 0xe8], dx
mov dword [esp + 0xbc], ebp
cmp dword [esp + 0xdc], edi
jb 0x40d34f
mov eax, dword [esp + 0xc8]
push eax
call fcn.0044687d
add esp, 4
xor ecx, ecx
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], cx
cmp dword [esp + 0x140], edi
jb 0x40d380
mov edx, dword [esp + 0x12c]
push edx
call fcn.0044687d
add esp, 4
xor eax, eax
mov dword [esp + 0x140], esi
mov dword [esp + 0x13c], ebx
mov word [esp + 0x12c], ax
mov dword [esp + 0x94], ebp
cmp dword [esp + 0xb4], edi
jb 0x40d3b8
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0044687d
add esp, 4
xor edx, edx
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], dx
mov dword [esp + 0x6c], ebp
cmp dword [esp + 0x8c], edi
jb 0x40d3ea
mov eax, dword [esp + 0x78]
push eax
call fcn.0044687d
add esp, 4
xor ecx, ecx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], cx
cmp dword [esp + 0x68], edi
jb 0x40d412
mov edx, dword [esp + 0x54]
push edx
call fcn.0044687d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0047ff9f
add esp, 0x140
ret