Function at 0x1006ad70
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10129a80
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x1014300c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x10546558], 0
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0xa0], eax
jle 0x1006b423
mov esi, 2
nop dword [eax + eax]
push esi
lea eax, [ebp - 0x48]
push str.ID__d
push eax
call sym.Main.dll_sprintf
add esp, 0xc
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
push 0
push 0x101334f7
call fcn.1000c820
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006ae32
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000c820
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1006aeb9
cmp dword [ebp - 0x64], 0x10
lea ecx, [ebp - 0x78]
push edi
cmovae ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
push ecx
cmovae eax, dword [ebp - 0x60]
push 1
push 0
push eax
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006aeed
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006aee3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b50e
push edx
push ecx
call fcn.100db7d1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 0x10
jb 0x1006af3a
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006af30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b50e
push edx
push ecx
call fcn.100db7d1
add esp, 8
push esi
lea eax, [ebp - 0x48]
push str.PW__d
push eax
call sym.Main.dll_sprintf
add esp, 0xc
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
push 0
push 0x101334f7
call fcn.1000c820
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006af90
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000c820
mov edi, dword [ebp - 0x68]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1006b017
cmp dword [ebp - 0x64], 0x10
lea ecx, [ebp - 0x78]
push edi
cmovae ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
push ecx
cmovae eax, dword [ebp - 0x60]
push 1
push 0
push eax
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x98]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006b04b
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b041
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b50e
push edx
push ecx
call fcn.100db7d1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 0x10
jb 0x1006b098
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b08e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b50e
push edx
push ecx
call fcn.100db7d1
add esp, 8
inc esi
cmp esi, 5
jle 0x1006ade0
mov esi, dword [0x10546558]
mov dword [ebp - 0x9c], 0
test esi, esi
jle 0x1006b41d
mov eax, 2
mov edi, 0x1054655c
mov dword [ebp - 0x98], eax
nop word [eax + eax]
dec eax
cmp eax, 5
jge 0x1006b41d
mov eax, dword [ebp - 0xa8]
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006b102
test dl, dl
je 0x1006b0fe
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006b102
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006b0e2
xor eax, eax
jmp 0x1006b107
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006b3ff
push dword [ebp - 0x98]
lea eax, [ebp - 0x48]
push str.ID__d
push eax
call sym.Main.dll_sprintf
mov ecx, edi
mov dword [ebp - 0x68], 0
add esp, 0xc
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006b140
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x78]
call fcn.1000c820
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006b172
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000c820
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1006b1f9
cmp dword [ebp - 0x64], 0x10
lea ecx, [ebp - 0x78]
push esi
cmovae ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
push ecx
cmovae eax, dword [ebp - 0x60]
push 1
push 0
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006b22d
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b223
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b50e
push edx
push ecx
call fcn.100db7d1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 0x10
jb 0x1006b27a
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b270
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b50e
push edx
push ecx
call fcn.100db7d1
add esp, 8
push dword [ebp - 0x98]
lea eax, [ebp - 0x48]
push str.PW__d
push eax
call sym.Main.dll_sprintf
lea edx, [edi + 0xb]
mov dword [ebp - 0x68], 0
mov ecx, edx
mov dword [ebp - 0x64], 0xf
add esp, 0xc
mov byte [ebp - 0x78], 0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006b2b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x78]
call fcn.1000c820
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006b2e2
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000c820
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1006b369
cmp dword [ebp - 0x64], 0x10
lea ecx, [ebp - 0x78]
push esi
cmovae ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
push ecx
cmovae eax, dword [ebp - 0x60]
push 1
push 0
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006b39d
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b393
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b50e
push edx
push ecx
call fcn.100db7d1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 0x10
jb 0x1006b3ea
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b3e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b50e
push edx
push ecx
call fcn.100db7d1
add esp, 8
mov eax, dword [ebp - 0x98]
mov esi, dword [0x10546558]
inc eax
mov dword [ebp - 0x98], eax
jmp 0x1006b405
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
add edi, 0x1c
inc ecx
mov dword [ebp - 0x9c], ecx
cmp ecx, esi
jl 0x1006b0d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [ebp - 0xa8]
mov ecx, esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006b440
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x78]
call fcn.1000c820
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x60]
push 2
push 0x10137050
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.1000c820
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call edi
test eax, eax
jne 0x1006b4e8
cmp dword [ebp - 0x64], 0x10
lea ecx, [ebp - 0x78]
push esi
cmovae ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
push ecx
cmovae eax, dword [ebp - 0x60]
push 1
push 0
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006b51e
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b514
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b514
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100db7d1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 0x10
jb 0x1006b56d
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b563
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b563
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100db7d1
add esp, 8
mov esi, dword [ebp - 0xa0]
mov ecx, esi
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006b590
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x78]
call fcn.1000c820
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x60]
push 2
push 0x10137054
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.1000c820
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call edi
test eax, eax
jne 0x1006b63c
cmp dword [ebp - 0x64], 0x10
lea ecx, [ebp - 0x78]
push esi
cmovae ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmovae eax, dword [ebp - 0x60]
push ecx
push 1
push 0
push eax
push dword [ebp - 0x94]
call esi
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1006b642
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006b678
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b66e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b66e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100db7d1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp edx, 0x10
jb 0x1006b6c7
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b6bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b6bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100db7d1
add esp, 8
push 8
push str.SavePass
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
call fcn.1000c820
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa0], 1
push eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call edi
test eax, eax
jne 0x1006b760
cmp dword [ebp - 0x7c], 0x10
lea ecx, [ebp - 0xa0]
push 4
push ecx
push 4
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push 0
push eax
push dword [ebp - 0x94]
call esi
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x7c]
cmp edx, 0x10
jb 0x1006b799
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b78f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b78f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100db7d1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100db7c0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc