Function at 0x411be0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x437c10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], al
call fcn.00401040
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x2c], cl
lea ecx, [esp + 0x2c]
mov dword [esp + 0x58], ebx
call fcn.00401040
mov edi, str.SOFTWAREWebzenMuConnection
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
call fcn.00412460
test al, al
je 0x411c6a
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ecx
mov esi, str.SOFTWAREWebzenMuConnection
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call fcn.00412440
mov eax, dword [0x43b0f4]
lea ecx, [esp + 0x28]
push eax
push ebx
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x60], 1
mov dword [esp + 0x44], reloc.OLEAUT32.dll_SysReAllocString
call fcn.004121a0
push 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], 0
call fcn.00401040
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
call fcn.00401040
mov edi, 0x447dec
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x2c]
push ebp
call fcn.00412460
test al, al
je 0x411cf4
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov eax, ecx
mov esi, 0x447dec
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [ecx + ebp], 0
mov eax, 4
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x411d12
mov eax, 0x439658
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x3c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x411d39
xor bl, bl
jmp 0x411d82
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x411d46
mov eax, 0x439658
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x411d75
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x411d82
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
push 1
lea ecx, [esp + 0x2c]
call fcn.00401040
test bl, bl
jne 0x411de0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x411dca
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x411dc1
cmp al, 0xff
je 0x411dc1
dec al
pop edi
pop esi
mov byte [ecx], al
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
push ecx
call fcn.0042af98
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
test eax, eax
je 0x411e09
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x411e00
cmp al, 0xff
je 0x411e00
dec al
mov byte [ecx], al
jmp 0x411e09
push ecx
call fcn.0042af98
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret