Function at 0x5d8180
Capabilities:
Enumerate files on windows
Get common file path
Print debug messages

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x460
push 0xa0d07c
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x5d81b0
call dword [0xa1215c]
add esp, 0x460
pop ebp
pop edi
pop esi
pop ebx
ret
push str.Finding_MP3s...
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [esp + 0x10]
push 0xa0d07c
push eax
call fcn.00642560
lea eax, [esp + 0x18]
pop ecx
pop ecx
push str.MP3_
push eax
call fcn.006425b0
lea eax, [esp + 0x18]
pop ecx
pop ecx
push eax
push 0xa0d07c
call fcn.00642560
pop ecx
pop ecx
push 0xa0d07c
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [esp + 0x10]
push 0x6a55e4
push eax
call fcn.006425b0
lea eax, [esp + 0x18]
lea edx, [esp + 0x328]
pop ecx
pop ecx
push edx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x5d8237
call dword [0xa1215c]
add esp, 0x460
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [esp + 0x114]
push 0xa0d07c
push eax
call fcn.00642560
lea eax, [esp + 0x328]
pop ecx
mov dword [esp + 8], eax
lea eax, [esp + 0x118]
add dword [esp + 8], 0x2c
pop ecx
push dword [esp + 4]
push eax
call fcn.006425b0
pop ecx
pop ecx
or ecx, 0xffffffff
lea edi, [esp + 0x114]
xor eax, eax
mov esi, 0xfffffffe
repne scasb al, byte es:[edi]
sub esi, ecx
test esi, esi
jg 0x5d82a0
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_FindClose]
add esp, 0x460
pop ebp
pop edi
pop esi
pop ebx
ret
cmp esi, 4
jle 0x5d8305
lea eax, [esp + 0x114]
add esi, 0xfffffffc
mov ecx, 5
add esi, eax
mov edi, str..lnk
repe cmpsb byte [esi], byte es:[edi]
movzx edx, byte [esi - 1]
movzx eax, byte [edi - 1]
sub edx, eax
test edx, edx
jne 0x5d8303
lea eax, [esp + 0x114]
lea ecx, [esp + 0x114]
push ecx
push eax
call fcn.005d87f0
test al, al
pop ecx
pop ecx
je 0x5d82ff
push str.Resolving_Link
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov bl, 1
jmp 0x5d8305
xor bl, bl
mov eax, dword [0x978550]
lea esi, [esp + 0x114]
push 0
push esi
push eax
call dword [0x6f25c4]
test eax, eax
mov dword [0x978668], eax
je 0x5d8420
lea edi, [esp + 0x31c]
push 0
push edi
push eax
call dword [0x6f25b8]
mov eax, dword [0x978668]
push eax
call dword [0x6f25c0]
push dword [esp + 4]
mov dword [0x978668], 0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x114
call fcn.006403b0
test eax, eax
pop ecx
mov dword [0x9753e0], eax
jne 0x5d8382
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_FindClose]
add esp, 0x460
pop ebp
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x9753e0]
mov dword [0xa108b0], 1
push dword [esp + 4]
push eax
call fcn.00642560
mov eax, dword [esp + 0x324]
mov edx, dword [0x9753e0]
test bl, bl
mov dword [edx + 0x104], eax
mov eax, dword [0x9753e0]
pop ecx
mov dword [eax + 0x10c], 0
pop ecx
mov ebp, dword [0x9753e0]
je 0x5d8400
push 0x208
call fcn.00640250
pop ecx
mov ecx, dword [0x9753e0]
mov dword [ecx + 0x110], eax
lea eax, [esp + 0x114]
mov esi, dword [0x9753e0]
push eax
mov eax, dword [esi + 0x110]
push eax
call fcn.00642560
pop ecx
pop ecx
jmp 0x5d840f
mov eax, dword [0x9753e0]
mov dword [eax + 0x110], 0
mov byte [esp + 8], 0
jmp 0x5d87b8
lea eax, [esp + 0x114]
push str.___NOT_A_VALID_MP3
push eax
call fcn.006425b0
lea eax, [esp + 0x11c]
pop ecx
pop ecx
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov byte [esp + 8], 1
jmp 0x5d87b8
cmp byte [esp + 8], 0
je 0x5d8615
lea eax, [esp + 0x114]
push 0xa0d07c
push eax
call fcn.00642560
lea eax, [esp + 0x11c]
pop ecx
pop ecx
push dword [esp + 4]
push eax
call fcn.006425b0
pop ecx
pop ecx
or ecx, 0xffffffff
lea edi, [esp + 0x114]
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
test eax, eax
jle 0x5d87b8
cmp eax, 4
jle 0x5d850f
lea edi, [esp + 0x114]
lea esi, [eax - 4]
mov ecx, 5
add esi, edi
mov edi, str..lnk
repe cmpsb byte [esi], byte es:[edi]
movzx edx, byte [esi - 1]
movzx ecx, byte [edi - 1]
sub edx, ecx
test edx, edx
jne 0x5d8502
lea eax, [esp + 0x114]
lea ebx, [esp + 0x114]
push ebx
push eax
call fcn.005d87f0
test al, al
pop ecx
pop ecx
je 0x5d84fe
push str.Resolving_Link
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov bl, 1
jmp 0x5d850f
xor bl, bl
cmp eax, 0x104
jg 0x5d87b8
mov eax, dword [0x978550]
lea edx, [esp + 0x114]
push 0
push edx
push eax
call dword [0x6f25c4]
test eax, eax
mov dword [0x978668], eax
je 0x5d8796
lea edi, [esp + 0x31c]
push 0
push edi
push eax
call dword [0x6f25b8]
mov eax, dword [0x978668]
push eax
call dword [0x6f25c0]
push dword [esp + 4]
mov dword [0x978668], 0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x114
call fcn.006403b0
test eax, eax
pop ecx
mov dword [0x9753e0], eax
je 0x5d87d2
mov eax, dword [0x9753e0]
mov dword [0xa108b0], 1
push dword [esp + 4]
push eax
call fcn.00642560
mov eax, dword [esp + 0x324]
pop ecx
pop ecx
mov ecx, dword [0x9753e0]
test bl, bl
mov dword [ecx + 0x104], eax
mov eax, dword [0x9753e0]
mov dword [eax + 0x10c], 0
je 0x5d85f1
push 0x208
call fcn.00640250
mov esi, dword [0x9753e0]
pop ecx
mov dword [esi + 0x110], eax
lea eax, [esp + 0x114]
mov ebp, dword [0x9753e0]
push eax
mov eax, dword [ebp + 0x110]
push eax
call fcn.00642560
pop ecx
pop ecx
jmp 0x5d8600
mov eax, dword [0x9753e0]
mov dword [eax + 0x110], 0
mov byte [esp + 8], 0
mov ebp, dword [0x9753e0]
jmp 0x5d87b8
lea eax, [esp + 0x114]
push 0xa0d07c
push eax
call fcn.00642560
lea eax, [esp + 0x11c]
pop ecx
pop ecx
push dword [esp + 4]
push eax
call fcn.006425b0
pop ecx
pop ecx
or ecx, 0xffffffff
lea edi, [esp + 0x114]
xor eax, eax
mov esi, 0xfffffffe
repne scasb al, byte es:[edi]
sub esi, ecx
test esi, esi
jle 0x5d87b8
cmp esi, 4
jle 0x5d86c2
lea eax, [esp + 0x114]
add esi, 0xfffffffc
mov ecx, 5
add esi, eax
mov edi, str..lnk
repe cmpsb byte [esi], byte es:[edi]
movzx edx, byte [esi - 1]
movzx eax, byte [edi - 1]
sub edx, eax
test edx, edx
jne 0x5d86c0
lea eax, [esp + 0x114]
lea ebx, [esp + 0x114]
push ebx
push eax
call fcn.005d87f0
test al, al
pop ecx
pop ecx
je 0x5d86b8
push str.Resolving_Link
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov bl, 1
jmp 0x5d86c2
xor bl, bl
mov eax, dword [0x978550]
lea edi, [esp + 0x114]
push 0
push edi
push eax
call dword [0x6f25c4]
test eax, eax
mov dword [0x978668], eax
je 0x5d8796
lea ecx, [esp + 0x31c]
push 0
push ecx
push eax
call dword [0x6f25b8]
mov eax, dword [0x978668]
push eax
call dword [0x6f25c0]
push 0x114
mov dword [0x978668], 0
call fcn.006403b0
mov dword [ebp + 0x10c], eax
mov esi, dword [ebp + 0x10c]
test esi, esi
pop ecx
je 0x5d87d2
push dword [esp + 4]
push esi
mov ebp, esi
call fcn.00642560
test bl, bl
mov eax, dword [esp + 0x324]
mov dword [esi + 0x104], eax
pop ecx
mov dword [esi + 0x10c], 0
pop ecx
je 0x5d8780
push 0x208
call fcn.00640250
mov dword [esi + 0x110], eax
lea edx, [esp + 0x118]
mov eax, dword [esi + 0x110]
pop ecx
push edx
push eax
call fcn.00642560
pop ecx
pop ecx
jmp 0x5d878a
mov dword [esi + 0x110], 0
inc dword [0xa108b0]
push dword [esp + 4]
jmp 0x5d87b2
lea eax, [esp + 0x114]
push str.___NOT_A_VALID_MP3
push eax
call fcn.006425b0
lea eax, [esp + 0x11c]
pop ecx
pop ecx
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [esp + 0x320]
push eax
push dword [esp + 0x10]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x5d8450
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_FindClose]
add esp, 0x460
pop ebp
pop edi
pop esi
pop ebx
ret