Function at 0x54e9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2408
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 + 0x970]
xor edi, edi
test al, al
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], edi
je 0x54ea1e
cmp dword [ebp + 8], edi
jne 0x54ef30
mov eax, dword [0x6754cc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x50]
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], edi
mov word [ebp - 0x50], di
call fcn.00401fb0
mov eax, dword [ebx + 0x54]
mov byte [ebp - 4], 2
cmp eax, edi
jne 0x54ea4e
lea eax, [ebx + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, edi
jne 0x54ea58
lea ecx, [ebp - 0x50]
push eax
push ecx
call fcn.00580edc
add esp, 8
test eax, eax
je 0x54ee16
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x54ea74
lea eax, [ebx + 0x58]
push 1
push eax
call fcn.0046df00
add esp, 8
cmp eax, edi
je 0x54eaca
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x54ea8d
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x20]
call fcn.0059adfd
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push ecx
push str.Delete_old_file__s_n
push edx
mov byte [ebp - 4], 3
call fcn.00593b08
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebx + 0x42c]
push eax
call fcn.0050bf00
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0059ad3d
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x54ead4
lea eax, [ebx + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, edi
jne 0x54eade
lea ecx, [ebp - 0x50]
push 1
push eax
push ecx
call fcn.0046dad0
add esp, 0xc
cmp eax, edi
jne 0x54ede7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x54eb04
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x20]
call fcn.0059adfd
mov ecx, dword [ebx + 0x50]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0059adfd
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [0x67b180]
push edx
push eax
lea edx, [ebp - 0x14]
push ecx
push edx
mov byte [ebp - 4], 5
call fcn.00593b08
mov eax, dword [ebp - 0x14]
add esp, 0x10
lea edi, [ebx + 0x42c]
push eax
mov ecx, edi
call fcn.0050bf00
mov ecx, dword [0x6754cc]
mov dword [ebp - 0x18], ecx
push 0
lea edx, [ebp - 0x24]
push 0
push edx
push 0x400
push esi
push 0
push 0x1100
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x67abd4]
mov edx, dword [ebp - 0x14]
push eax
push ecx
push edx
lea eax, [ebp - 0x18]
push str._s_n_n_s__s
push eax
call fcn.00593b08
mov ecx, dword [ebp - 0x24]
add esp, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
lea edx, [ebp - 0x14]
push str.__errno___ld_n
push edx
call fcn.00593b08
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, edi
push eax
call fcn.0050bf00
mov eax, dword [ebx + 0x54]
xor esi, esi
cmp eax, esi
jne 0x54ebc8
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.00401fb0
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 7
cmp eax, esi
jne 0x54ebe9
lea eax, [ebp - 0x38]
push 0x5c
push eax
call fcn.0057e85a
add esp, 8
cmp eax, esi
je 0x54ed46
add eax, 2
mov word [eax], si
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x54ec0c
lea eax, [ebp - 0x38]
push 1
push eax
call fcn.0046e090
add esp, 8
cmp eax, esi
jne 0x54ed46
push str.Folder_does_not_exist__Creating..._n
mov ecx, edi
call fcn.0050bf00
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x54ec35
lea eax, [ebp - 0x38]
add eax, 6
push 0x5c
push eax
call fcn.0057ed7f
add esp, 8
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x54ed22
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jne 0x54ec59
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.00401fb0
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 8
cmp ecx, edi
jne 0x54ec7a
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jne 0x54ec84
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 0x54ec98
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.0046e090
add esp, 8
cmp eax, edi
jne 0x54ed94
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x54ecb5
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.0046e270
add esp, 8
cmp eax, edi
jne 0x54ed94
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x54ecd2
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.0059adfd
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push str.Can_not_create_folder__s__error___ld_n
push ecx
call fcn.00593b08
mov edx, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [ebx + 0x42c]
push edx
call fcn.0050bf00
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.0059ad3d
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.00401070
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x54ed2c
lea eax, [ebx + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, edi
jne 0x54ed36
lea ecx, [ebp - 0x50]
push 1
push eax
push ecx
call fcn.0046dad0
add esp, 0xc
cmp eax, edi
jne 0x54edb5
mov eax, dword [0x67abe0]
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], 6
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0059ad3d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0059ad3d
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0059ad3d
jmp 0x54ef18
add esi, 2
push 0x5c
push esi
call fcn.0057ed7f
add esp, 8
lea ecx, [ebp - 0x48]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00401070
jmp 0x54ec47
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0059ad3d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.0059ad3d
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0059ad3d
xor edi, edi
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x54edf1
lea eax, [ebx + 0x58]
push eax
mov eax, dword [ebx + 0x50]
push eax
lea ecx, [ebp - 0x14]
push str.Rename_temp_file__ls_to__ls._n
push ecx
call fcn.00593b08
mov edx, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [ebx + 0x42c]
push edx
call fcn.0050bf00
mov eax, dword [ebx + 0x980]
mov esi, 1
cmp eax, edi
mov dword [ebx + 0xcc], esi
jne 0x54ee9d
mov al, byte [ebx + 0x970]
test al, al
jne 0x54ee9d
cmp dword [ebx + 0x400], edi
je 0x54eea8
mov edx, dword [0x67a040]
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x2c]
push eax
push ecx
push edi
push edi
push str.bSaveLogs
push edx
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x54ee69
cmp dword [ebp - 0x2c], esi
je 0x54eea8
lea ecx, [ebx + 0x42c]
call fcn.0050bff0
mov eax, dword [0x67a018]
cmp eax, edi
jne 0x54ee82
mov eax, 0x67a01c
push eax
call fcn.005815f2
mov eax, dword [ebx + 0x4c]
add esp, 4
cmp eax, edi
je 0x54eea8
push eax
call fcn.00580fbb
add esp, 4
jmp 0x54eea8
lea ecx, [ebx + 0x42c]
call fcn.0050bff0
push 3
mov ecx, ebx
call fcn.0054ef60
cmp dword [ebx + 4], edi
jne 0x54eed4
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x54eec0
lea eax, [ebx + 0x58]
mov edx, dword [ebx + 0x14]
lea ecx, [ebx + 0x42c]
push ecx
push edx
push eax
call fcn.00552060
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x54ef18
mov eax, dword [ebx + 0xc4]
push str..m3u
push eax
call fcn.00587e70
add esp, 8
test eax, eax
jne 0x54eefc
mov ecx, ebx
call fcn.00554950
test al, al
jne 0x54ef18
cmp dword [ebx + 4], edi
jne 0x54ef18
cmp dword [ebx + 8], edi
jne 0x54ef18
mov ecx, ebx
call fcn.00552670
cmp eax, edi
je 0x54ef18
mov ecx, ebx
call fcn.0054e310
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4