Function at 0x479300
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x204]
push edi
push 0x200
push 0
push eax
call fcn.004c52c0
push 0x200
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004c52c0
add esp, 0x18
mov dword [ebp - 0x614], 0x41
lea eax, [ebp - 0x610]
xor edi, edi
push eax
push 0x50f6e8
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4795c5
push esi
lea eax, [ebp - 0x618]
mov dword [ebp - 0x618], 0x200
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push edi
push 0x50f75c
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.004c97d5
lea ecx, [ebp - 0x204]
add esp, 8
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4793b7
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x479487
nop
movzx eax, word [ebp + esi*2 - 0x204]
mov ecx, 0x7a
sub ecx, eax
mov word [ebp - 0x614], ax
xor eax, eax
mov dword [ebp - 0x618], 0x208
cmp ecx, 1
setg al
or edi, eax
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x60c]
push eax
push 0
push 0
lea eax, [ebp - 0x614]
push eax
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479462
lea eax, [ebp - 0x60c]
push 0x5c
push eax
call fcn.004c5688
add esp, 8
test eax, eax
je 0x47944e
lea eax, [ebp - 0x60c]
push 0x5c
push eax
call fcn.004c5688
add esp, 8
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x60c]
push eax
push ebx
call fcn.004c9380
add esp, 8
test eax, eax
je 0x4794cc
lea eax, [ebp - 0x204]
inc esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x479470
sub eax, edx
sar eax, 1
cmp esi, eax
jl 0x4793d0
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x402]
push 0xff
push eax
call fcn.004c905a
xor eax, eax
add esp, 0xc
mov word [ebp - 0x3d0], ax
xor edx, edx
nop dword [eax]
mov eax, 1
mov ecx, edx
shl eax, cl
test edi, eax
je 0x4794e9
inc edx
cmp edx, 0x1a
jl 0x4794b0
mov ax, word [ebp - 0x404]
jmp 0x4794ec
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c3287
mov esp, ebp
pop ebp
ret
lea eax, [edx + 0x61]
movzx ecx, ax
cmp edx, 0x1a
movzx eax, word [ebp - 0x1d2]
mov esi, ebx
cmove ecx, eax
mov word [ebp - 0x404], cx
mov word [ebp - 0x614], cx
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x479510
sub esi, ecx
sar esi, 1
add esi, 3
lea eax, [esi + esi]
push eax
call fcn.004c8c9a
push ebx
push 0x50f76c
mov edi, eax
push esi
push edi
call fcn.00415290
mov ecx, edi
add esp, 0x14
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479542
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
lea eax, [ebp - 0x614]
push eax
push dword [ebp - 0x610]
call esi
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479580
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 0
push 0x50f75c
push dword [ebp - 0x610]
call esi
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.004c8c7f
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004c3287
mov esp, ebp
pop ebp
ret