Function at 0x10001810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1d70
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x100d9018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa8], ecx
cmp dword [0x103ac508], ebx
jle 0x10001bfe
mov dword [ebp - 0xa0], 2
mov dword [ebp - 0xa4], 4
nop
mov edx, dword [ebp - 0xa0]
push edx
lea eax, [ebp - 0x44]
push str.ID__d
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
xor edi, edi
mov eax, 0x100c594e
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
call fcn.10007140
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
lea edx, [eax + 1]
jmp 0x100018c0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100018c0
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x44]
lea esi, [ebp - 0x60]
call fcn.10007140
lea eax, [ebp - 0x7c]
mov edi, esi
call fcn.10001720
cmp dword [ebp - 0x4c], 0x10
jb 0x100018f3
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
jb 0x1000191a
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x44]
push str.PW__d
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
xor edi, edi
mov eax, 0x100c594e
lea esi, [ebp - 0x7c]
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
call fcn.10007140
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001970
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x44]
lea esi, [ebp - 0x60]
call fcn.10007140
lea eax, [ebp - 0x7c]
mov edi, esi
call fcn.10001720
cmp dword [ebp - 0x4c], 0x10
jb 0x100019a3
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
jb 0x100019ca
mov eax, dword [ebp - 0x7c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
add dword [ebp - 0xa0], eax
sub dword [ebp - 0xa4], eax
jne 0x10001870
mov dword [ebp - 0xac], ebx
cmp dword [0x103ac508], ebx
jle 0x10001bfe
mov edx, 2
mov edi, 0x103ac50c
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xa4], edi
lea esp, [esp]
lea ecx, [edx - 1]
cmp ecx, 5
jge 0x10001bfe
mov eax, dword [ebp - 0x9c]
mov esi, edi
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10001a44
cmp cl, bl
je 0x10001a40
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10001a44
add eax, 2
add esi, 2
cmp cl, bl
jne 0x10001a24
xor eax, eax
jmp 0x10001a49
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10001bdc
push edx
lea edx, [ebp - 0x44]
push str.ID__d
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, edi
add esp, 0xc
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001a76
sub eax, esi
mov edi, eax
mov eax, dword [ebp - 0xa4]
lea esi, [ebp - 0x7c]
call fcn.10007140
mov dword [ebp - 4], 2
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001ab0
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x44]
lea esi, [ebp - 0x60]
call fcn.10007140
lea eax, [ebp - 0x7c]
mov edi, esi
call fcn.10001720
cmp dword [ebp - 0x4c], 0x10
jb 0x10001ae3
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
jb 0x10001b0b
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edx, dword [ebp - 0xa0]
push edx
lea eax, [ebp - 0x44]
push str.PW__d
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
mov dword [ebp - 0x68], esi
mov esi, dword [ebp - 0xa4]
lea ecx, [esi + 0xb]
add esp, 0xc
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
lea edi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x10001b40
sub ecx, edi
lea eax, [esi + 0xb]
mov edi, ecx
lea esi, [ebp - 0x7c]
call fcn.10007140
mov dword [ebp - 4], 3
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001b70
sub eax, edx
mov edi, eax
lea eax, [ebp - 0x44]
lea esi, [ebp - 0x60]
call fcn.10007140
lea eax, [ebp - 0x7c]
mov edi, esi
call fcn.10001720
cmp dword [ebp - 0x4c], 0x10
jb 0x10001ba3
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
jb 0x10001bca
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
inc dword [ebp - 0xa0]
mov edx, dword [ebp - 0xa0]
mov edi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xac]
inc eax
add edi, 0x1c
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa4], edi
cmp eax, dword [0x103ac508]
jl 0x10001a10
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001c14
sub eax, esi
mov edi, eax
mov eax, dword [ebp - 0x9c]
lea esi, [ebp - 0x7c]
call fcn.10007140
mov dword [ebp - 4], 4
mov edi, 2
mov eax, 0x100c5934
lea esi, [ebp - 0x60]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
call fcn.10007140
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x9c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREWebzenMuConfig
push closesocket
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, 0x10
test eax, eax
jne 0x10001cc2
mov ecx, dword [ebp - 0x7c]
cmp dword [ebp - 0x68], edi
jae 0x10001c97
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], edi
jae 0x10001ca2
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 0x9c]
push esi
push ecx
push 1
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x4c], edi
jb 0x10001cd4
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
cmp dword [ebp - 0x68], edi
jb 0x10001cfb
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001d10
sub eax, esi
mov edi, eax
mov eax, dword [ebp - 0xa8]
lea esi, [ebp - 0x7c]
call fcn.10007140
mov dword [ebp - 4], 5
mov edi, 2
mov eax, 0x100c5938
lea esi, [ebp - 0x60]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
call fcn.10007140
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x9c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREWebzenMuConfig
push closesocket
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, 0x10
test eax, eax
jne 0x10001dbe
mov ecx, dword [ebp - 0x7c]
cmp dword [ebp - 0x68], edi
jae 0x10001d93
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x4c], edi
jae 0x10001d9e
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 0x9c]
push esi
push ecx
push 1
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x4c], edi
jb 0x10001dd0
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
cmp dword [ebp - 0x68], edi
jb 0x10001df6
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 8
mov eax, str.SavePass
lea esi, [ebp - 0x98]
mov dword [ebp - 0x84], 0xf
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
call fcn.10007140
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x9c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREWebzenMuConfig
push closesocket
mov dword [ebp - 0xa8], 1
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001e94
cmp dword [ebp - 0x84], 0x10
mov eax, dword [ebp - 0x98]
jae 0x10001e6d
mov eax, esi
push 4
lea edx, [ebp - 0xa8]
push edx
push 4
push ebx
push eax
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x84], 0x10
jb 0x10001ead
mov edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c06a6
mov esp, ebp
pop ebp
ret 4