Function at 0x1006ace0
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 0x1012c1e0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x1014600c]
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 [0x105499b8], 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 0x1006b393
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 0x10136507
call fcn.1000c7d0
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 0x1006ada2
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000c7d0
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 0x1006ae29
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 0x1006ae5d
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006ae53
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b47e
push edx
push ecx
call fcn.100ddf04
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 0x1006aeaa
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006aea0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b47e
push edx
push ecx
call fcn.100ddf04
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 0x10136507
call fcn.1000c7d0
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 0x1006af00
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000c7d0
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 0x1006af87
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 0x1006afbb
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006afb1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b47e
push edx
push ecx
call fcn.100ddf04
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 0x1006b008
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006affe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b47e
push edx
push ecx
call fcn.100ddf04
add esp, 8
inc esi
cmp esi, 5
jle 0x1006ad50
mov esi, dword [0x105499b8]
mov dword [ebp - 0x9c], 0
test esi, esi
jle 0x1006b38d
mov eax, 2
mov edi, 0x105499bc
mov dword [ebp - 0x98], eax
nop word [eax + eax]
dec eax
cmp eax, 5
jge 0x1006b38d
mov eax, dword [ebp - 0xa8]
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006b072
test dl, dl
je 0x1006b06e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006b072
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006b052
xor eax, eax
jmp 0x1006b077
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006b36f
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 0x1006b0b0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x78]
call fcn.1000c7d0
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 0x1006b0e2
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000c7d0
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 0x1006b169
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 0x1006b19d
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b193
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b47e
push edx
push ecx
call fcn.100ddf04
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 0x1006b1ea
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b1e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b47e
push edx
push ecx
call fcn.100ddf04
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 0x1006b220
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x78]
call fcn.1000c7d0
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 0x1006b252
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000c7d0
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 0x1006b2d9
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 0x1006b30d
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b303
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b47e
push edx
push ecx
call fcn.100ddf04
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 0x1006b35a
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b350
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006b47e
push edx
push ecx
call fcn.100ddf04
add esp, 8
mov eax, dword [ebp - 0x98]
mov esi, dword [0x105499b8]
inc eax
mov dword [ebp - 0x98], eax
jmp 0x1006b375
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
add edi, 0x1c
inc ecx
mov dword [ebp - 0x9c], ecx
cmp ecx, esi
jl 0x1006b040
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 0x1006b3b0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x78]
call fcn.1000c7d0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x60]
push 2
push 0x10139ee0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.1000c7d0
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 0x1006b458
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 0x1006b48e
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b484
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b484
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100ddf04
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 0x1006b4dd
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b4d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b4d3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100ddf04
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 0x1006b500
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x78]
call fcn.1000c7d0
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x60]
push 2
push 0x10139ee4
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.1000c7d0
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 0x1006b5ac
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 0x1006b5b2
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006b5e8
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b5de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b5de
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100ddf04
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 0x1006b637
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b62d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b62d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100ddf04
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.1000c7d0
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 0x1006b6d0
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 0x1006b709
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b6ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b6ff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100ddf04
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.100ddef3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc