Function at 0x401200
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x258
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x97cfe0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ebp, dword [esp + 0x26c]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x42c1b0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DllFile.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x42c1b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x128]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x42c1b0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x401768
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
push 0x42c1b0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x42c1b0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DllFile_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x42c1b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x158]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x42c1b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x401453
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x42c1b0
push 0x954fa8
call esi
push str.GetHeroAudio
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40144c
call eax
test eax, eax
mov dword [0x42d3c8], eax
mov byte [0x9550fe], bl
je 0x40144c
mov eax, dword [eax + 4]
push eax
push 0x954f80
call esi
mov edx, dword [0x42d3c8]
mov al, byte [edx + 0xd]
test al, 3
mov byte [0x9550fc], al
je 0x401440
mov eax, dword [0x42d3cc]
xor ecx, ecx
mov cl, byte [edx + 0xc]
mov dword [eax*4 + 0x954f20], ecx
inc eax
mov dword [0x42d3cc], eax
mov ecx, dword [edx + 8]
xor eax, eax
cmp byte [ecx], 0x23
je 0x401437
lea ebx, [esp + 0x24]
dec ebx
mov cl, byte [ecx + eax]
lea esi, [eax + 1]
mov byte [ebx + esi], cl
mov ecx, dword [edx + 8]
cmp byte [ecx + eax], 0x40
jne 0x401428
mov eax, dword [esp + 0x14]
inc eax
test al, 1
mov dword [esp + 0x14], eax
je 0x401428
lea eax, [esi + ecx]
mov edi, esi
cmp byte [eax], 0x40
je 0x401428
cmp byte [eax], 0x23
je 0x401428
cmp byte [eax - 1], 0x2e
jne 0x40141d
xor edx, edx
push 4
mov dl, byte [0x9550fe]
push eax
lea eax, [edx*4 + 0x9550ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor ecx, ecx
mov edx, dword [0x42d3c8]
mov cl, byte [0x9550fe]
mov byte [ecx*4 + 0x9550af], 0
mov al, byte [0x9550fe]
inc al
mov byte [0x9550fe], al
mov eax, dword [edx + 8]
inc edi
add eax, edi
cmp byte [eax], 0x40
jne 0x4013d7
mov ecx, dword [edx + 8]
mov eax, esi
cmp byte [ecx + eax], 0x23
jne 0x4013ae
mov dword [esp + 0x18], eax
mov byte [esp + eax + 0x24], 0x40
mov dword [esp + 0x10], 1
mov ebx, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x128]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4016a8
lea ebp, [ebx + ebx*2]
shl ebp, 7
sub ebp, ebx
mov edi, dword [esp + 0x26c]
or ecx, 0xffffffff
xor eax, eax
push 0x42c1b0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], 0
mov eax, ecx
mov esi, edi
mov edi, 0x42c1b0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DllFile_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x42c1b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x158]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x42c1b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x20], ebx
je 0x401689
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea esi, [ebp + 0x954f80]
push 0x42c1b0
lea eax, [esi + 0x28]
push eax
call edi
push str.GetHeroAudio
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401682
call eax
test eax, eax
mov dword [0x42d3c8], eax
mov byte [ebp + 0x9550fe], 0
je 0x401682
mov ecx, dword [eax + 4]
push ecx
push esi
call edi
mov ecx, dword [0x42d3c8]
mov al, byte [ecx + 0xd]
test al, 3
mov byte [esi + 0x17c], al
je 0x401673
mov eax, dword [0x42d3cc]
xor ebx, ebx
test eax, eax
jle 0x4015a1
xor edx, edx
mov dl, byte [ecx + 0xc]
mov esi, edx
mov edx, 0x954f20
cmp dword [edx], esi
je 0x40159c
inc ebx
add edx, 4
cmp ebx, eax
jl 0x40158e
jmp 0x4015a1
mov ebx, 0x64
xor edx, edx
inc eax
mov dl, byte [ecx + 0xc]
mov dword [0x42d3cc], eax
mov dword [eax*4 + 0x954f1c], edx
mov eax, dword [ecx + 8]
xor edi, edi
cmp byte [eax], 0x23
je 0x401659
cmp ebx, 0x64
je 0x4015d3
mov edx, dword [esp + 0x18]
mov al, byte [eax + edi]
add edx, edi
mov byte [esp + edx + 0x25], al
mov eax, dword [ecx + 8]
cmp byte [eax + edi], 0x40
jne 0x40164b
mov edx, dword [esp + 0x14]
inc edx
test dl, 1
mov dword [esp + 0x14], edx
je 0x40164b
lea esi, [edi + 1]
add eax, esi
cmp byte [eax], 0x40
je 0x40164b
cmp byte [eax], 0x23
je 0x40164b
cmp byte [eax - 1], 0x2e
jne 0x40163c
xor ecx, ecx
push 4
mov cl, byte [ebp + 0x9550fe]
push eax
lea edx, [ebp + ecx*4 + 0x9550ac]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov ecx, dword [0x42d3c8]
mov al, byte [ebp + 0x9550fe]
mov byte [ebp + eax*4 + 0x9550af], 0
mov al, byte [ebp + 0x9550fe]
inc al
mov byte [ebp + 0x9550fe], al
mov edx, dword [ecx + 8]
inc esi
lea eax, [edx + esi]
mov dl, byte [edx + esi]
cmp dl, 0x40
jne 0x4015f4
mov eax, dword [ecx + 8]
inc edi
cmp byte [eax + edi], 0x23
jne 0x4015c1
cmp ebx, 0x64
je 0x40166f
mov eax, dword [esp + 0x18]
lea edi, [eax + edi + 1]
mov dword [esp + 0x18], edi
mov byte [esp + edi + 0x24], 0x40
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
inc ecx
add ebp, 0x17f
mov dword [esp + 0x10], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x128]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401476
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ecx
mov dword [0x42d3c4], ebx
mov byte [esp + eax + 0x29], 0
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x24]
push edx
call esi
push str.All_Support_File_
push 0x9549c0
mov edi, eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x9549c0
call esi
xor esi, esi
test edi, edi
jle 0x40172e
cmp byte [esp + esi + 0x24], 0x40
jne 0x401729
inc ebx
test bl, 1
je 0x401729
mov cl, byte [esp + esi + 0x25]
lea edx, [esi + 1]
cmp cl, 0x40
je 0x40171a
mov byte [eax + 0x9549c0], cl
mov cl, byte [esp + edx + 0x25]
inc eax
inc edx
cmp cl, 0x40
jne 0x401709
lea ecx, [edi - 3]
cmp edx, ecx
jge 0x401729
mov byte [eax + 0x9549c0], 0x3b
inc eax
inc esi
cmp esi, edi
jl 0x4016f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4264c8
push 0x9549c0
call esi
lea edx, [esp + 0x24]
push edx
push 0x9549c0
call esi
push str.All_File_.__.__
push 0x9549c0
call esi
mov eax, dword [esp + 0x26c]
push eax
call fcn.00401090
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret