Function at 0x42c960
Capabilities:
Enumerate files on windows
Get common file path
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4ca77c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x494
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x58]
call fcn.004028c0
mov al, byte [esp + 0x13]
xor ebp, ebp
push ebp
lea ecx, [esp + 0x48]
mov dword [esp + 0x4b0], ebp
mov byte [esp + 0x48], al
call fcn.00401600
mov cl, byte [esp + 0x13]
push ebp
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
mov byte [esp + 0x4b0], 1
call fcn.00401600
mov dl, byte [esp + 0x13]
mov bl, 2
push ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b0], bl
mov byte [esp + 0x18], dl
call fcn.00401600
mov ecx, dword [0x5d8ff0]
mov byte [esp + 0x4ac], 3
cmp ecx, ebp
mov dword [esp + 0x24], ebp
jne 0x42c9f2
xor edx, edx
jmp 0x42ca0d
mov esi, dword [0x5d8ff4]
mov eax, 0xb40b40b5
sub esi, ecx
imul esi
add edx, esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, dword [ecx]
cmp edx, 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
jle 0x42ca47
mov eax, 0x16c
dec edx
mov edi, dword [esp + 0x2c]
cmp dword [eax + ecx], edi
jae 0x42ca32
mov edi, dword [eax + ecx]
mov dword [esp + 0x2c], edi
mov edi, dword [eax + ecx]
cmp edi, esi
jbe 0x42ca3f
mov esi, edi
mov dword [esp + 0x28], esi
add eax, 0x16c
dec edx
jne 0x42ca22
lea ecx, [esp + 0x2a0]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea edi, [esp + 0x2a0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2a0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.00401560
mov edi, str.Music.ojn
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Music.ojn
lea ecx, [esp + 0x4c]
call fcn.0042d220
mov eax, dword [esp + 0x48]
cmp eax, ebp
jne 0x42caa8
mov eax, 0x4cf414
lea ecx, [esp + 0x160]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x54], eax
jne 0x42cafd
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x4b0], bl
call fcn.00401600
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4b0], 1
call fcn.00401600
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x4b0], 0
call fcn.00401600
jmp 0x42cea7
mov edi, str.Music_
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00401870
test al, al
je 0x42cb41
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, str.Music_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00401e40
lea edi, [esp + 0x18c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x18c]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.0042d220
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42cb71
mov eax, 0x4cf414
push eax
lea ecx, [esp + 0x5c]
call fcn.004029d0
test eax, eax
je 0x42cdd2
lea ecx, [esp + 0x58]
call fcn.00402a20
test eax, eax
jbe 0x42cdd2
lea ecx, [esp + 0x58]
call fcn.00402b00
lea ecx, [esp + 0x58]
mov ebx, eax
call fcn.004029f0
mov ecx, ebx
lea edx, [esp + 0x40]
shr ecx, 0x10
mov edi, 0x4dfdec
jne 0x42cbbd
mov edi, 0x4dfde8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x42cbe7
mov edi, 0x4cf414
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x3a4]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x3a4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x40]
push ecx
push edx
call fcn.004b7dbe
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call fcn.00401870
test al, al
je 0x42cc5e
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
call fcn.00401e40
mov edi, str..ojm
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str..ojm
lea ecx, [esp + 0x38]
call fcn.0042d220
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x42cc89
mov eax, 0x4cf414
push eax
lea ecx, [esp + 0x5c]
call fcn.004029d0
test eax, eax
je 0x42cd8a
lea ecx, [esp + 0x58]
call fcn.00402a20
test eax, eax
lea ecx, [esp + 0x58]
jbe 0x42ccf0
call fcn.004029f0
cmp dword [esp + 0x2c], ebx
ja 0x42cdd2
cmp dword [esp + 0x28], ebx
jb 0x42cdd2
cmp ebx, 0x22b8
je 0x42cdd2
mov ecx, dword [esp + 0x24]
or bh, 0x80
mov eax, ecx
inc ecx
mov dword [esp + 0x24], ecx
push ebx
push eax
mov ecx, 0x5ecbb8
call fcn.0046b250
jmp 0x42cdd2
call fcn.00402a20
test eax, eax
jne 0x42cdd2
lea ecx, [esp + 0x58]
call fcn.004029f0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42cd13
mov eax, 0x4cf414
push 6
push eax
call fcn.004c8ffa
add esp, 8
test eax, eax
je 0x42cd38
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42cd2f
mov eax, 0x4cf414
push 0x20
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42cd45
mov eax, 0x4cf414
push eax
call fcn.004b8e56
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
jne 0x42cd5b
mov eax, 0x4cf414
push 6
push eax
call fcn.004c8ffa
add esp, 8
test eax, eax
je 0x42cd80
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x42cd77
mov eax, 0x4cf414
push 0x20
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x42cdc9
jmp 0x42cdc4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42cd97
mov eax, 0x4cf414
push 6
push eax
call fcn.004c8ffa
add esp, 8
test eax, eax
je 0x42cdbc
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42cdb3
mov eax, 0x4cf414
push 0x20
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x42cdc9
mov eax, 0x4cf414
push eax
call fcn.004b8e56
add esp, 4
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x160]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42cafd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
jne 0x42cafd
mov edx, dword [esp + 0x24]
mov ecx, 0x5ecbb8
push edx
call fcn.0046b240
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x42ce39
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42ce30
cmp al, 0xff
je 0x42ce30
dec al
mov byte [ecx], al
jmp 0x42ce39
push ecx
call fcn.004a9db0
add esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], esi
cmp eax, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x42ce6a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42ce61
cmp al, 0xff
je 0x42ce61
dec al
mov byte [ecx], al
jmp 0x42ce6a
push ecx
call fcn.004a9db0
add esp, 4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x34], esi
cmp eax, esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
je 0x42ce9b
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x42ce92
cmp al, 0xff
je 0x42ce92
dec al
mov byte [ecx], al
jmp 0x42ce9b
push ecx
call fcn.004a9db0
add esp, 4
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
lea ecx, [esp + 0x58]
mov dword [esp + 0x4ac], 0xffffffff
call fcn.00402900
mov ecx, dword [esp + 0x4a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4a0
ret