Function at 0x4a7d52
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1108]
mov eax, 0x1108
call fcn.004b9bb0
push 0xffffffffffffffff
push 0x4d00d3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x517930]
xor eax, ebp
mov dword [ebp + 0x1104], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0x1118]
xor ebx, ebx
mov edi, dword [ebp + 0x1110]
mov esi, dword [ebp + 0x1114]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 0x104]
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
call fcn.004a858b
test eax, eax
js 0x4a81a1
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0x104]
call fcn.004a7b88
test eax, eax
jne 0x4a7de8
mov eax, 0x80020009
jmp 0x4a81a1
mov ecx, dword [ebp - 0x24]
call fcn.004a8c47
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 0x104]
push eax
call fcn.004a858b
test eax, eax
js 0x4a81a1
movzx eax, word [ebp - 0x14]
sub eax, 8
je 0x4a8155
sub eax, 9
je 0x4a802a
dec eax
dec eax
je 0x4a7f3f
sub eax, 0x3ff5
jne 0x4a818d
lea ecx, [ebp + 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a7e39
sub ecx, edx
mov dword [ebp], ebx
add ecx, 2
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
call fcn.004a7d39
cmp eax, 0x100
jbe 0x4a7e66
push eax
lea ecx, [ebp]
call fcn.004a75b8
jmp 0x4a7e7c
lea esi, [ebp + 4]
mov dword [ebp], esi
jmp 0x4a7e7f
mov esi, dword [ebp]
test esi, esi
je 0x4a7f24
cmp byte [ebp + 0x104], 0
lea edi, [ebp + 0x104]
je 0x4a7ed8
push edi
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [edi]
cmp cl, 0x5c
jne 0x4a7eb7
cmp byte [eax], 0x30
jne 0x4a7eb7
mov byte [esi], bl
inc esi
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov edi, eax
jmp 0x4a7ed3
mov byte [esi], cl
movzx eax, byte [edi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x4a7ed1
inc esi
inc edi
mov al, byte [edi]
test al, al
je 0x4a7ed8
mov byte [esi], al
inc esi
inc edi
cmp byte [edi], 0
jne 0x4a7e96
mov word [esi], 0
mov esi, dword [ebp]
test esi, esi
jne 0x4a7ee8
push 0xd
jmp 0x4a7f26
mov edx, ebx
mov edi, esi
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a7ef4
sub ecx, dword [ebp - 0x18]
lea eax, [ecx + 1]
add edi, eax
add edx, eax
cmp eax, 1
jne 0x4a7eec
mov eax, dword [ebp - 0x20]
push edx
push esi
push 7
push ebx
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp]
mov edi, eax
jmp 0x4a7f27
push 0xe
pop edi
lea eax, [ebp + 4]
cmp esi, eax
je 0x4a8180
lea ecx, [ebp]
call fcn.004a758c
jmp 0x4a8180
mov esi, ebx
mov dword [ebp - 0x18], esi
lea edx, [ebp + 0x104]
mov dword [ebp - 4], 3
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4a7f54
sub edx, ecx
inc edx
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edx
call fcn.004a7c37
pop ecx
test eax, eax
js 0x4a7ffa
mov edi, dword [ebp - 0x14]
cmp edi, 0x400
jg 0x4a7f97
mov ecx, edi
call fcn.004a7c97
test al, al
je 0x4a7f97
mov eax, edi
call fcn.004c2e70
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x4a7fa3
push edi
lea ecx, [ebp - 0x18]
call fcn.004a7cfe
mov esi, dword [ebp - 0x18]
push 3
shr edi, 1
lea edx, [ebp + 0x104]
push edi
mov ecx, eax
call fcn.004a7c66
test eax, eax
je 0x4a7ff6
lea ecx, [ebp - 0x14]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov edi, eax
test edi, edi
js 0x4a800d
mov eax, dword [ebp - 0x14]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push 4
push ebx
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
jmp 0x4a8021
push esi
mov esi, dword [esi]
call fcn.004b605a
pop ecx
test esi, esi
jne 0x4a7fed
mov eax, 0x8007000e
jmp 0x4a81a1
push esi
mov esi, dword [esi]
call fcn.004b605a
pop ecx
test esi, esi
jne 0x4a8004
mov eax, edi
jmp 0x4a81a1
push esi
mov esi, dword [esi]
call fcn.004b605a
pop ecx
test esi, esi
jne 0x4a8018
jmp 0x4a8180
lea ecx, [ebp + 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a8033
sub ecx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
test cl, 1
je 0x4a8051
mov eax, 0x80004005
jmp 0x4a81a1
mov eax, ecx
mov dword [ebp], ebx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 4
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.004a7d39
cmp eax, 0x100
jbe 0x4a8087
push eax
lea ecx, [ebp]
call fcn.004a75b8
mov eax, dword [ebp]
jmp 0x4a808d
lea eax, [ebp + 4]
mov dword [ebp], eax
mov esi, dword [ebp - 0x2c]
jmp 0x4a80a9
test eax, eax
jne 0x4a80be
lea eax, [ebp + 4]
test eax, eax
je 0x4a8047
lea ecx, [ebp]
call fcn.004a758c
jmp 0x4a8047
push edi
push ebx
push eax
call fcn.004b95d0
add esp, 0xc
test esi, esi
jle 0x4a812c
mov edi, ebx
mov eax, edi
cdq
sub eax, edx
mov dl, byte [ebp + edi + 0x104]
sar eax, 1
add eax, dword [ebp]
mov dword [ebp - 0x28], eax
cmp dl, 0x30
jl 0x4a810e
cmp dl, 0x39
jle 0x4a8109
cmp dl, 0x40
jle 0x4a810e
cmp dl, 0x46
jle 0x4a8104
mov al, dl
sub al, 0x61
cmp al, 5
ja 0x4a810e
sub dl, 0x57
jmp 0x4a8110
sub dl, 0x37
jmp 0x4a8110
sub dl, 0x30
jmp 0x4a8110
mov dl, bl
mov eax, edi
and eax, 1
shl eax, 2
push 4
pop ecx
sub ecx, eax
mov eax, dword [ebp - 0x28]
shl dl, cl
or byte [eax], dl
inc edi
cmp edi, esi
jl 0x4a80cf
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push edi
push dword [ebp]
push 3
push ebx
push dword [ebp - 0x1c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4a8180
lea ecx, [ebp]
call fcn.004a758c
jmp 0x4a8180
lea ecx, [ebp + 0x104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a815e
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp + 0x104]
push eax
push 1
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
je 0x4a818d
mov ecx, edi
call fcn.004a857d
jmp 0x4a81a1
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
call fcn.004a858b
xor ecx, ecx
test eax, eax
cmovs ecx, eax
mov eax, ecx
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1104]
xor ecx, ebp
call fcn.004b5580
lea esp, [ebp + 0x1108]
pop ebp
ret 0xc