Function at 0x530940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x225c
call fcn.00613c30
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x222c], ecx
xor eax, eax
mov word [ebp - 0x2224], ax
mov dword [ebp - 0x221c], 0
mov dword [ebp - 0x2258], 0
lea ecx, [ebp - 0x2004]
push ecx
mov ecx, dword [ebp - 0x222c]
call fcn.005321f0
mov dword [ebp - 0x2210], eax
cmp dword [ebp - 0x2210], 0
jge 0x5309a6
mov eax, dword [ebp - 0x2210]
jmp 0x530e71
lea edx, [ebp - 0x2224]
push edx
lea eax, [ebp - 0x2004]
push eax
call fcn.00534f70
add esp, 8
test eax, eax
jne 0x5309d5
push 0x20f
mov ecx, dword [ebp - 0x222c]
call fcn.005319f0
jmp 0x530e71
mov ecx, dword [ebp - 0x222c]
call fcn.00534330
lea ecx, [ebp - 0x2004]
push ecx
mov ecx, dword [ebp - 0x222c]
call fcn.005321f0
mov dword [ebp - 0x2210], eax
cmp dword [ebp - 0x2210], 0
jge 0x530a0c
mov eax, dword [ebp - 0x2210]
jmp 0x530e71
movzx edx, word [ebp - 0x2224]
mov dword [ebp - 0x2228], edx
cmp dword [ebp - 0x2228], 0x13
jg 0x530a4a
cmp dword [ebp - 0x2228], 0x13
je 0x530bfc
cmp dword [ebp - 0x2228], 8
je 0x530a5b
cmp dword [ebp - 0x2228], 0x11
je 0x530ca9
jmp 0x530e25
cmp dword [ebp - 0x2228], 0x4008
je 0x530a7b
jmp 0x530e25
push 1
lea eax, [ebp - 0x2004]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00489050
mov dword [ebp - 0x221c], eax
jmp 0x530e25
lea edx, [ebp - 0x2004]
push edx
call fcn.00641e0e
add esp, 4
add eax, 2
mov dword [ebp - 0x2230], eax
lea ecx, [ebp - 0x220c]
call fcn.004134a0
mov eax, dword [ebp - 0x2230]
push eax
lea ecx, [ebp - 0x220c]
call fcn.00530ec0
lea ecx, [ebp - 0x220c]
call fcn.0040d3c0
test eax, eax
je 0x530be2
lea ecx, [ebp - 0x220c]
call fcn.0040d3c0
mov dword [ebp - 0x2214], eax
lea ecx, [ebp - 0x2004]
mov dword [ebp - 0x2218], ecx
mov dword [ebp - 0x2230], 0
mov edx, dword [ebp - 0x2218]
movzx eax, word [edx]
test eax, eax
je 0x530b9d
mov ecx, dword [ebp - 0x2218]
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2240], eax
mov edx, dword [ebp - 0x2218]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x530b59
mov ecx, dword [ebp - 0x2240]
movzx edx, word [ecx]
cmp edx, 0x30
jne 0x530b59
xor eax, eax
mov ecx, dword [ebp - 0x2214]
mov word [ecx], ax
mov edx, dword [ebp - 0x2214]
add edx, 2
mov dword [ebp - 0x2214], edx
mov eax, dword [ebp - 0x2240]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2218], eax
jmp 0x530b89
mov ecx, dword [ebp - 0x2214]
mov edx, dword [ebp - 0x2218]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0x2214]
add ecx, 2
mov dword [ebp - 0x2214], ecx
mov edx, dword [ebp - 0x2218]
add edx, 2
mov dword [ebp - 0x2218], edx
mov eax, dword [ebp - 0x2230]
add eax, 1
mov dword [ebp - 0x2230], eax
jmp 0x530aea
xor ecx, ecx
mov edx, dword [ebp - 0x2214]
mov word [edx], cx
mov eax, dword [ebp - 0x2214]
add eax, 2
mov dword [ebp - 0x2214], eax
xor ecx, ecx
mov edx, dword [ebp - 0x2214]
mov word [edx], cx
lea ecx, [ebp - 0x220c]
call fcn.0040d3c0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.005341d0
mov dword [ebp - 0x221c], eax
jmp 0x530bec
mov dword [ebp - 0x221c], 0xe
lea ecx, [ebp - 0x220c]
call fcn.0052f520
jmp 0x530e25
call fcn.00423af0
mov dword [ebp - 0x225c], eax
lea ecx, [ebp - 0x2234]
call fcn.004134a0
push 0x400
lea ecx, [ebp - 0x2004]
push ecx
call fcn.00412d10
add esp, 8
mov dword [ebp - 0x2248], eax
lea edx, [ebp - 0x2250]
push edx
push 0
push 0
mov eax, dword [ebp - 0x2248]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [ebp - 0x2210], eax
cmp dword [ebp - 0x2210], 0
jge 0x530c75
mov ecx, dword [ebp - 0x2210]
mov dword [ebp - 0x224c], ecx
lea ecx, [ebp - 0x2234]
call fcn.00503960
mov eax, dword [ebp - 0x224c]
jmp 0x530e71
mov edx, dword [ebp - 0x2250]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.005341a0
mov dword [ebp - 0x221c], eax
lea ecx, [ebp - 0x2234]
call fcn.00503960
jmp 0x530e25
lea ecx, [ebp - 0x2004]
push ecx
call fcn.00641e0e
add esp, 4
mov dword [ebp - 0x2238], eax
mov edx, dword [ebp - 0x2238]
and edx, 1
je 0x530cd3
mov eax, 0x80004005
jmp 0x530e71
mov eax, dword [ebp - 0x2238]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x223c], eax
lea ecx, [ebp - 0x2108]
call fcn.004134a0
mov eax, dword [ebp - 0x223c]
push eax
lea ecx, [ebp - 0x2108]
call fcn.00530e90
lea ecx, [ebp - 0x2108]
call fcn.0040d3c0
test eax, eax
jne 0x530d30
mov dword [ebp - 0x2254], 0x80004005
lea ecx, [ebp - 0x2108]
call fcn.0052f520
mov eax, dword [ebp - 0x2254]
jmp 0x530e71
mov ecx, dword [ebp - 0x223c]
push ecx
push 0
lea ecx, [ebp - 0x2108]
call fcn.0040d3c0
push eax
call fcn.0063a460
add esp, 0xc
mov dword [ebp - 0x2220], 0
jmp 0x530d68
mov edx, dword [ebp - 0x2220]
add edx, 1
mov dword [ebp - 0x2220], edx
mov eax, dword [ebp - 0x2220]
cmp eax, dword [ebp - 0x2238]
jge 0x530ddd
lea ecx, [ebp - 0x2108]
call fcn.0040d3c0
mov ecx, eax
mov eax, dword [ebp - 0x2220]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [ebp - 0x2244], ecx
mov edx, dword [ebp - 0x2220]
movzx eax, word [ebp + edx*2 - 0x2004]
push eax
call fcn.00531310
add esp, 4
movzx edx, al
mov eax, dword [ebp - 0x2220]
and eax, 1
mov ecx, 1
sub ecx, eax
shl ecx, 2
shl edx, cl
mov ecx, dword [ebp - 0x2244]
movzx eax, byte [ecx]
or eax, edx
mov ecx, dword [ebp - 0x2244]
mov byte [ecx], al
jmp 0x530d59
mov edx, dword [ebp - 0x223c]
push edx
lea ecx, [ebp - 0x2108]
call fcn.0040d3c0
push eax
push 3
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040d3c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x221c], eax
lea ecx, [ebp - 0x2108]
call fcn.0052f520
jmp 0x530e25
cmp dword [ebp - 0x221c], 0
je 0x530e49
mov dword [ebp - 0x2258], 0x204
mov ecx, dword [ebp - 0x221c]
push ecx
call fcn.00531240
add esp, 4
jmp 0x530e71
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x222c]
call fcn.005321f0
mov dword [ebp - 0x2210], eax
cmp dword [ebp - 0x2210], 0
jge 0x530e6f
mov eax, dword [ebp - 0x2210]
jmp 0x530e71
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret 0xc