Function at 0x100698c0
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 0x101280b0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x1014200c]
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 [0x10545548], 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 0x10069f73
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 0x101324e7
call fcn.1000b550
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 0x10069982
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000b550
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 0x10069a09
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 0x10069a3d
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10069a33
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006a05e
push edx
push ecx
call fcn.100d9e0f
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 0x10069a8a
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10069a80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006a05e
push edx
push ecx
call fcn.100d9e0f
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 0x101324e7
call fcn.1000b550
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 0x10069ae0
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000b550
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 0x10069b67
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 0x10069b9b
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10069b91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006a05e
push edx
push ecx
call fcn.100d9e0f
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 0x10069be8
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10069bde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006a05e
push edx
push ecx
call fcn.100d9e0f
add esp, 8
inc esi
cmp esi, 5
jle 0x10069930
mov esi, dword [0x10545548]
mov dword [ebp - 0x9c], 0
test esi, esi
jle 0x10069f6d
mov eax, 2
mov edi, 0x1054554c
mov dword [ebp - 0x98], eax
nop word [eax + eax]
dec eax
cmp eax, 5
jge 0x10069f6d
mov eax, dword [ebp - 0xa8]
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10069c52
test dl, dl
je 0x10069c4e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10069c52
add eax, 2
add ecx, 2
test dl, dl
jne 0x10069c32
xor eax, eax
jmp 0x10069c57
sbb eax, eax
or eax, 1
test eax, eax
je 0x10069f4f
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 0x10069c90
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x78]
call fcn.1000b550
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 0x10069cc2
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000b550
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 0x10069d49
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 0x10069d7d
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10069d73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006a05e
push edx
push ecx
call fcn.100d9e0f
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 0x10069dca
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10069dc0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006a05e
push edx
push ecx
call fcn.100d9e0f
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 0x10069e00
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x78]
call fcn.1000b550
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 0x10069e32
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.1000b550
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 0x10069eb9
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 0x10069eed
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10069ee3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006a05e
push edx
push ecx
call fcn.100d9e0f
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 0x10069f3a
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10069f30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006a05e
push edx
push ecx
call fcn.100d9e0f
add esp, 8
mov eax, dword [ebp - 0x98]
mov esi, dword [0x10545548]
inc eax
mov dword [ebp - 0x98], eax
jmp 0x10069f55
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
add edi, 0x1c
inc ecx
mov dword [ebp - 0x9c], ecx
cmp ecx, esi
jl 0x10069c20
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 0x10069f90
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x78]
call fcn.1000b550
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x60]
push 2
push 0x10136040
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.1000b550
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 0x1006a038
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 0x1006a06e
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a064
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006a064
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d9e0f
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 0x1006a0bd
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a0b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006a0b3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d9e0f
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 0x1006a0e0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x78]
call fcn.1000b550
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x60]
push 2
push 0x10136044
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.1000b550
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 0x1006a18c
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 0x1006a192
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x4c]
cmp edx, 0x10
jb 0x1006a1c8
mov ecx, dword [ebp - 0x60]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a1be
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006a1be
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d9e0f
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 0x1006a217
mov ecx, dword [ebp - 0x78]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a20d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006a20d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d9e0f
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.1000b550
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 0x1006a2b0
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 0x1006a2e9
mov ecx, dword [ebp - 0x90]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006a2df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006a2df
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100d9e0f
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.100d9dfe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc