Function at 0x40610f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x211c
call fcn.0047e270
mov eax, dword [0x4c4cc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x2114], eax
mov eax, dword [ebp + 0xc]
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x211c], eax
xor ebx, ebx
lea eax, [ebp - 0x2004]
mov dword [ebp - 0x2118], esi
mov dword [ebp - 0x2110], edi
mov dword [ebp - 0x210c], ebx
call fcn.004067bc
cmp eax, ebx
jl 0x40648f
lea eax, [ebp - 0x210c]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.0040604b
pop ecx
pop ecx
test eax, eax
jne 0x406189
mov eax, 0x80020009
jmp 0x40648f
call fcn.00406e4c
lea eax, [ebp - 0x2004]
mov ecx, esi
call fcn.004067bc
cmp eax, ebx
jl 0x40648f
movzx eax, word [ebp - 0x210c]
sub eax, 8
je 0x40643f
sub eax, 9
je 0x406310
dec eax
dec eax
je 0x4062de
sub eax, 0x3ff5
jne 0x406478
lea eax, [ebp - 0x2004]
push eax
call dword [0x4a6060]
add eax, 2
push 2
push eax
mov dword [ebp - 0x2108], ebx
call fcn.004060ea
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x406205
push eax
lea eax, [ebp - 0x2108]
push eax
call fcn.00405b41
jmp 0x406211
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
mov edi, dword [ebp - 0x2108]
cmp edi, ebx
je 0x4062b9
lea esi, [ebp - 0x2004]
cmp word [ebp - 0x2004], bx
je 0x406265
mov ebx, dword [0x4a6320]
push esi
call ebx
movzx ecx, word [esi]
cmp ecx, 0x5c
jne 0x406254
cmp word [eax], 0x30
jne 0x406254
xor ecx, ecx
mov word [edi], cx
push eax
add edi, 2
call ebx
mov esi, eax
jmp 0x40625d
mov word [edi], cx
add edi, 2
add esi, 2
cmp word [esi], 0
jne 0x406234
xor ebx, ebx
xor eax, eax
mov word [edi], ax
mov word [edi + 2], ax
mov edi, dword [ebp - 0x2108]
mov dword [ebp - 0x210c], edi
cmp edi, ebx
jne 0x406282
push 0xd
jmp 0x4062bb
xor esi, esi
push edi
call dword [0x4a6060]
inc eax
lea edi, [edi + eax*2]
lea esi, [esi + eax*2]
cmp eax, 1
jne 0x406284
mov eax, dword [ebp - 0x2110]
push esi
push dword [ebp - 0x210c]
push 7
push ebx
push dword [ebp - 0x2114]
push dword [eax]
call dword [0x4a6010]
mov esi, eax
jmp 0x4062bc
push 0xe
pop esi
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x40646b
lea eax, [ebp - 0x2108]
call fcn.004060e1
jmp 0x40646b
lea eax, [ebp - 0x2110]
push eax
push ebx
push ebx
lea eax, [ebp - 0x2004]
push eax
call dword [0x4a6288]
mov eax, dword [ebp - 0x2110]
mov dword [ebp - 0x210c], eax
push 4
lea eax, [ebp - 0x210c]
push eax
push 4
jmp 0x40645a
lea eax, [ebp - 0x2004]
push eax
call dword [0x4a6060]
mov dword [ebp - 0x210c], eax
test al, 1
je 0x406331
mov eax, 0x80004005
jmp 0x40648f
cdq
sub eax, edx
mov edi, eax
sar edi, 1
push 1
push edi
mov dword [ebp - 0x2108], ebx
call fcn.004060ea
pop ecx
pop ecx
cmp eax, 0x100
jbe 0x40635e
push eax
lea eax, [ebp - 0x2108]
push eax
call fcn.00405b41
jmp 0x40636a
lea eax, [ebp - 0x2104]
mov dword [ebp - 0x2108], eax
cmp dword [ebp - 0x2108], ebx
jne 0x406389
lea eax, [ebp - 0x2104]
test eax, eax
je 0x406327
lea eax, [ebp - 0x2108]
call fcn.004060e1
jmp 0x406327
push edi
push ebx
push dword [ebp - 0x2108]
call fcn.0047a8e0
add esp, 0xc
xor esi, esi
cmp dword [ebp - 0x210c], ebx
jle 0x406403
movzx ecx, word [ebp + esi*2 - 0x2004]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x2108]
mov edx, ecx
cmp edx, 0x30
jl 0x4063e5
cmp edx, 0x39
jle 0x4063e0
cmp edx, 0x40
jle 0x4063e5
cmp edx, 0x46
jle 0x4063db
add edx, 0xffffff9f
cmp edx, 5
ja 0x4063e5
lea edx, [ecx - 0x57]
jmp 0x4063e7
lea edx, [ecx - 0x37]
jmp 0x4063e7
lea edx, [ecx - 0x30]
jmp 0x4063e7
xor dl, dl
mov ebx, esi
and ebx, 1
shl ebx, 2
push 4
pop ecx
sub ecx, ebx
shl dl, cl
or byte [eax], dl
inc esi
cmp esi, dword [ebp - 0x210c]
jl 0x4063a3
xor ebx, ebx
mov eax, dword [ebp - 0x2110]
mov eax, dword [eax]
push edi
push dword [ebp - 0x2108]
push 3
push ebx
push dword [ebp - 0x2114]
push eax
call dword [0x4a6010]
mov esi, eax
lea eax, [ebp - 0x2104]
cmp dword [ebp - 0x2108], eax
je 0x40646b
lea eax, [ebp - 0x2108]
call fcn.004060e1
jmp 0x40646b
lea eax, [ebp - 0x2004]
push eax
call dword [0x4a6060]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push ebx
push dword [ebp - 0x2114]
push dword [edi]
call dword [0x4a6010]
mov esi, eax
cmp esi, ebx
je 0x406478
mov eax, esi
call fcn.004067ad
jmp 0x40648f
mov eax, dword [ebp - 0x211c]
mov ecx, dword [ebp - 0x2118]
call fcn.004067bc
cmp eax, ebx
jl 0x40648f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00478b4c
leave
ret 8