Function at 0x10032410
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
lea eax, [ebp - 8]
push ebx
push esi
push eax
push 0x20019
push 0
push str.SoftwareWiNRADiODRMPlayer
push reloc.WS2_32.dll_bind
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x100324f0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.Path
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100324e7
cmp dword [ebp - 0x10], 1
jne 0x100324e7
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov byte [ebp + eax - 0x114], 0
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10032490
sub ecx, edx
cmp byte [ebp + ecx - 0x115], 0x5c
je 0x100324ac
mov byte [ebp + ecx - 0x114], 0x5c
inc ecx
mov eax, dword [str.drmcdlib.dll]
mov dword [ebp + ecx - 0x114], eax
mov eax, dword [0x100b8a44]
mov dword [ebp + ecx - 0x110], eax
mov eax, dword [0x100b8a48]
mov dword [ebp + ecx - 0x10c], eax
mov al, byte [0x100b8a4c]
mov byte [ebp + ecx - 0x108], al
lea eax, [ebp - 0x114]
push eax
call esi
mov dword [ebx], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx], 0
jne 0x1003250e
push str.drmcdlib.dll
call esi
mov dword [ebx], eax
test eax, eax
jne 0x1003250e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DrmCdLibInit
push dword [ebx]
call esi
push str.DrmCdLibDone
push dword [ebx]
mov dword [ebx + 0x18], eax
call esi
push str.DrmCdLibClearControl
push dword [ebx]
mov dword [ebx + 0x1c], eax
call esi
push str.DrmCdLibProcess
push dword [ebx]
mov dword [ebx + 0x20], eax
call esi
push str.DrmCdLibStrError
push dword [ebx]
mov dword [ebx + 0x24], eax
call esi
cmp dword [ebx + 0x18], 0
mov dword [ebx + 0x28], eax
je 0x1003261c
cmp dword [ebx + 0x1c], 0
je 0x1003261c
cmp dword [ebx + 0x20], 0
je 0x1003261c
cmp dword [ebx + 0x24], 0
je 0x1003261c
test eax, eax
je 0x1003261c
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x218]
mov byte [ebx + 0x2c], 0
mov ecx, 7
mov esi, str.mmplayersrdrmmmplayersr.exe
rep movsd dword es:[edi], dword [esi]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.1009d233
add esp, 8
test eax, eax
jne 0x10032613
mov edi, dword [ebp - 4]
mov ecx, 7
mov esi, str.mmplayersrdrmmmviewersr.exe
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x218]
push eax
movsb byte es:[edi], byte [esi]
call fcn.1009d233
add esp, 8
test eax, eax
jne 0x10032613
mov edi, dword [ebp - 4]
mov ecx, 7
mov esi, str.mmplayersrdrmmmviewersr.exe
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x218]
push eax
movsb byte es:[edi], byte [esi]
call fcn.1009d233
add esp, 8
test eax, eax
jne 0x10032613
mov byte [ebx + 0x2c], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0x7f
pop ebx
mov esp, ebp
pop ebp
ret