Function at 0x4a9260
Capabilities:
Check os version
Query or enumerate registry value
Resolve function by parsing pe exports
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x54b260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0x58], edi
call fcn.005111e1
xor ebx, ebx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x26c], ebx
call fcn.005111e1
mov eax, dword [0x5ab980]
xor ebp, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x274]
lea ecx, [esp + 0x1c]
add eax, 0x1c
mov byte [esp + 0x26c], 9
push eax
call fcn.00512a1d
mov ecx, dword [0x5ab980]
mov dword [esp + 0x10], ecx
push ecx
mov byte [esp + 0x270], 0xa
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x5981dc
call fcn.00512952
push ecx
mov byte [esp + 0x274], 0xb
mov ecx, esp
mov dword [esp + 0x38], esp
push str.HKEY_CURRENT_USER
call fcn.00512952
lea edx, [esp + 0x24]
mov byte [esp + 0x274], 0xa
push edx
call fcn.00425630
add esp, 0xc
cmp eax, ebx
je 0x4a9350
push str.HKEY_CURRENT_USER
jmp 0x4a9462
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x5981dc
call fcn.00512952
push str.HKEY_USERS_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 0xc
call fcn.00512952
push ecx
mov byte [esp + 0x274], 0xd
mov ecx, esp
mov dword [esp + 0x38], esp
push str.TempIMP
push eax
push ecx
call fcn.00512b79
lea edx, [esp + 0x24]
mov byte [esp + 0x274], 0xe
push edx
call fcn.00425630
add esp, 0xc
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x26c], 0xa
call fcn.005128e4
cmp esi, ebx
je 0x4a941a
push str.HKEY_USERS_
lea ecx, [esp + 0x28]
call fcn.00512952
push str.TempIMP
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x274], 0xf
push eax
call fcn.00512b79
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x270], 0x10
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 0xf
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x26c], 0xa
call fcn.005128e4
jmp 0x4a946b
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x5981dc
call fcn.00512952
push ecx
mov byte [esp + 0x274], 0x11
mov ecx, esp
mov dword [esp + 0x38], esp
push str.HKEY_USERS.DEFAULT
call fcn.00512952
lea ecx, [esp + 0x24]
mov byte [esp + 0x274], 0xa
push ecx
call fcn.00425630
add esp, 0xc
cmp eax, ebx
je 0x4a946b
push str.HKEY_USERS.DEFAULT
lea ecx, [esp + 0x14]
call fcn.00512a6d
lea edx, [esp + 0x1c]
lea ecx, [edi + 0x39f4]
push edx
call fcn.00497d20
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebx
je 0x4a94c3
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00512659
push ecx
mov byte [esp + 0x274], 0x12
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x5981dc
call fcn.00512952
lea eax, [esp + 0x24]
mov byte [esp + 0x274], 0xa
push eax
call fcn.00425630
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x26c], 9
call fcn.005128e4
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00512a1d
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x5981dc
call fcn.00512952
push ecx
mov byte [esp + 0x274], 0x13
mov ecx, esp
mov dword [esp + 0x38], esp
push str.HKEY_USERS.DEFAULT
call fcn.00512952
lea edx, [esp + 0x20]
mov byte [esp + 0x274], 9
push edx
call fcn.00425630
add esp, 0xc
cmp eax, ebx
jle 0x4a95f9
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 0x38]
mov edx, dword [edx + 0x48]
mov esi, dword [ecx + 0x48]
cmp edx, esi
je 0x4a95f7
lea ecx, [esp + 0x5c]
mov byte [esp + 0x26c], 8
call fcn.005128e4
lea ecx, [esp + 0x60]
mov byte [esp + 0x26c], 7
call fcn.005128e4
lea ecx, [esp + 0x34]
mov byte [esp + 0x26c], 6
call fcn.005128e4
lea ecx, [esp + 0x54]
mov byte [esp + 0x26c], 5
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x26c], 4
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x26c], 3
call fcn.005128e4
lea ecx, [esp + 0x64]
mov byte [esp + 0x26c], 2
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x26c], 1
call fcn.005128e4
lea ecx, [esp + 0xb4]
mov byte [esp + 0x26c], 0
call fcn.00511214
lea ecx, [esp + 0x94]
mov dword [esp + 0x26c], 0xffffffff
call fcn.00511214
xor eax, eax
jmp 0x4a9915
cmp eax, ebx
jne 0x4a96aa
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x5981dc
call fcn.00512952
push ecx
mov byte [esp + 0x274], 0x14
mov ecx, esp
mov dword [esp + 0x38], esp
push str.HKEY_CURRENT_USER
call fcn.00512952
lea eax, [esp + 0x20]
mov byte [esp + 0x274], 9
push eax
call fcn.00425630
add esp, 0xc
cmp eax, ebx
jne 0x4a96aa
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x5981dc
call fcn.00512952
push str.HKEY_USERS_
lea ecx, [esp + 0x1c]
mov byte [esp + 0x274], 0x15
call fcn.00512952
push ecx
mov byte [esp + 0x274], 0x16
mov ecx, esp
mov dword [esp + 0x38], esp
push str.TempIMP
push eax
push ecx
call fcn.00512b79
lea edx, [esp + 0x20]
mov byte [esp + 0x274], 0x17
push edx
call fcn.00425630
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 9
call fcn.005128e4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.004f9670
mov edx, dword [edi + 0x3be8]
add esp, 8
cmp dword [edx - 8], ebx
je 0x4a97b1
mov eax, dword [0x5ab980]
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
mov eax, edx
lea ecx, [esp + 0x28]
push eax
mov bl, 0x19
push str.HKEY_USERS_s
push ecx
mov byte [esp + 0x278], bl
call fcn.0050e6c7
add esp, 0xc
lea ecx, [esp + 0x24]
push str.HKEY_USERS_
call fcn.00512952
push str.TempIMP
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x278], 0x1a
call fcn.00512b79
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x270], 0x1b
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 0x1a
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x26c], bl
call fcn.005128e4
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00512659
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x278], 0x1c
call fcn.00512659
lea eax, [esp + 0x24]
mov byte [esp + 0x274], bl
push eax
call fcn.00425630
add esp, 0xc
lea ecx, [esp + 0x28]
mov byte [esp + 0x26c], 0x18
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x26c], 9
call fcn.005128e4
xor ebx, ebx
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x68]
push ecx
push edx
push eax
call fcn.0041f330
add esp, 0xc
test eax, eax
jg 0x4a9930
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x50]
push ecx
push str.PxLib_RegParseKeyName___key_s
push edx
call fcn.0050e6c7
mov eax, dword [esp + 0x5c]
add esp, 0xc
lea edx, [esp + 0x1c]
lea ecx, [edi + 0x3ba4]
push eax
push ebx
push 8
push edx
mov dword [esp + 0x30], ecx
call fcn.004bfc40
xor ecx, ecx
cmp eax, 1
setge cl
dec ecx
and ecx, 0x3f3
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4a9825
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x4a9860
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push edx
push str.returnCloseKey:_rawkey_s
push eax
call fcn.0050e6c7
mov ecx, dword [esp + 0x5c]
add esp, 0xc
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
push ebp
push 8
push edx
call fcn.004bfc40
test eax, eax
jle 0x4a9860
xor ebp, ebp
lea ecx, [esp + 0x5c]
mov byte [esp + 0x26c], 8
call fcn.005128e4
lea ecx, [esp + 0x60]
mov byte [esp + 0x26c], 7
call fcn.005128e4
lea ecx, [esp + 0x34]
mov byte [esp + 0x26c], 6
call fcn.005128e4
lea ecx, [esp + 0x54]
mov byte [esp + 0x26c], 5
call fcn.005128e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x26c], 4
call fcn.005128e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x26c], 3
call fcn.005128e4
lea ecx, [esp + 0x64]
mov byte [esp + 0x26c], 2
call fcn.005128e4
lea ecx, [esp + 0x50]
mov byte [esp + 0x26c], 1
call fcn.005128e4
lea ecx, [esp + 0xb4]
mov byte [esp + 0x26c], 0
call fcn.00511214
lea ecx, [esp + 0x94]
mov dword [esp + 0x26c], 0xffffffff
call fcn.00511214
mov eax, ebp
mov ecx, dword [esp + 0x264]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x260
ret 8
mov edx, dword [esp + 0x18]
push ebx
push ebx
push edx
mov ecx, edi
call fcn.004a8c50
cmp eax, ebx
jne 0x4a9986
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push 0x5a413c
push ecx
call fcn.00512bed
lea ecx, [edi + 0x3ba4]
push eax
push 0xb
mov byte [esp + 0x274], 0x1d
mov dword [esp + 0x28], ecx
call fcn.004bf3d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 9
call fcn.005128e4
jmp 0x4aa37a
mov eax, dword [eax + 4]
test al, 1
jne 0x4a99d9
test al, 4
je 0x4a99d9
test al, 0xa
jne 0x4a99d9
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push 0x59adec
push eax
call fcn.00512bed
lea ecx, [edi + 0x3ba4]
push eax
push 0xb
mov byte [esp + 0x274], 0x1e
mov dword [esp + 0x28], ecx
call fcn.004bf3d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], 9
call fcn.005128e4
jmp 0x4a9816
mov eax, dword [edi + 0x3944]
test ah, 0x10
je 0x4a9a10
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x3c]
push ecx
push 0xf003f
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
inc eax
xor ebp, ebp
mov dword [esp + 0x6c], eax
mov dword [esp + 0x40], ebp
jmp 0x4a9a81
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0xb0]
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebp, eax
cmp ebp, ebx
mov dword [esp + 0x40], ebp
je 0x4a9a6e
push str.RegCreateKeyEx_3_
push ebp
lea edx, [esp + 0x20]
lea ecx, [edi + 0x3ba4]
push 9
push edx
mov dword [esp + 0x30], ecx
call fcn.004bfc40
cmp eax, 1
jl 0x4a9816
mov dword [esp + 0x40], ebx
jmp 0x4a9816
mov ecx, dword [esp + 0xb0]
xor eax, eax
cmp ecx, 2
sete al
mov dword [esp + 0x6c], eax
cmp eax, ebx
lea eax, [esp + 0x18]
push eax
je 0x4a9aea
lea ecx, [esp + 0x28]
push 0x598528
push ecx
call fcn.00512bed
push 0x598524
lea edx, [esp + 0x18]
mov bl, 0x1f
push eax
push edx
mov byte [esp + 0x278], bl
call fcn.00512b79
lea ecx, [edi + 0x3ba4]
push eax
push 0xa
mov byte [esp + 0x274], 0x20
mov dword [esp + 0x28], ecx
call fcn.004bf3d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], bl
call fcn.005128e4
mov byte [esp + 0x26c], 9
lea ecx, [esp + 0x24]
jmp 0x4a9b48
lea ecx, [esp + 0x28]
push 0x5a4124
push ecx
call fcn.00512bed
push 0x598524
lea edx, [esp + 0x18]
mov bl, 0x21
push eax
push edx
mov byte [esp + 0x278], bl
call fcn.00512b79
lea ecx, [edi + 0x3ba4]
push eax
push 9
mov byte [esp + 0x274], 0x22
mov dword [esp + 0x28], ecx
call fcn.004bf3d0
lea ecx, [esp + 0x14]
mov byte [esp + 0x26c], bl
call fcn.005128e4
mov byte [esp + 0x26c], 9
lea ecx, [esp + 0x24]
call fcn.005128e4
mov eax, dword [esp + 0x274]
mov ecx, dword [eax + 0x20]
test ecx, ecx
jle 0x4aa37a
mov ecx, eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x4aa37a
jmp 0x4a9b72
mov eax, dword [esp + 0x14]
mov ebp, dword [eax + 8]
mov edx, dword [eax]
mov dword [esp + 0x14], edx
mov al, byte [ebp + 4]
test al, al
je 0x4aa36a
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x58]
push ebp
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.004a8c50
test eax, eax
mov dword [esp + 0x38], eax
jne 0x4a9c11
push 0x5a413c
lea ecx, [esp + 0x90]
call fcn.00512952
lea ecx, [esp + 0xe4]
lea edx, [esp + 0x84]
push ecx
push eax
push edx
mov byte [esp + 0x278], 0x23
call fcn.00512b79
mov ecx, dword [esp + 0x20]
push eax
push 0xf
mov byte [esp + 0x274], 0x24
call fcn.004bf3d0
lea ecx, [esp + 0x84]
mov byte [esp + 0x26c], 0x23
call fcn.005128e4
lea ecx, [esp + 0x8c]
mov byte [esp + 0x26c], 9
call fcn.005128e4
jmp 0x4aa36a
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xe4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x44], ecx
mov ecx, ebp
call fcn.00443400
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x48], eax
mov al, byte [esp + 0xe4]
xor ebx, ebx
test al, al
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ebx
je 0x4a9cd5
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x54]
push eax
call fcn.00512a6d
mov edi, dword [esp + 0x58]
lea ecx, [esp + 0x54]
push ebx
push ecx
mov ecx, edi
call fcn.0049c5b0
lea edx, [esp + 0x54]
lea ecx, [edi + 0x3a2c]
push edx
mov esi, eax
call fcn.00497d20
add esi, eax
test esi, esi
jle 0x4a9cd5
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x60]
push eax
call fcn.00512a6d
mov edi, dword [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xe4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4a9d37
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x40]
push 0
push edx
lea eax, [esp + 0xf0]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a9d37
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], 1
cmp eax, 1
ja 0x4a9d2c
mov esi, dword [esp + 0x10]
test eax, eax
jbe 0x4a9d3b
cmp esi, 1
je 0x4a9d3b
cmp esi, 2
je 0x4a9d3b
mov ebx, 1
jmp 0x4a9d3b
mov esi, dword [esp + 0x10]
mov ebx, 1
jmp 0x4a9d3b
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 4]
test al, 2
je 0x4a9e43
and eax, 1
je 0x4a9dc3
test ebx, ebx
jne 0x4a9dc3
push 0x5a411c
lea ecx, [esp + 0x84]
call fcn.00512952
lea ecx, [esp + 0xe4]
lea edx, [esp + 0xac]
push ecx
push eax
push edx
mov byte [esp + 0x278], 0x25
call fcn.00512b79
mov ecx, dword [esp + 0x20]
push eax
push 0xf
mov byte [esp + 0x274], 0x26
call fcn.004bf3d0
lea ecx, [esp + 0xac]
mov byte [esp + 0x26c], 0x25
call fcn.005128e4
lea ecx, [esp + 0x80]
mov byte [esp + 0x26c], 9
call fcn.005128e4
jmp 0x4aa36a
test eax, eax
jne 0x4a9eb1
test ebx, ebx
je 0x4a9eb1
push str.___
lea ecx, [esp + 0x8c]
call fcn.00512952
lea ecx, [esp + 0xe4]
lea edx, [esp + 0xa8]
push ecx
push eax
push edx
mov byte [esp + 0x278], 0x27
call fcn.00512b79
mov ecx, dword [esp + 0x20]
push eax
push 0xf
mov byte [esp + 0x274], 0x28
call fcn.004bf3d0
lea ecx, [esp + 0xa8]
mov byte [esp + 0x26c], 0x27
call fcn.005128e4
lea ecx, [esp + 0x88]
mov byte [esp + 0x26c], 9
call fcn.005128e4
jmp 0x4aa36a
test al, 1
jne 0x4a9eb1
push 0x5a413c
lea ecx, [esp + 0x94]
call fcn.00512952
lea ecx, [esp + 0xe4]
lea edx, [esp + 0x74]
push ecx
push eax
push edx
mov byte [esp + 0x278], 0x29
call fcn.00512b79
mov ecx, dword [esp + 0x20]
push eax
push 0xf
mov byte [esp + 0x274], 0x2a
call fcn.004bf3d0
lea ecx, [esp + 0x74]
mov byte [esp + 0x26c], 0x29
call fcn.005128e4
lea ecx, [esp + 0x90]
mov byte [esp + 0x26c], 9
call fcn.005128e4
jmp 0x4aa36a
lea ecx, [esp + 0x34]
call fcn.0051286f
cmp esi, 1
je 0x4a9fe4
cmp esi, 2
je 0x4a9fe4
cmp esi, 7
jne 0x4aa055
mov esi, dword [esp + 0x44]
cmp esi, 2
jb 0x4aa055
push 0xa
lea ecx, [esp + 0xcc]
call fcn.00510deb
mov dword [esp + 0xc8], 0x559f90
mov eax, dword [0x5ab980]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x48]
push esi
push ecx
lea ecx, [esp + 0xd0]
mov byte [esp + 0x274], 0x2c
mov dword [esp + 0x40], 0
call fcn.004242b0
mov esi, dword [esp + 0xcc]
test esi, esi
je 0x4a9fbd
mov edx, dword [esp + 0x58]
lea ebx, [edx + 0x3a2c]
mov eax, esi
mov ebp, esi
mov esi, dword [esi]
add eax, 8
push eax
lea ecx, [esp + 0x2c]
call fcn.00512a1d
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x28]
push 0
push eax
call fcn.0049c5b0
lea ecx, [esp + 0x28]
mov edi, eax
push ecx
mov ecx, ebx
call fcn.00497d20
add edi, eax
test edi, edi
jle 0x4a9f87
lea edx, [esp + 0x28]
lea ecx, [ebp + 8]
push edx
call fcn.00512a1d
add dword [esp + 0x38], edi
test esi, esi
jne 0x4a9f3f
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x4a9fbd
lea eax, [esp + 0xb4]
lea ecx, [esp + 0xc8]
push eax
call fcn.00424310
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x26c], 0x2b
call fcn.005128e4
lea ecx, [esp + 0xc8]
mov byte [esp + 0x26c], 9
call fcn.00510e5f
jmp 0x4aa055
cmp dword [esp + 0x44], 2
jb 0x4aa055
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x34]
push eax
call fcn.00512a6d
mov edi, dword [esp + 0x58]
lea ecx, [esp + 0x34]
push 0
push ecx
mov ecx, edi
call fcn.0049c5b0
lea edx, [esp + 0x34]
lea ecx, [edi + 0x3a2c]
push edx
mov esi, eax
call fcn.00497d20
add esi, eax
test esi, esi
jle 0x4aa055
mov eax, dword [esp + 0x34]
mov ecx, ebp
mov ebx, dword [eax - 8]
inc ebx
push ebx
call fcn.00443420
test eax, eax
mov dword [esp + 0x48], eax
je 0x4aa051
mov esi, dword [esp + 0x34]
mov ecx, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4aa282
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jne 0x4aa16f
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x10]
cmp edx, esi
jne 0x4aa16f
test ecx, ecx
jne 0x4aa0ec
push str.__0_
lea ecx, [esp + 0x80]
call fcn.00512952
lea ecx, [esp + 0xe4]
lea edx, [esp + 0x78]
push ecx
push eax
push edx
mov byte [esp + 0x278], 0x2d
call fcn.00512b79
mov ecx, dword [esp + 0x20]
push eax
push 0xf
mov byte [esp + 0x274], 0x2e
call fcn.004bf3d0
lea ecx, [esp + 0x78]
mov byte [esp + 0x26c], 0x2d
call fcn.005128e4
lea ecx, [esp + 0x7c]
mov byte [esp + 0x26c], 9
call fcn.005128e4
jmp 0x4aa36a
cmp eax, dword [esp + 0x9c]
jbe 0x4aa108
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x9c]
call fcn.00511241
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x98]
test edi, edi
je 0x4aa16f
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x4c]
push eax
push edi
push 0
lea ecx, [esp + 0xf0]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aa16b
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4aa159
cmp eax, 2
ja 0x4aa159
mov eax, dword [esp + 0x48]
push edi
push eax
call fcn.004f9670
add esp, 8
test eax, eax
je 0x4aa36a
jmp 0x4aa16b
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4aa36a
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, 1
cmp edx, ecx
ja 0x4aa282
cmp eax, 4
jb 0x4aa282
cmp eax, 0xa
ja 0x4aa282
cmp dword [esp + 0x10], ecx
jne 0x4aa282
cmp dword [esp + 0x70], ecx
jne 0x4aa282
cmp eax, dword [esp + 0x9c]
jbe 0x4aa1be
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x9c]
call fcn.00511241
mov edi, dword [esp + 0x98]
test edi, edi
je 0x4aa282
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x4c]
push eax
push edi
push 0
lea ecx, [esp + 0xf0]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aa282
mov esi, str.none
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4aa221
test cl, cl
je 0x4aa21d
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4aa221
add eax, 2
add esi, 2
test cl, cl
jne 0x4aa1f9
xor eax, eax
jmp 0x4aa226
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4aa282
mov eax, dword [0x5ab980]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xe4]
push ecx
push edx
lea eax, [esp + 0x40]
push str.Skipped_none:__s___s_n
push eax
mov byte [esp + 0x27c], 0x2f
call fcn.0050e6c7
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x24]
push 6
push 5
call fcn.004bf410
lea ecx, [esp + 0x38]
mov byte [esp + 0x26c], 9
call fcn.005128e4
jmp 0x4aa36a
push 0x5a4124
lea ecx, [esp + 0x30]
call fcn.00512952
lea edx, [esp + 0xe4]
mov byte [esp + 0x26c], 0x30
push edx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00512b79
mov edi, dword [esp + 0x20]
push eax
push 0xd
mov ecx, edi
mov byte [esp + 0x274], 0x31
call fcn.004bf3d0
lea ecx, [esp + 0x30]
mov byte [esp + 0x26c], 0x30
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x26c], 9
call fcn.005128e4
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx + 0x3944]
test ah, 0x10
jne 0x4aa36a
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x44]
push ecx
lea edx, [esp + 0xf0]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
mov dword [esp + 0x40], esi
je 0x4aa36a
lea ecx, [esp + 0xe4]
lea edx, [esp + 0x50]
push ecx
push str.RegSetValueEx_5__subkey_s
push edx
call fcn.0050e6c7
mov eax, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push eax
push esi
push 0xe
push ecx
mov ecx, edi
call fcn.004bfc40
cmp eax, 1
jge 0x4aa362
mov eax, dword [esp + 0x278]
test eax, eax
je 0x4a9816
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4a9b6e
mov ebp, dword [esp + 0x40]
lea ecx, [esp + 0x34]
call fcn.0051286f
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x9c]
call fcn.00511241
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4a9829
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x3c], 0
jmp 0x4a9829