Function at 0x47a5a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1ce1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1144
call fcn.0049df10
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x1140], esi
mov dword [ebp - 0x1144], esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x113c], ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1020], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1148], eax
mov dword [ebp - 0x1138], 0
lea eax, [ebp - 0x101c]
push eax
call fcn.0047a440
test eax, eax
js 0x47aad9
lea edx, [ebp - 0x1138]
lea ecx, [ebp - 0x101c]
call fcn.0047a240
test eax, eax
jne 0x47a63c
mov eax, 0x80020009
jmp 0x47aad9
mov ecx, esi
call fcn.0047a3f0
lea eax, [ebp - 0x101c]
push eax
mov ecx, esi
call fcn.0047a440
test eax, eax
js 0x47aad9
movzx eax, word [ebp - 0x1138]
cmp eax, 0x13
jg 0x47a958
je 0x47a845
cmp eax, 8
je 0x47a82e
cmp eax, 0x11
jne 0x47aac3
lea ebx, [ebp - 0x101c]
lea ecx, [ebx + 1]
lea ebx, [ebx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x47a690
sub ebx, ecx
mov dword [ebp - 0x1024], ebx
test bl, 1
jne 0x47a78e
mov eax, ebx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x1138], edi
mov dword [ebp - 0x1028], edi
push 0x104
push 0
lea eax, [ebp - 0x1134]
push eax
call fcn.0048f5e0
add esp, 0xc
mov dword [ebp - 0x1134], 0
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x1154], edi
xor eax, eax
mov dword [ebp - 0x1150], eax
ja 0x47a72f
cmp edi, 0xffffffff
ja 0x47a72f
cmp edi, 0x100
jbe 0x47a71a
push edi
lea ecx, [ebp - 0x1134]
call fcn.0047cdc0
mov dword [ebp - 4], 4
jmp 0x47a764
lea eax, [ebp - 0x1130]
mov dword [ebp - 0x1134], eax
mov dword [ebp - 4], 4
jmp 0x47a764
push 0x80070216
call fcn.00401330
mov eax, 0x47a73f
ret
mov eax, dword [ebp - 0x1134]
test eax, eax
jne 0x47a798
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1130]
cmp dword [ebp - 0x1134], eax
je 0x47a78e
lea ecx, [ebp - 0x1134]
call fcn.0047cdb0
mov eax, 0x80004005
jmp 0x47aad9
push edi
push 0
push eax
call fcn.0048f5e0
add esp, 0xc
test ebx, ebx
jle 0x47a7e4
xor edi, edi
lea ebx, [ebx]
mov esi, edi
shr esi, 1
add esi, dword [ebp - 0x1134]
mov cl, byte [ebp + edi - 0x101c]
call fcn.0047a340
mov edx, edi
and edx, 1
shl edx, 2
mov ecx, 4
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, ebx
jl 0x47a7b0
mov edi, dword [ebp - 0x1138]
push edi
push dword [ebp - 0x1134]
push 3
push 0
push dword [ebp - 0x1020]
mov ecx, dword [ebp - 0x113c]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1130]
cmp dword [ebp - 0x1134], eax
je 0x47aab0
lea ecx, [ebp - 0x1134]
call fcn.0047cdb0
jmp 0x47aab0
push ecx
lea eax, [ebp - 0x101c]
push eax
push edi
mov ecx, ebx
call fcn.00479040
mov esi, eax
jmp 0x47aab0
mov dword [ebp - 0x1020], 0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x101c]
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x47a860
sub edx, ecx
inc edx
mov dword [ebp - 0x1138], edx
push ecx
lea ecx, [ebp - 0x1138]
call fcn.00478990
add esp, 4
test eax, eax
js 0x47a93c
mov esi, dword [ebp - 0x1138]
cmp esi, 0x400
jg 0x47a8ae
mov ecx, esi
call fcn.00426770
test al, al
je 0x47a8ae
mov eax, esi
call fcn.004a9460
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x47a8ba
push esi
lea ecx, [ebp - 0x1020]
call fcn.0041acc0
push 3
shr esi, 1
push esi
lea edx, [ebp - 0x101c]
mov ecx, eax
call fcn.0045d100
test eax, eax
je 0x47a93c
lea ecx, [ebp - 0x1028]
push ecx
push 0
push 0
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov esi, eax
test esi, esi
jns 0x47a901
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1020]
call fcn.0041aca0
mov eax, esi
jmp 0x47aad9
mov eax, dword [ebp - 0x1028]
mov dword [ebp - 0x1024], eax
push 4
lea eax, [ebp - 0x1024]
push eax
push 4
push 0
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1020]
call fcn.0041aca0
jmp 0x47aab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1020]
call fcn.0041aca0
mov eax, 0x8007000e
jmp 0x47aad9
cmp eax, 0x4008
jne 0x47aac3
lea ecx, [ebp - 0x101c]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a970
sub ecx, edx
lea esi, [ecx + 2]
push 0x104
push 0
lea eax, [ebp - 0x1134]
push eax
call fcn.0048f5e0
add esp, 0xc
mov dword [ebp - 0x1134], 0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1154], esi
xor eax, eax
mov dword [ebp - 0x1150], eax
ja 0x47a72f
cmp esi, 0xffffffff
ja 0x47a72f
cmp esi, 0x100
jbe 0x47a9e1
push esi
lea ecx, [ebp - 0x1134]
call fcn.0047cdc0
mov dword [ebp - 4], 0
jmp 0x47aa0f
lea eax, [ebp - 0x1130]
mov dword [ebp - 0x1134], eax
mov dword [ebp - 4], 0
jmp 0x47aa0f
mov esi, dword [ebp - 0x1134]
test esi, esi
je 0x47aa8b
lea edi, [ebp - 0x101c]
cmp byte [ebp - 0x101c], 0
je 0x47aa6b
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
mov edi, edi
push edi
call ebx
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x47aa4a
cmp byte [eax], 0x30
jne 0x47aa4a
mov byte [esi], 0
inc esi
push eax
call ebx
mov edi, eax
jmp 0x47aa66
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x47aa64
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x47aa6b
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x47aa30
mov word [esi], 0
push dword [ebp - 0x1134]
push dword [ebp - 0x1020]
mov ecx, dword [ebp - 0x113c]
call fcn.00479090
mov esi, eax
jmp 0x47aa90
mov esi, 0xe
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x1130]
cmp dword [ebp - 0x1134], eax
je 0x47aab0
lea ecx, [ebp - 0x1134]
call fcn.0047cdb0
test esi, esi
je 0x47aabd
mov ecx, esi
call fcn.0043aba0
jmp 0x47aad9
mov esi, dword [ebp - 0x1140]
push dword [ebp - 0x1148]
mov ecx, esi
call fcn.0047a440
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x1164]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 0xc