Function at 0x47eb80
Capabilities:
Set registry value

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x238]
mov eax, ecx
mov dword [esp + 0x20], eax
mov ebx, edx
test edi, edi
jne 0x47ebb2
push 0x4dc378
call fcn.00430e40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
cmp edi, 4
je 0x47ebce
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
lea edx, [esp + 0x34]
call fcn.00456a10
add esp, 4
mov ebp, eax
jmp 0x47ebd2
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x4e59a0]
push 0
mov eax, dword [eax + 0x84]
or eax, 0x20006
push eax
push 0
push 0x4d1e48
push 0
push dword [esp + 0x25c]
push dword [esp + 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x47ee18
dec edi
cmp edi, 6
ja case.0x47ec20.5
jmp dword [edi*4 + 0x47ee5c]
mov eax, dword [esp + 0x18]
lea eax, [eax*2 + 2]
push eax
push ebp
push 1
push 0
push dword [esp + 0x254]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x47ee0e
mov eax, dword [esp + 0x18]
lea eax, [eax*2 + 2]
push eax
push ebp
push 2
jmp 0x47ec36
mov esi, dword [esp + 0x18]
lea eax, [esi*2 + 4]
push eax
call fcn.0049f88a
mov edi, eax
add esp, 4
test edi, edi
jne 0x47ec83
lea esi, [eax + 0xe]
jmp 0x47ee0e
push esi
push ebp
push edi
call fcn.004ab924
xor eax, eax
add esp, 0xc
mov dword [edi + esi*2], eax
test esi, esi
je 0x47eca4
cmp word [edi + esi*2 - 2], 0xa
jne 0x47eca4
dec esi
mov word [edi + esi*2], ax
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x47ecc9
mov edx, eax
cmp dx, 0xa
jne 0x47ecbb
xor eax, eax
mov word [ecx], ax
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x47ecb0
test esi, esi
je 0x47ecd2
lea eax, [esi + 2]
jmp 0x47ecd4
xor eax, eax
add eax, eax
push eax
push edi
push 7
push 0
push dword [esp + 0x254]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call fcn.0049f86f
add esp, 4
jmp 0x47ee0e
mov ecx, ebx
call fcn.00456980
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 4
push eax
push 4
jmp 0x47ec36
mov eax, dword [esp + 0x18]
test al, 1
jne case.0x47ec20.5
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push esi
mov dword [esp + 0x28], esi
call fcn.0049f88a
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x47ed46
lea esi, [eax + 0xe]
jmp 0x47ee0e
xor ebx, ebx
xor edi, edi
cmp dword [esp + 0x18], ebx
jle 0x47edaa
cmp ebx, esi
jge 0x47edaa
xor edx, edx
lea esi, [edx + 0x10]
nop dword [eax]
movzx ecx, word [ebp + edi*2]
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x47ed73
lea eax, [ecx - 0x30]
jmp 0x47ed8d
lea eax, [ecx - 0x41]
cmp ax, 5
ja 0x47ed81
lea eax, [ecx - 0x37]
jmp 0x47ed8d
lea eax, [ecx - 0x61]
cmp ax, 5
ja 0x47edd1
lea eax, [ecx - 0x57]
imul eax, esi
inc edi
add edx, eax
sub esi, 0xf
jns 0x47ed60
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov byte [ebx + eax], dl
inc ebx
cmp edi, dword [esp + 0x18]
jl 0x47ed50
push ebx
push eax
push 3
push 0
push dword [esp + 0x254]
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x1c]
mov esi, eax
call fcn.0049f86f
add esp, 4
jmp 0x47ee0e
push dword [esp + 0x1c]
call fcn.0049f86f
add esp, 4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4e59a0]
mov esi, 0x57
mov ecx, dword [esp + 0x20]
push esi
mov dword [eax + 0x38], esi
call fcn.00430f30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
mov esi, 0x57
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4e59a0]
mov dword [eax + 0x38], esi
test esi, esi
je 0x47ee39
mov ecx, dword [esp + 0x20]
push esi
call fcn.00430f30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [eax + 8], 0
mov dword [eax], 0x4d1e48
mov dword [eax + 4], 0
pop ebx
add esp, 0x224
ret