Function at 0x47d380
Capabilities:
Set registry value

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
mov esi, edx
mov ebx, ecx
mov dword [esp + 0x14], ebx
push edi
mov edi, dword [esp + 0x230]
test esi, esi
je 0x47d40f
test edi, edi
jne 0x47d3b4
push edi
push 1
call fcn.0040e220
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
cmp edi, 4
je 0x47d3d0
lea eax, [esp + 0x14]
mov ecx, esi
push eax
lea edx, [esp + 0x2c]
call fcn.00453e70
add esp, 4
mov ebp, eax
jmp 0x47d413
mov eax, dword [esi + 8]
cmp eax, 4
ja case.0x47d3dc.3
jmp dword [eax*4 + 0x47d6ac]
mov ecx, dword [esi]
call fcn.0044e130
jmp case.0x47d3dc.1
push ecx
mov ecx, dword [esi]
mov edx, 1
push 1
push 0
call fcn.00480d70
add esp, 0xc
test eax, eax
je case.0x47d3dc.3
mov ecx, esi
call fcn.00453de0
mov dword [esp + 0x20], eax
mov ebp, dword [esp + 0x18]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4e4798]
push 0
mov eax, dword [eax + 0x84]
or eax, 0x20006
push eax
push 0
push 0x4cee20
push 0
push dword [esp + 0x254]
push dword [esp + 0x254]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x47d66c
cmp edi, 7
ja case.0x47d45d.5
jmp dword [edi*4 + 0x47d6c0]
push str.Number
push esi
push 0
mov ecx, ebx
call fcn.0040e270
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
mov eax, dword [esp + 0x14]
lea eax, [eax*2 + 2]
push eax
push ebp
push 1
push 0
push dword [esp + 0x24c]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp case.0x47d45d.0
mov eax, dword [esp + 0x14]
lea eax, [eax*2 + 2]
push eax
push ebp
push 2
jmp 0x47d48d
mov esi, dword [esp + 0x14]
lea eax, [esi*2 + 4]
push eax
call fcn.0049f23d
mov edi, eax
add esp, 4
test edi, edi
jne 0x47d4da
lea esi, [eax + 0xe]
jmp case.0x47d45d.0
push esi
push ebp
push edi
call fcn.004aa8c4
xor eax, eax
add esp, 0xc
mov dword [edi + esi*2], eax
test esi, esi
je 0x47d4fb
cmp word [edi + esi*2 - 2], 0xa
jne 0x47d4fb
dec esi
mov word [edi + esi*2], ax
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x47d520
mov edx, eax
cmp dx, 0xa
jne 0x47d512
xor eax, eax
mov word [ecx], ax
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x47d507
test esi, esi
je 0x47d529
lea eax, [esi + 2]
jmp 0x47d52b
xor eax, eax
add eax, eax
push eax
push edi
push 7
push 0
push dword [esp + 0x24c]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call fcn.0049f222
add esp, 4
jmp case.0x47d45d.0
push 4
lea eax, [esp + 0x24]
push eax
push 4
jmp 0x47d48d
mov eax, dword [esp + 0x14]
test al, 1
jne case.0x47d45d.5
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
mov dword [esp + 0x28], esi
call fcn.0049f23d
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x47d592
lea esi, [eax + 0xe]
jmp case.0x47d45d.0
xor ebx, ebx
xor edi, edi
cmp dword [esp + 0x14], ebx
jle 0x47d5fa
nop dword [eax]
cmp ebx, esi
jge 0x47d5fa
xor edx, edx
lea esi, [edx + 0x10]
nop dword [eax]
movzx ecx, word [ebp + edi*2]
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x47d5c3
lea eax, [ecx - 0x30]
jmp 0x47d5dd
lea eax, [ecx - 0x41]
cmp ax, 5
ja 0x47d5d1
lea eax, [ecx - 0x37]
jmp 0x47d5dd
lea eax, [ecx - 0x61]
cmp ax, 5
ja 0x47d625
lea eax, [ecx - 0x57]
imul eax, esi
inc edi
add edx, eax
sub esi, 0xf
jns 0x47d5b0
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov byte [ebx + eax], dl
inc ebx
cmp edi, dword [esp + 0x14]
jl 0x47d5a0
push ebx
push eax
push 3
push 0
push dword [esp + 0x24c]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x1c]
mov esi, eax
call fcn.0049f222
mov ebx, dword [esp + 0x1c]
add esp, 4
jmp case.0x47d45d.0
push dword [esp + 0x1c]
call fcn.0049f222
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4e4798]
mov esi, 0x57
mov ecx, dword [esp + 0x18]
push esi
mov dword [eax + 0x38], esi
call fcn.0040de80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
mov esi, 0x57
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4e4798]
mov dword [eax + 0x38], esi
test esi, esi
je 0x47d68d
mov ecx, dword [esp + 0x18]
push esi
call fcn.0040de80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
pop edi
pop esi
pop ebp
mov dword [ebx + 8], 0
mov dword [ebx], 0x4cee20
mov dword [ebx + 4], 0
pop ebx
add esp, 0x21c
ret