Function at 0x53e050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aead8
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 0x53e08e
cmp dword [ebp + 8], edi
jne 0x53e589
mov eax, dword [0x65ec1c]
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.00402600
mov eax, dword [ebx + 0x54]
mov byte [ebp - 4], 2
cmp eax, edi
jne 0x53e0bf
lea eax, [ebx + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, edi
jne 0x53e0c9
lea ecx, [ebp - 0x50]
push eax
push ecx
call fcn.0056eb4c
add esp, 8
test eax, eax
je 0x53e478
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53e0e5
lea eax, [ebx + 0x58]
push 1
push eax
call fcn.004654e0
add esp, 8
cmp eax, edi
je 0x53e13b
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53e0fe
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00588780
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.0058148b
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebx + 0x42c]
push eax
call fcn.004fbba0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005886c0
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53e145
lea eax, [ebx + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, edi
jne 0x53e14f
lea ecx, [ebp - 0x50]
push 1
push eax
push ecx
call fcn.004652c0
add esp, 0xc
cmp eax, edi
jne 0x53e42d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53e175
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00588780
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx + 0x50]
mov eax, dword [0x664788]
push ecx
push edx
lea ecx, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 4
call fcn.0058148b
mov edx, dword [ebp - 0x14]
add esp, 0x10
lea edi, [ebx + 0x42c]
push edx
mov ecx, edi
call fcn.004fbba0
mov eax, dword [0x65ec1c]
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 [0x6641dc]
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.0058148b
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.0058148b
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, edi
push edx
call fcn.004fbba0
mov eax, dword [ebx + 0x54]
xor esi, esi
cmp eax, esi
jne 0x53e226
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.00402e10
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 6
cmp eax, esi
jne 0x53e247
lea eax, [ebp - 0x38]
push 0x5c
push eax
call fcn.0056cc8e
add esp, 8
cmp eax, esi
je 0x53e3a4
add eax, 2
mov word [eax], si
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x53e26a
lea eax, [ebp - 0x38]
push 1
push eax
call fcn.00465670
add esp, 8
cmp eax, esi
jne 0x53e3a4
push str.Folder_does_not_exist__Creating..._n
mov ecx, edi
call fcn.004fbba0
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x53e293
lea eax, [ebp - 0x38]
add eax, 6
push 0x5c
push eax
call fcn.0056ca4b
add esp, 8
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x53e380
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jne 0x53e2b7
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.00402e10
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 7
cmp ecx, edi
jne 0x53e2d8
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
cmp eax, edi
jne 0x53e2e2
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 0x53e2f6
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.00465670
add esp, 8
cmp eax, edi
jne 0x53e3e6
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x53e313
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.00465850
add esp, 8
cmp eax, edi
jne 0x53e3e6
mov eax, dword [ebp - 0x48]
cmp eax, edi
jne 0x53e330
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x24]
call fcn.00588780
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.0058148b
mov edx, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [ebx + 0x42c]
push edx
call fcn.004fbba0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.005886c0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.00401070
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53e38a
lea eax, [ebx + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, edi
jne 0x53e394
lea ecx, [ebp - 0x50]
push 1
push eax
push ecx
call fcn.004652c0
add esp, 0xc
cmp eax, edi
jne 0x53e407
mov eax, dword [0x6641e8]
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.005886c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005886c0
jmp 0x53e571
add esi, 2
push 0x5c
push esi
call fcn.0056ca4b
add esp, 8
lea ecx, [ebp - 0x48]
mov esi, eax
mov byte [ebp - 4], 6
call fcn.00401070
jmp 0x53e2a5
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.005886c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.005886c0
xor edi, edi
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53e437
lea eax, [ebx + 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00588780
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.0058148b
mov eax, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [ebx + 0x42c]
push eax
call fcn.004fbba0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.005886c0
mov eax, dword [ebx + 0x880]
mov esi, 1
cmp eax, edi
mov dword [ebx + 0xcc], esi
jne 0x53e4f6
mov al, byte [ebx + 0x870]
test al, al
jne 0x53e4f6
cmp dword [ebx + 0x400], edi
je 0x53e501
mov eax, dword [0x663680]
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 0x53e4ca
cmp dword [ebp - 0x2c], esi
je 0x53e501
lea ecx, [ebx + 0x42c]
call fcn.004fbc90
mov ecx, dword [0x663660]
push ecx
call fcn.0056f30e
mov eax, dword [ebx + 0x4c]
add esp, 4
cmp eax, edi
je 0x53e501
push eax
call fcn.0056ec2b
add esp, 4
jmp 0x53e501
lea ecx, [ebx + 0x42c]
call fcn.004fbc90
push 3
mov ecx, ebx
call fcn.0053e5c0
cmp dword [ebx + 4], edi
jne 0x53e52d
mov eax, dword [ebx + 0x54]
cmp eax, edi
jne 0x53e519
lea eax, [ebx + 0x58]
mov ecx, dword [ebx + 0x14]
lea edx, [ebx + 0x42c]
push edx
push ecx
push eax
call fcn.00541440
add esp, 0xc
cmp dword [ebp + 8], edi
je 0x53e571
mov eax, dword [ebx + 0xc4]
push str..m3u
push eax
call fcn.00575a20
add esp, 8
test eax, eax
jne 0x53e555
mov ecx, ebx
call fcn.00543cc0
test al, al
jne 0x53e571
cmp dword [ebx + 4], edi
jne 0x53e571
cmp dword [ebx + 8], edi
jne 0x53e571
mov ecx, ebx
call fcn.00541a50
cmp eax, edi
je 0x53e571
mov ecx, ebx
call fcn.0053d9b0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4