Function at 0x5d81a0
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 0xa0d084
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x5d81d0
call dword [fcn.00a1215c]
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 0xa0d084
push eax
call fcn.006425b0
lea eax, [esp + 0x18]
pop ecx
pop ecx
push str.MP3_
push eax
call fcn.00642600
lea eax, [esp + 0x18]
pop ecx
pop ecx
push eax
push 0xa0d084
call fcn.006425b0
pop ecx
pop ecx
push 0xa0d084
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [esp + 0x10]
push 0x6a55e4
push eax
call fcn.00642600
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 0x5d8257
call dword [fcn.00a1215c]
add esp, 0x460
pop ebp
pop edi
pop esi
pop ebx
ret
lea eax, [esp + 0x114]
push 0xa0d084
push eax
call fcn.006425b0
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.00642600
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 0x5d82c0
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 0x5d8325
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 0x5d8323
lea eax, [esp + 0x114]
lea ecx, [esp + 0x114]
push ecx
push eax
call fcn.005d8810
test al, al
pop ecx
pop ecx
je 0x5d831f
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 0x5d8325
xor bl, bl
mov eax, dword [0x978558]
lea esi, [esp + 0x114]
push 0
push esi
push eax
call dword [0x6f25c4]
test eax, eax
mov dword [0x978670], eax
je 0x5d8440
lea edi, [esp + 0x31c]
push 0
push edi
push eax
call dword [0x6f25b8]
mov eax, dword [0x978670]
push eax
call dword [0x6f25c0]
push dword [esp + 4]
mov dword [0x978670], 0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x114
call fcn.00640400
test eax, eax
pop ecx
mov dword [0x9753e8], eax
jne 0x5d83a2
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 [0x9753e8]
mov dword [0xa108b8], 1
push dword [esp + 4]
push eax
call fcn.006425b0
mov eax, dword [esp + 0x324]
mov edx, dword [0x9753e8]
test bl, bl
mov dword [edx + 0x104], eax
mov eax, dword [0x9753e8]
pop ecx
mov dword [eax + 0x10c], 0
pop ecx
mov ebp, dword [0x9753e8]
je 0x5d8420
push 0x208
call fcn.006402a0
pop ecx
mov ecx, dword [0x9753e8]
mov dword [ecx + 0x110], eax
lea eax, [esp + 0x114]
mov esi, dword [0x9753e8]
push eax
mov eax, dword [esi + 0x110]
push eax
call fcn.006425b0
pop ecx
pop ecx
jmp 0x5d842f
mov eax, dword [0x9753e8]
mov dword [eax + 0x110], 0
mov byte [esp + 8], 0
jmp 0x5d87d8
lea eax, [esp + 0x114]
push str.___NOT_A_VALID_MP3
push eax
call fcn.00642600
lea eax, [esp + 0x11c]
pop ecx
pop ecx
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov byte [esp + 8], 1
jmp 0x5d87d8
cmp byte [esp + 8], 0
je 0x5d8635
lea eax, [esp + 0x114]
push 0xa0d084
push eax
call fcn.006425b0
lea eax, [esp + 0x11c]
pop ecx
pop ecx
push dword [esp + 4]
push eax
call fcn.00642600
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 0x5d87d8
cmp eax, 4
jle 0x5d852f
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 0x5d8522
lea eax, [esp + 0x114]
lea ebx, [esp + 0x114]
push ebx
push eax
call fcn.005d8810
test al, al
pop ecx
pop ecx
je 0x5d851e
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 0x5d852f
xor bl, bl
cmp eax, 0x104
jg 0x5d87d8
mov eax, dword [0x978558]
lea edx, [esp + 0x114]
push 0
push edx
push eax
call dword [0x6f25c4]
test eax, eax
mov dword [0x978670], eax
je 0x5d87b6
lea edi, [esp + 0x31c]
push 0
push edi
push eax
call dword [0x6f25b8]
mov eax, dword [0x978670]
push eax
call dword [0x6f25c0]
push dword [esp + 4]
mov dword [0x978670], 0
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push 0x114
call fcn.00640400
test eax, eax
pop ecx
mov dword [0x9753e8], eax
je 0x5d87f2
mov eax, dword [0x9753e8]
mov dword [0xa108b8], 1
push dword [esp + 4]
push eax
call fcn.006425b0
mov eax, dword [esp + 0x324]
pop ecx
pop ecx
mov ecx, dword [0x9753e8]
test bl, bl
mov dword [ecx + 0x104], eax
mov eax, dword [0x9753e8]
mov dword [eax + 0x10c], 0
je 0x5d8611
push 0x208
call fcn.006402a0
mov esi, dword [0x9753e8]
pop ecx
mov dword [esi + 0x110], eax
lea eax, [esp + 0x114]
mov ebp, dword [0x9753e8]
push eax
mov eax, dword [ebp + 0x110]
push eax
call fcn.006425b0
pop ecx
pop ecx
jmp 0x5d8620
mov eax, dword [0x9753e8]
mov dword [eax + 0x110], 0
mov byte [esp + 8], 0
mov ebp, dword [0x9753e8]
jmp 0x5d87d8
lea eax, [esp + 0x114]
push 0xa0d084
push eax
call fcn.006425b0
lea eax, [esp + 0x11c]
pop ecx
pop ecx
push dword [esp + 4]
push eax
call fcn.00642600
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 0x5d87d8
cmp esi, 4
jle 0x5d86e2
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 0x5d86e0
lea eax, [esp + 0x114]
lea ebx, [esp + 0x114]
push ebx
push eax
call fcn.005d8810
test al, al
pop ecx
pop ecx
je 0x5d86d8
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 0x5d86e2
xor bl, bl
mov eax, dword [0x978558]
lea edi, [esp + 0x114]
push 0
push edi
push eax
call dword [0x6f25c4]
test eax, eax
mov dword [0x978670], eax
je 0x5d87b6
lea ecx, [esp + 0x31c]
push 0
push ecx
push eax
call dword [0x6f25b8]
mov eax, dword [0x978670]
push eax
call dword [0x6f25c0]
push 0x114
mov dword [0x978670], 0
call fcn.00640400
mov dword [ebp + 0x10c], eax
mov esi, dword [ebp + 0x10c]
test esi, esi
pop ecx
je 0x5d87f2
push dword [esp + 4]
push esi
mov ebp, esi
call fcn.006425b0
test bl, bl
mov eax, dword [esp + 0x324]
mov dword [esi + 0x104], eax
pop ecx
mov dword [esi + 0x10c], 0
pop ecx
je 0x5d87a0
push 0x208
call fcn.006402a0
mov dword [esi + 0x110], eax
lea edx, [esp + 0x118]
mov eax, dword [esi + 0x110]
pop ecx
push edx
push eax
call fcn.006425b0
pop ecx
pop ecx
jmp 0x5d87aa
mov dword [esi + 0x110], 0
inc dword [0xa108b8]
push dword [esp + 4]
jmp 0x5d87d2
lea eax, [esp + 0x114]
push str.___NOT_A_VALID_MP3
push eax
call fcn.00642600
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 0x5d8470
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_FindClose]
add esp, 0x460
pop ebp
pop edi
pop esi
pop ebx
ret