Function at 0x53c780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ace78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
mov ebx, ecx
push esi
push edi
mov al, byte [ebx + 0x870]
xor edi, edi
test al, al
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], edi
je 0x53c7be
cmp dword [ebp + 8], edi
jne 0x53ccb9
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x50]
push edi
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], edi
mov word [ebp - 0x50], di
call fcn.00402610
mov eax, dword [ebx + 0x54]
mov byte [ebp - 4], 2
cmp eax, edi
jne 0x53c7ef
lea eax, [ebx + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, edi
jne 0x53c7f9
lea ecx, [ebp - 0x50]
push eax
push ecx
call fcn.0056cfcc
add esp, 8
test eax, eax
je 0x53cba8
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53c815
lea eax, [ebx + 0x58]
push 1
push eax
call fcn.00464e30
add esp, 8
cmp eax, edi
je 0x53c86b
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53c82e
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00586bf3
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
push ecx
push str.Delete_old_file__s_n
push edx
mov byte [ebp - 4], 3
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebx + 0x42c]
push eax
call fcn.004fa4e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00586b33
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53c875
lea eax, [ebx + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, edi
jne 0x53c87f
lea ecx, [ebp - 0x50]
push 1
push eax
push ecx
call fcn.00464c10
add esp, 0xc
cmp eax, edi
jne 0x53cb5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53c8a5
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00586bf3
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x50]
mov eax, dword [0x6625f0]
push ecx
push edx
lea ecx, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
add esp, 0x10
lea edi, [ebx + 0x42c]
push edx
mov ecx, edi
call fcn.004fa4e0
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x20]
push 0
push ecx
push 0x400
push esi
push 0
push 0x1100
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x20]
mov eax, dword [0x662044]
mov ecx, dword [ebp - 0x14]
push edx
push eax
push ecx
lea edx, [ebp - 0x18]
push str._s_n_n_s__s
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x20]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
lea ecx, [ebp - 0x14]
push str.__errno___ld_n
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, edi
push edx
call fcn.004fa4e0
mov eax, dword [ebx + 0x54]
xor esi, esi
cmp eax, esi
jne 0x53c956
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x38], si
call fcn.00402e20
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 6
cmp eax, esi
jne 0x53c977
lea eax, [ebp - 0x38]
push 0x5c
push eax
call fcn.0056b10e
add esp, 8
cmp eax, esi
je 0x53cad4
add eax, 2
mov word [eax], si
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x53c99a
lea eax, [ebp - 0x38]
push 1
push eax
call fcn.00464fc0
add esp, 8
cmp eax, esi
jne 0x53cad4
push str.Folder_does_not_exist__Creating..._n
mov ecx, edi
call fcn.004fa4e0
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x53c9c3
lea eax, [ebp - 0x38]
add eax, 6
push 0x5c
push eax
call fcn.0056aecb
add esp, 8
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x53cab0
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jne 0x53c9e7
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], edi
mov word [ebp - 0x44], di
call fcn.00402e20
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 7
cmp ecx, edi
jne 0x53ca08
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jne 0x53ca12
lea eax, [ebp - 0x38]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], di
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x53ca26
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.00464fc0
add esp, 8
cmp eax, edi
jne 0x53cb16
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x53ca43
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.004651a0
add esp, 8
cmp eax, edi
jne 0x53cb16
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x53ca60
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.00586bf3
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
push str.Can_not_create_folder__s__error___ld_n
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [ebx + 0x42c]
push edx
call fcn.004fa4e0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.00586b33
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00401070
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53caba
lea eax, [ebx + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, edi
jne 0x53cac4
lea ecx, [ebp - 0x50]
push 1
push eax
push ecx
call fcn.00464c10
add esp, 0xc
cmp eax, edi
jne 0x53cb37
mov eax, dword [0x662050]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x18]
push 0x50010
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00586b33
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00586b33
jmp 0x53cca1
add esi, 2
push 0x5c
push esi
call fcn.0056aecb
add esp, 8
lea ecx, [ebp - 0x48]
mov esi, eax
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x53c9d5
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00586b33
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00586b33
xor edi, edi
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53cb67
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00586bf3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebx + 0x50]
push eax
push ecx
lea edx, [ebp - 0x14]
push str.Rename_temp_file__s_to__s._n
push edx
mov byte [ebp - 4], 9
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [ebx + 0x42c]
push eax
call fcn.004fa4e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00586b33
mov eax, dword [ebx + 0x880]
mov esi, 1
cmp eax, edi
mov dword [ebx + 0xcc], esi
jne 0x53cc26
mov al, byte [ebx + 0x870]
test al, al
jne 0x53cc26
cmp dword [ebx + 0x400], edi
je 0x53cc31
mov eax, dword [0x6614e8]
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x2c]
push ecx
push edx
push edi
push edi
push str.bSaveLogs
push eax
mov dword [ebp - 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x53cbfa
cmp dword [ebp - 0x2c], esi
je 0x53cc31
lea ecx, [ebx + 0x42c]
call fcn.004fa5d0
mov ecx, dword [0x6614c8]
push ecx
call fcn.0056d78e
mov eax, dword [ebx + 0x4c]
add esp, 4
cmp eax, edi
je 0x53cc31
push eax
call fcn.0056d0ab
add esp, 4
jmp 0x53cc31
lea ecx, [ebx + 0x42c]
call fcn.004fa5d0
push 3
mov ecx, ebx
call fcn.0053ccf0
cmp dword [ebx + 4], edi
jne 0x53cc5d
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53cc49
lea eax, [ebx + 0x58]
mov ecx, dword [ebx + 0x14]
lea edx, [ebx + 0x42c]
push edx
push ecx
push eax
call fcn.0053fb70
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x53cca1
mov eax, dword [ebx + 0xc4]
push str..m3u
push eax
call fcn.00573ec0
add esp, 8
test eax, eax
jne 0x53cc85
mov ecx, ebx
call fcn.005423f0
test al, al
jne 0x53cca1
cmp dword [ebx + 4], edi
jne 0x53cca1
cmp dword [ebx + 8], edi
jne 0x53cca1
mov ecx, ebx
call fcn.00540180
cmp eax, edi
je 0x53cca1
mov ecx, ebx
call fcn.0053c0e0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4