Function at 0x412480
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x54af45
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x5af640]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5af640]
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.0040cc30
push 1
lea ecx, [esp + 0x54]
push ecx
lea edi, [esp + 0x74]
mov ecx, 0x5b78cc
mov dword [esp + 0x158], ebx
call fcn.0041c370
mov byte [esp + 0x150], 1
cmp byte [esp + 0x90], bl
jne 0x412562
mov esi, 8
mov dword [esp + 0x6c], vtable.Win32Reg::RegistryKey.0
cmp dword [esp + 0x8c], esi
jb 0x412533
mov edx, dword [esp + 0x78]
push edx
call fcn.004508d0
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 0x41255b
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004508d0
add esp, 4
xor al, al
jmp 0x412b84
push 0xc
push str.ShengquGames
lea ecx, [esp + 0x58]
call fcn.0040cc30
push 1
lea edx, [esp + 0x54]
push edx
lea edi, [esp + 0x9c]
lea ecx, [esp + 0x74]
call fcn.0041c370
mov byte [esp + 0x150], 2
mov eax, dword [esi + 0x40]
push 2
add eax, 0xfffffffe
push eax
lea ebp, [esi + 0x2c]
push 0x5888f8
mov ecx, ebp
call fcn.0040af40
inc eax
push eax
push ebx
lea eax, [esp + 0x130]
push eax
mov ecx, ebp
call fcn.00409390
mov byte [esp + 0x150], 3
cmp byte [esp + 0xb8], bl
jne 0x412689
lea ecx, [esp + 0x50]
push ecx
lea edi, [esp + 0x104]
lea ecx, [esp + 0x70]
call fcn.0041c5a0
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.0040ae40
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 0x412647
mov edx, dword [esp + 0x10c]
push edx
call fcn.004508d0
add esp, 4
push str.BasePath
lea ecx, [esp + 0x1c]
call fcn.004091f0
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x1c]
call fcn.0041c7c0
cmp dword [esp + 0x30], esi
jb 0x412752
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004508d0
add esp, 4
jmp 0x412752
push str.BasePath
lea ecx, [esp + 0x1c]
call fcn.004091f0
lea ecx, [esp + 0x18]
lea esi, [esp + 0x100]
lea ebx, [esp + 0x94]
mov byte [esp + 0x150], 5
call fcn.0041c810
mov ebx, 7
mov esi, 8
mov byte [esp + 0x150], bl
cmp dword [esp + 0x30], esi
jb 0x4126da
mov edx, dword [esp + 0x1c]
push edx
call fcn.004508d0
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 0x41272f
push str.BasePath
lea ecx, [esp + 0x38]
call fcn.004091f0
lea ecx, [esp + 0x94]
push ecx
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x38]
call fcn.0041c7c0
cmp dword [esp + 0x4c], esi
jb 0x41272f
mov edx, dword [esp + 0x38]
push edx
call fcn.004508d0
add esp, 4
mov byte [esp + 0x150], 3
cmp dword [esp + 0x118], esi
jb 0x412750
mov eax, dword [esp + 0x104]
push eax
call fcn.004508d0
add esp, 4
xor ebx, ebx
push 1
push 0x5b75f0
lea edi, [esp + 0xc4]
lea ecx, [esp + 0x9c]
call fcn.0041c370
mov byte [esp + 0x150], 8
cmp byte [esp + 0xe0], bl
jne 0x4127f3
push 0x5b75f0
lea edi, [esp + 0x104]
lea ecx, [esp + 0x98]
call fcn.0041c5a0
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.0040ae40
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 0x4127f3
mov ecx, dword [esp + 0x10c]
push ecx
call fcn.004508d0
add esp, 4
push 0x5b76b4
lea edx, [esp + 0xe8]
push ebp
push edx
call fcn.00410050
add esp, 0xc
mov byte [esp + 0x150], 0xa
cmp dword [ebp + 0x18], 8
jb 0x41281c
mov ebp, dword [ebp + 4]
jmp 0x41281f
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 0x412840
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412840
sub eax, edx
sar eax, 1
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.0040cc30
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.0040cc30
mov ecx, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x412894
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x4128a2
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 0x4128ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x4c], edi
jb 0x4128dd
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004508d0
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 0x412907
mov eax, dword [esp + 0x1c]
push eax
call fcn.004508d0
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.0040cc30
mov ecx, dword [0x5b762c]
cmp dword [0x5b7640], edi
jae 0x412938
mov ecx, 0x5b762c
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], edi
jae 0x412946
lea eax, [esp + 0x1c]
mov edx, dword [0x5b763c]
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 0x41296a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x30], edi
jb 0x41297d
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004508d0
add esp, 4
mov edx, dword [esp + 0xe8]
cmp dword [esp + 0xfc], edi
jae 0x412994
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 0x4129b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4129b0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.0040cc30
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.0040cc30
mov ecx, dword [esp + 0x1c]
mov edi, 8
cmp dword [esp + 0x30], edi
jae 0x412a04
lea ecx, [esp + 0x1c]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], edi
jae 0x412a12
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 0x412a34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x4c], edi
jb 0x412a47
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004508d0
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 0x412a69
mov eax, dword [esp + 0x1c]
push eax
call fcn.004508d0
add esp, 4
cmp dword [esp + 0xfc], edi
jb 0x412a82
mov ecx, dword [esp + 0xe8]
push ecx
call fcn.004508d0
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 0x412abf
mov eax, dword [esp + 0xc8]
push eax
call fcn.004508d0
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 0x412af0
mov edx, dword [esp + 0x12c]
push edx
call fcn.004508d0
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 0x412b28
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.004508d0
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 0x412b5a
mov eax, dword [esp + 0x78]
push eax
call fcn.004508d0
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 0x412b82
mov edx, dword [esp + 0x54]
push edx
call fcn.004508d0
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.00522f5c
add esp, 0x140
ret