Function at 0x513940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b271
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x225c
call fcn.005458d0
mov eax, dword [0x5d86f0]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0x2244], ecx
xor eax, eax
mov word [ebp - 0x2018], ax
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x225c], 0
lea ecx, [ebp - 0x2014]
push ecx
mov ecx, dword [ebp - 0x2244]
call fcn.00515630
mov dword [ebp - 0x222c], eax
cmp dword [ebp - 0x222c], 0
jge 0x5139c5
mov eax, dword [ebp - 0x222c]
jmp 0x513f17
lea edx, [ebp - 0x2018]
push edx
lea eax, [ebp - 0x2014]
push eax
call fcn.005185a0
add esp, 8
test eax, eax
jne 0x5139f4
push 0x20f
mov ecx, dword [ebp - 0x2244]
call fcn.00514cf0
jmp 0x513f17
mov ecx, dword [ebp - 0x2244]
call fcn.00517870
lea ecx, [ebp - 0x2014]
push ecx
mov ecx, dword [ebp - 0x2244]
call fcn.00515630
mov dword [ebp - 0x222c], eax
cmp dword [ebp - 0x222c], 0
jge 0x513a2b
mov eax, dword [ebp - 0x222c]
jmp 0x513f17
movzx edx, word [ebp - 0x2018]
mov dword [ebp - 0x2240], edx
cmp dword [ebp - 0x2240], 0x13
jg 0x513a69
cmp dword [ebp - 0x2240], 0x13
je 0x513c55
cmp dword [ebp - 0x2240], 8
je 0x513a7a
cmp dword [ebp - 0x2240], 0x11
je 0x513d19
jmp 0x513ecb
cmp dword [ebp - 0x2240], 0x4008
je 0x513a9a
jmp 0x513ecb
push 1
lea eax, [ebp - 0x2014]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00517720
mov dword [ebp - 0x2234], eax
jmp 0x513ecb
lea edx, [ebp - 0x2014]
push edx
call fcn.00544b90
add esp, 4
add eax, 2
mov dword [ebp - 0x2248], eax
push 0x104
lea ecx, [ebp - 0x2228]
call fcn.00518800
lea ecx, [ebp - 0x2228]
call fcn.00512d20
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2248]
push eax
lea ecx, [ebp - 0x2228]
call fcn.00513f70
jmp 0x513af2
mov dword [ebp - 4], 0
jmp 0x513b02
lea ecx, [ebp - 0x2228]
call fcn.0053b1d0
test eax, eax
je 0x513c34
lea ecx, [ebp - 0x2228]
call fcn.0053b1d0
mov dword [ebp - 0x2230], eax
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x2238], ecx
mov dword [ebp - 0x2248], 0
mov edx, dword [ebp - 0x2238]
movzx eax, word [edx]
test eax, eax
je 0x513bef
mov ecx, dword [ebp - 0x2238]
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2258], eax
mov edx, dword [ebp - 0x2238]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x513bab
mov ecx, dword [ebp - 0x2258]
movzx edx, word [ecx]
cmp edx, 0x30
jne 0x513bab
xor eax, eax
mov ecx, dword [ebp - 0x2230]
mov word [ecx], ax
mov edx, dword [ebp - 0x2230]
add edx, 2
mov dword [ebp - 0x2230], edx
mov eax, dword [ebp - 0x2258]
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov dword [ebp - 0x2238], eax
jmp 0x513bdb
mov ecx, dword [ebp - 0x2230]
mov edx, dword [ebp - 0x2238]
mov ax, word [edx]
mov word [ecx], ax
mov ecx, dword [ebp - 0x2230]
add ecx, 2
mov dword [ebp - 0x2230], ecx
mov edx, dword [ebp - 0x2238]
add edx, 2
mov dword [ebp - 0x2238], edx
mov eax, dword [ebp - 0x2248]
add eax, 1
mov dword [ebp - 0x2248], eax
jmp 0x513b3c
xor ecx, ecx
mov edx, dword [ebp - 0x2230]
mov word [edx], cx
mov eax, dword [ebp - 0x2230]
add eax, 2
mov dword [ebp - 0x2230], eax
xor ecx, ecx
mov edx, dword [ebp - 0x2230]
mov word [edx], cx
lea ecx, [ebp - 0x2228]
call fcn.0053b1d0
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00517640
mov dword [ebp - 0x2234], eax
jmp 0x513c3e
mov dword [ebp - 0x2234], 0xe
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2228]
call fcn.005131f0
jmp 0x513ecb
call fcn.00511130
mov dword [ebp - 0x226c], eax
push 4
lea ecx, [ebp - 0x201c]
call fcn.00518800
lea ecx, [ebp - 0x201c]
call fcn.00512d20
mov dword [ebp - 4], 3
push 0x400
lea ecx, [ebp - 0x2014]
push ecx
call fcn.004ed640
add esp, 8
mov dword [ebp - 0x2268], eax
lea edx, [ebp - 0x2020]
push edx
push 0
push 0
mov eax, dword [ebp - 0x2268]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov dword [ebp - 0x222c], eax
cmp dword [ebp - 0x222c], 0
jge 0x513ce9
mov ecx, dword [ebp - 0x222c]
mov dword [ebp - 0x2264], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x201c]
call fcn.00513150
mov eax, dword [ebp - 0x2264]
jmp 0x513f17
mov edx, dword [ebp - 0x2020]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00517610
mov dword [ebp - 0x2234], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x201c]
call fcn.00513150
jmp 0x513ecb
lea ecx, [ebp - 0x2014]
push ecx
call fcn.00544b90
add esp, 4
mov dword [ebp - 0x2250], eax
mov edx, dword [ebp - 0x2250]
and edx, 1
je 0x513d43
mov eax, 0x80004005
jmp 0x513f17
mov eax, dword [ebp - 0x2250]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x224c], eax
push 0x104
lea ecx, [ebp - 0x2124]
call fcn.00518800
lea ecx, [ebp - 0x2124]
call fcn.00512d20
mov dword [ebp - 4], 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x224c]
push eax
lea ecx, [ebp - 0x2124]
call fcn.00513f40
jmp 0x513d94
mov dword [ebp - 4], 4
jmp 0x513da4
lea ecx, [ebp - 0x2124]
call fcn.0053b1d0
test eax, eax
jne 0x513dda
mov dword [ebp - 0x2260], 0x80004005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2124]
call fcn.005131f0
mov eax, dword [ebp - 0x2260]
jmp 0x513f17
mov ecx, dword [ebp - 0x224c]
push ecx
push 0
lea ecx, [ebp - 0x2124]
call fcn.0053b1d0
push eax
call fcn.005443d0
add esp, 0xc
mov dword [ebp - 0x223c], 0
jmp 0x513e12
mov edx, dword [ebp - 0x223c]
add edx, 1
mov dword [ebp - 0x223c], edx
mov eax, dword [ebp - 0x223c]
cmp eax, dword [ebp - 0x2250]
jge 0x513e89
mov eax, dword [ebp - 0x223c]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea ecx, [ebp - 0x2124]
call fcn.0053b1d0
add eax, esi
mov dword [ebp - 0x2254], eax
mov ecx, dword [ebp - 0x223c]
and ecx, 1
mov esi, 1
sub esi, ecx
shl esi, 2
mov edx, dword [ebp - 0x223c]
movzx eax, word [ebp + edx*2 - 0x2014]
push eax
call fcn.00514620
add esp, 4
movzx edx, al
mov ecx, esi
shl edx, cl
mov eax, dword [ebp - 0x2254]
movzx ecx, byte [eax]
or ecx, edx
mov edx, dword [ebp - 0x2254]
mov byte [edx], cl
jmp 0x513e03
mov eax, dword [ebp - 0x224c]
push eax
lea ecx, [ebp - 0x2124]
call fcn.0053b1d0
push eax
push 3
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0053b1d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2234], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2124]
call fcn.005131f0
cmp dword [ebp - 0x2234], 0
je 0x513eef
mov dword [ebp - 0x225c], 0x204
mov edx, dword [ebp - 0x2234]
push edx
call fcn.004e02c0
add esp, 4
jmp 0x513f17
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x2244]
call fcn.00515630
mov dword [ebp - 0x222c], eax
cmp dword [ebp - 0x222c], 0
jge 0x513f15
mov eax, dword [ebp - 0x222c]
jmp 0x513f17
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0054546b
mov esp, ebp
pop ebp
ret 0xc