Function at 0x1006a2a0
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 0x10125a32
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x1013e00c]
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 [0x105413a8], 0
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x94], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x54], eax
jle 0x1006a92c
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 - 0x80], 0
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
push 0
push 0x1012f457
call fcn.1000b650
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x68], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006a368
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.1000b650
mov edi, dword [ebp - 0x80]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 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 0x1006a3e6
cmp dword [ebp - 0x7c], 0x10
lea ecx, [ebp - 0x90]
push edi
cmovae ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
push ecx
cmovae eax, dword [ebp - 0x78]
push 1
push 0
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x1006a41a
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a410
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006aa18
push edx
push ecx
call fcn.100d7723
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp edx, 0x10
jb 0x1006a46a
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a460
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006aa18
push edx
push ecx
call fcn.100d7723
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 - 0x80], 0
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
push 0
push 0x1012f457
call fcn.1000b650
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x68], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006a4c2
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.1000b650
mov edi, dword [ebp - 0x80]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 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 0x1006a540
cmp dword [ebp - 0x7c], 0x10
lea ecx, [ebp - 0x90]
push edi
cmovae ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
push ecx
cmovae eax, dword [ebp - 0x78]
push 1
push 0
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x1006a574
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a56a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006aa18
push edx
push ecx
call fcn.100d7723
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp edx, 0x10
jb 0x1006a5c4
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a5ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006aa18
push edx
push ecx
call fcn.100d7723
add esp, 8
inc esi
cmp esi, 5
jle 0x1006a310
mov esi, dword [0x105413a8]
mov dword [ebp - 0x50], 0
test esi, esi
jle 0x1006a926
mov eax, 2
mov edi, 0x105413ac
mov dword [ebp - 0x60], eax
dec eax
cmp eax, 5
jge 0x1006a926
mov eax, dword [ebp - 0x94]
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006a622
test dl, dl
je 0x1006a61e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006a622
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006a602
xor eax, eax
jmp 0x1006a627
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006a911
push dword [ebp - 0x60]
lea eax, [ebp - 0x48]
push str.ID__d
push eax
call sym.Main.dll_sprintf
mov ecx, edi
mov dword [ebp - 0x80], 0
add esp, 0xc
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006a660
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x90]
call fcn.1000b650
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x68], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006a695
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.1000b650
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 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 0x1006a713
cmp dword [ebp - 0x7c], 0x10
lea ecx, [ebp - 0x90]
push esi
cmovae ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
push ecx
cmovae eax, dword [ebp - 0x78]
push 1
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x1006a747
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a73d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006aa18
push edx
push ecx
call fcn.100d7723
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp edx, 0x10
jb 0x1006a797
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a78d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006aa18
push edx
push ecx
call fcn.100d7723
add esp, 8
push dword [ebp - 0x60]
lea eax, [ebp - 0x48]
push str.PW__d
push eax
call sym.Main.dll_sprintf
lea edx, [edi + 0xb]
mov dword [ebp - 0x80], 0
mov ecx, edx
mov dword [ebp - 0x7c], 0xf
add esp, 0xc
mov byte [ebp - 0x90], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006a7c8
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.1000b650
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x68], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006a800
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.1000b650
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 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 0x1006a87e
cmp dword [ebp - 0x7c], 0x10
lea ecx, [ebp - 0x90]
push esi
cmovae ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
push ecx
cmovae eax, dword [ebp - 0x78]
push 1
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x1006a8b2
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a8a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006aa18
push edx
push ecx
call fcn.100d7723
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp edx, 0x10
jb 0x1006a902
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a8f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006aa18
push edx
push ecx
call fcn.100d7723
add esp, 8
mov eax, dword [ebp - 0x60]
mov esi, dword [0x105413a8]
inc eax
mov dword [ebp - 0x60], eax
jmp 0x1006a914
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x50]
add edi, 0x1c
inc ecx
mov dword [ebp - 0x50], ecx
cmp ecx, esi
jl 0x1006a5f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [ebp - 0x94]
mov ecx, esi
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006a950
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x90]
call fcn.1000b650
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x78]
push 2
push 0x10132f38
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.1000b650
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call edi
test eax, eax
jne 0x1006a9f2
cmp dword [ebp - 0x7c], 0x10
lea ecx, [ebp - 0x90]
push esi
cmovae ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
push ecx
cmovae eax, dword [ebp - 0x78]
push 1
push 0
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x1006aa28
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006aa1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006aa1e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d7723
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp edx, 0x10
jb 0x1006aa7a
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006aa70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006aa70
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d7723
add esp, 8
mov esi, dword [ebp - 0x54]
mov ecx, esi
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006aa97
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x90]
call fcn.1000b650
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x78]
push 2
push 0x10132f3c
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.1000b650
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call edi
test eax, eax
jne 0x1006ab3d
cmp dword [ebp - 0x7c], 0x10
lea ecx, [ebp - 0x90]
push esi
cmovae ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmovae eax, dword [ebp - 0x78]
push ecx
push 1
push 0
push eax
push dword [ebp - 0x4c]
call esi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1006ab43
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x64]
cmp edx, 0x10
jb 0x1006ab79
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006ab6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006ab6f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d7723
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp edx, 0x10
jb 0x1006abcb
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006abc1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006abc1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d7723
add esp, 8
push 8
push str.SavePass
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
call fcn.1000b650
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push connect
call edi
test eax, eax
jne 0x1006ac58
cmp dword [ebp - 0x98], 0x10
lea ecx, [ebp - 0x54]
push 4
push ecx
push 4
lea eax, [ebp - 0xac]
cmovae eax, dword [ebp - 0xac]
push 0
push eax
push dword [ebp - 0x4c]
call esi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x98]
cmp edx, 0x10
jb 0x1006ac94
mov ecx, dword [ebp - 0xac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006ac8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006ac8a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d7723
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.100d7712
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc