Function at 0x10006e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1012800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebx + 0x70], 0
je 0x10006f07
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10006efe
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
test eax, eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.AutoLoginLogged
push dword [ebp - 0xc]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx + 0x6c], 0
je 0x10007246
cmp dword [ebx + 0x70], 0
je 0x10007246
lea ecx, [ebx + 0x4e]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006f21
sub ecx, edx
je 0x10007246
push esi
lea esi, [ebx + 0x38]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006f40
sub ecx, edx
je 0x10007245
lea ecx, [ebx + 0x43]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006f55
sub ecx, edx
je 0x10007245
mov ecx, 0x10128e4f
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006f70
sub ecx, edx
je 0x10007087
mov ecx, 0x10128e44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006f87
sub ecx, edx
je 0x10007087
mov ecx, 0x10128e5a
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006fa0
sub ecx, edx
je 0x10007087
cmp byte [ebx + 0x74], al
je 0x10007087
lea ecx, [ebx + 0x43]
lea eax, [ebx + 0xf]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006fe0
test dl, dl
je 0x10006fdc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006fe0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006fc0
xor eax, eax
jmp 0x10006fe5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10007087
lea eax, [ebx + 4]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10007010
test cl, cl
je 0x1000700c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10007010
add eax, 2
add esi, 2
test cl, cl
jne 0x10006ff0
xor eax, eax
jmp 0x10007015
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10007087
lea ecx, [ebx + 0x4e]
lea eax, [ebx + 0x1a]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10007040
test dl, dl
je 0x1000703c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10007040
add eax, 2
add ecx, 2
test dl, dl
jne 0x10007020
xor eax, eax
jmp 0x10007045
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10007087
lea ecx, [ebx + 0x59]
lea eax, [ebx + 0x25]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10007070
test dl, dl
je 0x1000706c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10007070
add eax, 2
add ecx, 2
test dl, dl
jne 0x10007050
xor eax, eax
jmp 0x10007075
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10007087
mov ax, word [ebx + 0x36]
cmp ax, word [ebx + 0x6a]
je 0x10007245
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000723c
xor esi, esi
nop dword [eax]
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
mov al, byte [ecx + 0x1011cb0c]
xor byte [ebx + esi + 0x43], al
inc esi
cmp esi, 0xb
jl 0x100070b0
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
push 0xb
lea eax, [ebx + 0x43]
push eax
push 1
push 0
push str.PassAccount
push dword [ebp - 0xc]
call edi
xor esi, esi
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
mov al, byte [ecx + 0x1011cb0c]
xor byte [ebx + esi + 0x4e], al
inc esi
cmp esi, 0xb
jl 0x10007111
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
lea esi, [ebx + 0x4e]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
push 0xb
push esi
push 1
push 0
push str.CharAccount
push dword [ebp - 0xc]
call edi
xor esi, esi
lea edi, [ebx + 0x59]
mov eax, 0xaaaaaaab
mov ecx, esi
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub ecx, eax
mov al, byte [ecx + 0x1011cb0c]
xor byte [edi + esi], al
inc esi
cmp esi, 0x11
jl 0x10007175
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0x11
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push str.ServerIpAddress
push dword [ebp - 0xc]
call edi
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
lea esi, [ebx + 0x6a]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 2
push esi
push 4
push 0
push str.ServerPORT
push dword [ebp - 0xc]
call edi
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREWebzenMuConfig
push getpeername
lea esi, [ebx + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0xb
push esi
push 1
push 0
push 0x1011cabc
push dword [ebp - 0xc]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1007ff35
mov esp, ebp
pop ebp
ret