Function at 0x100018c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac870
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x100bc018]
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 - 0xa8], eax
mov dword [ebp - 0xa4], ecx
cmp dword [0x1068a7b8], ebx
jle 0x10001c9f
mov dword [ebp - 0xa0], 2
mov dword [ebp - 0x9c], 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]
mov edi, 0xf
add esp, 0xc
xor esi, esi
mov eax, 0x100af876
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
call fcn.10003970
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001968
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x60]
call fcn.10003970
lea eax, [ebp - 0x7c]
lea edi, [ebp - 0x60]
call fcn.100017d0
cmp dword [ebp - 0x4c], 0x10
jb 0x1000199c
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 0xf
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
jb 0x100019c4
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 esi, esi
mov eax, 0x100af876
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
call fcn.10003970
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
lea edx, [eax + 1]
jmp 0x10001a10
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001a10
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x60]
call fcn.10003970
lea eax, [ebp - 0x7c]
lea edi, [ebp - 0x60]
call fcn.100017d0
cmp dword [ebp - 0x4c], 0x10
jb 0x10001a44
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 0x10001a6b
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 - 0x9c], eax
jne 0x10001920
mov dword [ebp - 0xac], ebx
cmp dword [0x1068a7b8], ebx
jle 0x10001c9f
mov edx, 2
mov esi, 0x1068a7bc
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], esi
lea ecx, [edx - 1]
cmp ecx, 5
jge 0x10001c9f
mov eax, dword [ebp - 0xa8]
lea esp, [esp]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10001ae0
cmp cl, bl
je 0x10001adc
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10001ae0
add eax, 2
add esi, 2
cmp cl, bl
jne 0x10001ac0
xor eax, eax
jmp 0x10001ae5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10001c77
push edx
lea edx, [ebp - 0x44]
push str.ID__d
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov edx, dword [ebp - 0x9c]
mov edi, 0xf
mov eax, edx
add esp, 0xc
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001b20
sub eax, esi
mov esi, eax
mov eax, edx
lea ecx, [ebp - 0x7c]
call fcn.10003970
mov dword [ebp - 4], 2
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
lea edx, [eax + 1]
jmp 0x10001b50
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001b50
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x60]
call fcn.10003970
lea eax, [ebp - 0x7c]
lea edi, [ebp - 0x60]
call fcn.100017d0
cmp dword [ebp - 0x4c], 0x10
jb 0x10001b84
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 0x10001bac
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 edi, dword [ebp - 0x9c]
lea ecx, [edi + 0xb]
mov dword [ebp - 0x68], esi
add esp, 0xc
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x10001be0
sub ecx, esi
mov esi, ecx
lea eax, [edi + 0xb]
lea ecx, [ebp - 0x7c]
call fcn.10003970
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 0x10001c10
sub eax, edx
mov esi, eax
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x60]
call fcn.10003970
lea eax, [ebp - 0x7c]
lea edi, [ebp - 0x60]
call fcn.100017d0
cmp dword [ebp - 0x4c], 0x10
jb 0x10001c44
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 0x10001c6b
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 eax, dword [ebp - 0xac]
mov esi, dword [ebp - 0x9c]
inc eax
add esi, 0x1c
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x9c], esi
cmp eax, dword [0x1068a7b8]
jl 0x10001aaa
mov edi, dword [ebp - 0xa8]
mov ecx, edi
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x10001cb7
sub ecx, esi
mov esi, ecx
mov eax, edi
lea ecx, [ebp - 0x7c]
call fcn.10003970
mov dword [ebp - 4], 4
mov esi, 2
mov eax, 0x100af850
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
call fcn.10003970
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]
test eax, eax
jne 0x10001d61
mov ecx, dword [ebp - 0x7c]
mov eax, 0x10
cmp dword [ebp - 0x68], eax
jae 0x10001d36
lea ecx, [ebp - 0x7c]
cmp dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x60]
jae 0x10001d41
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]
mov esi, 0x10
cmp dword [ebp - 0x4c], esi
jb 0x10001d78
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], esi
jb 0x10001d9e
mov edx, dword [ebp - 0x7c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, dword [ebp - 0xa4]
mov ecx, edi
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x7c], bl
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x10001db6
sub ecx, esi
mov esi, ecx
mov eax, edi
lea ecx, [ebp - 0x7c]
call fcn.10003970
mov dword [ebp - 4], 5
mov esi, 2
mov eax, 0x100af854
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
call fcn.10003970
mov esi, dword [ebp - 0x6c]
lea eax, [ebp - 0xa4]
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]
test eax, eax
jne 0x10001e60
mov ecx, dword [ebp - 0x7c]
mov eax, 0x10
cmp dword [ebp - 0x68], eax
jae 0x10001e35
lea ecx, [ebp - 0x7c]
cmp dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x60]
jae 0x10001e40
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], 0x10
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x10001e75
mov ecx, dword [ebp - 0x60]
push ecx
call edi
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 0x10001e99
mov edx, dword [ebp - 0x7c]
push edx
call edi
add esp, 4
mov dword [ebp - 0x84], esi
mov esi, 8
mov eax, str.SavePass
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x98], bl
call fcn.10003970
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 - 0xa4], 1
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001f37
cmp dword [ebp - 0x84], 0x10
mov eax, dword [ebp - 0x98]
jae 0x10001f10
lea eax, [ebp - 0x98]
push 4
lea edx, [ebp - 0xa4]
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 0x10001f4c
mov edx, dword [ebp - 0x98]
push edx
call edi
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.100ab6d6
mov esp, ebp
pop ebp
ret 4