Function at 0x558950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cdae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov al, byte [edi + 0x9b0]
mov dword [ebp - 0x30], edi
test al, al
mov dword [ebp - 4], ebx
je 0x55898e
cmp dword [ebp + 8], ebx
jne 0x558eb6
mov eax, dword [0x682f9c]
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 0x50]
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x50], bx
call fcn.00401ee0
mov eax, dword [edi + 0x54]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x5589be
lea eax, [edi + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, ebx
jne 0x5589c8
lea ecx, [ebp - 0x50]
push eax
push ecx
call fcn.0058b9fc
add esp, 8
test eax, eax
je 0x558d86
mov eax, dword [edi + 0x54]
cmp eax, ebx
jne 0x5589e4
lea eax, [edi + 0x58]
push 1
push eax
call fcn.00471ed0
add esp, 8
cmp eax, ebx
je 0x558a3a
mov eax, dword [edi + 0x54]
cmp eax, ebx
jne 0x5589fd
lea eax, [edi + 0x58]
push eax
lea ecx, [ebp - 0x20]
call fcn.005a590d
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.0059e618
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [edi + 0x44c]
push eax
call fcn.00513020
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.005a584d
mov eax, dword [edi + 0x54]
cmp eax, ebx
jne 0x558a44
lea eax, [edi + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, ebx
jne 0x558a4e
lea ecx, [ebp - 0x50]
push 1
push eax
push ecx
call fcn.00471aa0
add esp, 0xc
cmp eax, ebx
jne 0x558d57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [edi + 0x54]
cmp eax, ebx
jne 0x558a74
lea eax, [edi + 0x58]
push eax
lea ecx, [ebp - 0x20]
call fcn.005a590d
mov ecx, dword [edi + 0x50]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x1c]
call fcn.005a590d
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [0x688cb8]
push edx
push eax
lea edx, [ebp - 0x14]
push ecx
push edx
mov byte [ebp - 4], 5
call fcn.0059e618
mov eax, dword [ebp - 0x14]
add esp, 0x10
lea ebx, [edi + 0x44c]
push eax
mov ecx, ebx
call fcn.00513020
mov ecx, dword [0x682f9c]
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 [0x68870c]
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.0059e618
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.0059e618
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00513020
mov eax, dword [edi + 0x54]
xor esi, esi
cmp eax, esi
jne 0x558b38
lea eax, [edi + 0x58]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov word [ebp - 0x38], si
call fcn.00401ee0
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 7
cmp eax, esi
jne 0x558b59
lea eax, [ebp - 0x38]
push 0x5c
push eax
call fcn.00589382
add esp, 8
cmp eax, esi
je 0x558cb6
add eax, 2
mov word [eax], si
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x558b7c
lea eax, [ebp - 0x38]
push 1
push eax
call fcn.00472060
add esp, 8
cmp eax, esi
jne 0x558cb6
push str.Folder_does_not_exist__Creating..._n
mov ecx, ebx
call fcn.00513020
mov eax, dword [ebp - 0x3c]
cmp eax, esi
jne 0x558ba5
lea eax, [ebp - 0x38]
add eax, 6
push 0x5c
push eax
call fcn.0058989f
add esp, 8
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x558c92
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x558bc9
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x44], bx
call fcn.00401ee0
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 8
cmp ecx, ebx
jne 0x558bea
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
cmp eax, ebx
jne 0x558bf4
lea eax, [ebp - 0x38]
mov edx, esi
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], bx
mov eax, dword [ebp - 0x48]
cmp eax, ebx
jne 0x558c08
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.00472060
add esp, 8
cmp eax, ebx
jne 0x558d04
mov eax, dword [ebp - 0x48]
cmp eax, ebx
jne 0x558c25
lea eax, [ebp - 0x44]
push 1
push eax
call fcn.00472240
add esp, 8
cmp eax, ebx
jne 0x558d04
mov eax, dword [ebp - 0x48]
cmp eax, ebx
jne 0x558c42
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.005a590d
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.0059e618
mov edx, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [edi + 0x44c]
push edx
call fcn.00513020
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
call fcn.005a584d
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 7
call fcn.00401070
mov eax, dword [edi + 0x54]
cmp eax, ebx
jne 0x558c9c
lea eax, [edi + 0x58]
mov ecx, dword [ebp - 0x54]
cmp ecx, ebx
jne 0x558ca6
lea ecx, [ebp - 0x50]
push 1
push eax
push ecx
call fcn.00471aa0
add esp, 0xc
cmp eax, ebx
jne 0x558d25
mov eax, dword [0x688718]
mov ecx, dword [ebp - 0x18]
mov edx, dword [edi + 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.005a584d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.005a584d
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.005a584d
jmp 0x558e9e
add esi, 2
push 0x5c
push esi
call fcn.0058989f
add esp, 8
lea ecx, [ebp - 0x48]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00401070
jmp 0x558bb7
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.005a584d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.005a584d
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.005a584d
xor ebx, ebx
mov eax, dword [edi + 0x54]
cmp eax, ebx
jne 0x558d61
lea eax, [edi + 0x58]
push eax
mov eax, dword [edi + 0x50]
push eax
lea ecx, [ebp - 0x14]
push str.Rename_temp_file__ls_to__ls._n
push ecx
call fcn.0059e618
mov edx, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [edi + 0x44c]
push edx
call fcn.00513020
mov eax, dword [edi + 0x420]
mov esi, 1
push eax
lea ecx, [edi + 0x20]
mov dword [edi + 0xcc], esi
call fcn.00565480
mov eax, dword [edi + 0x54]
cmp eax, ebx
jne 0x558daa
lea eax, [edi + 0x58]
push eax
call fcn.00509160
mov eax, dword [edi + 0x9c0]
add esp, 4
cmp eax, ebx
jne 0x558e2e
mov al, byte [edi + 0x9b0]
test al, al
jne 0x558e2e
cmp dword [edi + 0x420], ebx
je 0x558e39
mov eax, dword [0x687b54]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x2c]
push ecx
push edx
push ebx
push ebx
push str.bSaveLogs
push eax
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x558dfa
cmp dword [ebp - 0x2c], esi
je 0x558e39
lea ecx, [edi + 0x44c]
call fcn.00513110
mov eax, dword [0x687b28]
cmp eax, ebx
jne 0x558e13
mov eax, 0x687b2c
push eax
call fcn.0058c112
mov eax, dword [edi + 0x4c]
add esp, 4
cmp eax, ebx
je 0x558e39
push eax
call fcn.0058badb
add esp, 4
jmp 0x558e39
lea ecx, [edi + 0x44c]
call fcn.00513110
push 3
mov ecx, edi
call fcn.00558ef0
cmp dword [edi + 4], ebx
jne 0x558e65
mov eax, dword [edi + 0x54]
cmp eax, ebx
jne 0x558e51
lea eax, [edi + 0x58]
mov edx, dword [edi + 0x14]
lea ecx, [edi + 0x44c]
push ecx
push edx
push eax
call fcn.0055c160
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x558e9e
mov eax, dword [edi + 0xc4]
push str..m3u
push eax
call fcn.005929b0
add esp, 8
test eax, eax
jne 0x558e8d
mov ecx, edi
call fcn.0055f540
test al, al
jne 0x558e9e
mov al, byte [edi + 0x9cd]
test al, al
je 0x558e9e
mov ecx, edi
call fcn.00558270
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005a584d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4