Function at 0x4065e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414f03
mov eax, dword fs:[0]
push eax
sub esp, 0x6b4
mov eax, dword [0x41e090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x30]
mov dword [ebp - 0x6b8], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x6a8], eax
mov dword [ebp - 0x6b0], ecx
mov dword [ebp - 0x6a4], esi
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x683c94], eax
je 0x406667
xor edi, edi
mov eax, 0x41afef
call fcn.00404cc0
cmp dword [ebp + 0x24], 0x10
jb 0x40665d
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040b752
add esp, 4
mov eax, 1
jmp 0x407038
cmp dword [ecx], eax
je 0x406687
cmp dword [ebp + 0x24], 0x10
jb 0x40665d
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040b752
add esp, 4
mov eax, 1
jmp 0x407038
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x6b4], eax
mov dword [ebp - 0x41c], eax
mov byte [ebp - 0x42c], al
push ecx
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x418], 0xf
call fcn.00404910
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
cmp eax, ebx
jbe 0x4067cd
mov ecx, dword [ebp - 0x42c]
mov edi, 0x10
cmp dword [ebp - 0x418], edi
jae 0x4066e2
lea ecx, [ebp - 0x42c]
cmp byte [ecx + eax - 1], 0x5c
je 0x4067cd
mov eax, 0x41b1f0
lea ecx, [ebp - 0x448]
call fcn.00404d90
lea edx, [ebp - 0x448]
push edx
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x4b8]
push ecx
mov byte [ebp - 4], 2
call fcn.00404210
add esp, 0xc
mov esi, eax
lea edx, [ebp - 0x42c]
cmp edx, esi
je 0x40679b
cmp dword [ebp - 0x418], edi
jb 0x406741
mov eax, dword [ebp - 0x42c]
push eax
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
cmp dword [esi + 0x14], edi
jae 0x406773
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [ebp - 0x42c]
push esi
push ecx
call fcn.0040bab0
add esp, 0xc
jmp 0x40677d
mov edx, dword [esi]
mov dword [ebp - 0x42c], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x41c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x418], ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [ebp - 0x4a4], edi
jb 0x4067b2
mov edx, dword [ebp - 0x4b8]
push edx
call fcn.0040b752
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x434], edi
jb 0x4067cd
mov eax, dword [ebp - 0x448]
push eax
call fcn.0040b752
add esp, 4
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x454], ebx
mov byte [ebp - 0x464], bl
push ecx
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x464]
mov dword [ebp - 0x450], 0xf
call fcn.00404910
mov byte [ebp - 4], 4
lea edi, [ebx + 1]
mov eax, 0x41b44c
lea esi, [ebp - 0x480]
mov dword [ebp - 0x46c], 0xf
mov dword [ebp - 0x470], ebx
mov byte [ebp - 0x480], bl
call fcn.00404cc0
mov edx, esi
push edx
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x448]
push ecx
mov byte [ebp - 4], 5
call fcn.00404210
add esp, 0xc
mov esi, eax
lea edx, [ebp - 0x42c]
lea edi, [ebx + 0x10]
cmp edx, esi
je 0x4068c4
cmp dword [ebp - 0x418], edi
jb 0x40686a
mov eax, dword [ebp - 0x42c]
push eax
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
cmp dword [esi + 0x14], edi
jae 0x40689c
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [ebp - 0x42c]
push esi
push ecx
call fcn.0040bab0
add esp, 0xc
jmp 0x4068a6
mov edx, dword [esi]
mov dword [ebp - 0x42c], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x41c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x418], ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov byte [ebp - 4], 5
cmp dword [ebp - 0x434], edi
jb 0x4068df
mov edx, dword [ebp - 0x448]
push edx
call fcn.0040b752
add esp, 4
push 0x13c
lea eax, [ebp - 0x69c]
push ebx
push eax
mov dword [ebp - 0x6a0], ebx
call fcn.004128c0
mov eax, dword [ebp - 0x42c]
add esp, 0xc
cmp dword [ebp - 0x418], edi
jae 0x40690e
lea eax, [ebp - 0x42c]
lea ecx, [ebp - 0x6a0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x6bc], eax
cmp eax, 0xffffffff
jne 0x4069d0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x46c], edi
jb 0x406949
mov edx, dword [ebp - 0x480]
push edx
call fcn.0040b752
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x470], ebx
mov byte [ebp - 0x480], bl
cmp dword [ebp - 0x450], edi
jb 0x406977
mov eax, dword [ebp - 0x464]
push eax
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x454], ebx
mov byte [ebp - 0x464], bl
cmp dword [ebp - 0x418], edi
jb 0x4069a0
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
cmp dword [ebp + 0x24], edi
jb 0x4069c3
mov edx, dword [ebp + 0x10]
push edx
call fcn.0040b752
add esp, 4
xor eax, eax
jmp 0x407038
cmp dword [0x683c94], ebx
jne 0x407054
test byte [ebp - 0x6a0], 0x10
je 0x406f79
cmp byte [ebp - 0x674], 0x2e
je 0x406f79
mov eax, dword [ebp - 0x6a8]
push ebx
push ebx
push 0x405
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x674]
mov dword [ebp - 0x4c0], 0xf
mov dword [ebp - 0x4c4], ebx
mov byte [ebp - 0x4d4], bl
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406a30
sub eax, esi
mov edi, eax
lea eax, [ebp - 0x674]
lea esi, [ebp - 0x4d4]
call fcn.00404cc0
mov ecx, esi
push ecx
lea edx, [ebp - 0x464]
push edx
lea eax, [ebp - 0x49c]
push eax
mov byte [ebp - 4], 7
call fcn.00404210
add esp, 0xc
push str.Data
lea ecx, [ebp - 0x49c]
push ecx
lea edx, [ebp - 0x4b8]
push edx
mov byte [ebp - 4], 8
call fcn.00403fd0
add esp, 0xc
push str.Map
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x560]
push ecx
mov byte [ebp - 4], 9
call fcn.00403fd0
add esp, 0xc
push str.Wav
lea edx, [ebp - 0x49c]
push edx
lea eax, [ebp - 0x528]
push eax
mov byte [ebp - 4], 0xa
call fcn.00403fd0
add esp, 0xc
push str.DataChrSel.wil
lea ecx, [ebp - 0x49c]
push ecx
lea edx, [ebp - 0x50c]
push edx
mov byte [ebp - 4], 0xb
call fcn.00403fd0
add esp, 0xc
push str.DataPrguse.wil
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x4f0]
push ecx
mov byte [ebp - 4], 0xc
call fcn.00403fd0
add esp, 0xc
push str.Map0.map
lea edx, [ebp - 0x49c]
push edx
lea eax, [ebp - 0x544]
push eax
mov byte [ebp - 4], 0xd
call fcn.00403fd0
add esp, 0xc
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x4a4], 0x10
mov esi, dword [ebp - 0x4b8]
jae 0x406b3c
lea esi, [ebp - 0x4b8]
call fcn.00406290
mov edi, 0x10
test eax, eax
je 0x406d5e
mov esi, dword [ebp - 0x560]
cmp dword [ebp - 0x54c], edi
jae 0x406b62
lea esi, [ebp - 0x560]
call fcn.00406290
test eax, eax
je 0x406d5e
mov esi, dword [ebp - 0x528]
cmp dword [ebp - 0x514], edi
jae 0x406b83
lea esi, [ebp - 0x528]
call fcn.00406290
test eax, eax
je 0x406d5e
mov esi, dword [ebp - 0x50c]
cmp dword [ebp - 0x4f8], edi
jae 0x406ba4
lea esi, [ebp - 0x50c]
call fcn.00406300
test eax, eax
je 0x406d5e
mov esi, dword [ebp - 0x4f0]
cmp dword [ebp - 0x4dc], edi
jae 0x406bc5
lea esi, [ebp - 0x4f0]
call fcn.00406300
test eax, eax
je 0x406d5e
mov esi, dword [ebp - 0x544]
cmp dword [ebp - 0x530], edi
jae 0x406be6
lea esi, [ebp - 0x544]
call fcn.00406300
test eax, eax
je 0x406d5e
lea ecx, [ebp - 0x4d4]
push ecx
lea edx, [ebp - 0x464]
push edx
lea eax, [ebp - 0x448]
push eax
call fcn.00404210
add esp, 0xc
mov esi, dword [ebp - 0x6a4]
mov edi, eax
mov byte [ebp - 4], 0xf
call fcn.00404820
lea esi, [ebp - 0x448]
mov byte [ebp - 4], 0xe
call fcn.00404dd0
mov esi, dword [ebp - 0x6a4]
mov eax, esi
call fcn.00404900
mov edi, dword [ebp - 0x6b8]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0x3ff
lea ecx, [ebp - 0x40f]
push ebx
push ecx
mov byte [ebp - 0x410], bl
call fcn.004128c0
add esp, 0xc
mov eax, esi
call fcn.00404900
push eax
push 0x41b970
lea edx, [ebp - 0x410]
call fcn.00403fb0
add esp, 8
push 0x41
push 0x41aff0
lea edx, [ebp - 0x410]
push edx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x406cb6
mov eax, dword [ebp - 0x6b0]
mov dword [eax], 1
mov dword [ebp - 0x6b4], 1
jmp 0x406e37
lea ecx, [ebp - 0x4d4]
push ecx
lea edx, [ebp - 0x464]
push edx
lea eax, [ebp - 0x448]
push eax
call fcn.00404210
add esp, 0xc
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x434], 0x10
mov eax, dword [ebp - 0x448]
jae 0x406cec
lea eax, [ebp - 0x448]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
sub esp, 0x1c
lea eax, [ebp - 0x448]
mov esi, esp
mov dword [ebp - 0x6ac], esp
call fcn.00408930
call fcn.00406590
mov ecx, dword [ebp + 0x34]
add esp, 0x1c
cmp eax, ecx
jg 0x406d4e
mov edx, dword [ebp - 0x6b0]
push ecx
mov ecx, dword [ebp - 0x6a4]
push ecx
push edx
sub esp, 0x1c
lea eax, [ebp - 0x448]
mov esi, esp
mov dword [ebp - 0x6ac], esp
call fcn.00408930
mov eax, dword [ebp - 0x6a8]
push edi
push eax
call fcn.004065e0
add esp, 0x30
lea esi, [ebp - 0x448]
call fcn.00404dd0
jmp 0x406e37
lea ecx, [ebp - 0x4d4]
push ecx
lea edx, [ebp - 0x464]
push edx
lea eax, [ebp - 0x448]
push eax
call fcn.00404210
add esp, 0xc
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x448]
cmp dword [ebp - 0x434], edi
jae 0x406d93
lea eax, [ebp - 0x448]
mov esi, dword [ebp - 0x6b8]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
lea edx, [ebp - 0x448]
mov dword [ebp - 0x6ac], esp
mov byte [ecx], bl
push edx
or eax, 0xffffffff
xor ebx, ebx
call fcn.00404910
call fcn.00406590
mov ecx, dword [ebp + 0x34]
add esp, 0x1c
cmp eax, ecx
jg 0x406e1d
mov eax, dword [ebp - 0x6a4]
push ecx
mov ecx, dword [ebp - 0x6b0]
push eax
push ecx
sub esp, 0x1c
mov ecx, esp
lea edx, [ebp - 0x448]
mov dword [ebp - 0x6ac], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
or eax, 0xffffffff
mov byte [ecx], bl
call fcn.00404910
mov eax, dword [ebp - 0x6a8]
push esi
push eax
call fcn.004065e0
add esp, 0x30
cmp dword [ebp - 0x434], 0x10
jb 0x406e35
mov ecx, dword [ebp - 0x448]
push ecx
call fcn.0040b752
add esp, 4
xor ebx, ebx
mov esi, 0x10
lea edi, [esi - 1]
cmp dword [ebp - 0x530], esi
jb 0x406e56
mov edx, dword [ebp - 0x544]
push edx
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x530], edi
mov dword [ebp - 0x534], ebx
mov byte [ebp - 0x544], bl
cmp dword [ebp - 0x4dc], esi
jb 0x406e7f
mov eax, dword [ebp - 0x4f0]
push eax
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x4dc], edi
mov dword [ebp - 0x4e0], ebx
mov byte [ebp - 0x4f0], bl
cmp dword [ebp - 0x4f8], esi
jb 0x406ea8
mov ecx, dword [ebp - 0x50c]
push ecx
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x4f8], edi
mov dword [ebp - 0x4fc], ebx
mov byte [ebp - 0x50c], bl
cmp dword [ebp - 0x514], esi
jb 0x406ed1
mov edx, dword [ebp - 0x528]
push edx
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x514], edi
mov dword [ebp - 0x518], ebx
mov byte [ebp - 0x528], bl
cmp dword [ebp - 0x54c], esi
jb 0x406efa
mov eax, dword [ebp - 0x560]
push eax
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x54c], edi
mov dword [ebp - 0x550], ebx
mov byte [ebp - 0x560], bl
cmp dword [ebp - 0x4a4], esi
jb 0x406f23
mov ecx, dword [ebp - 0x4b8]
push ecx
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x4a4], edi
mov dword [ebp - 0x4a8], ebx
mov byte [ebp - 0x4b8], bl
cmp dword [ebp - 0x488], esi
jb 0x406f4c
mov edx, dword [ebp - 0x49c]
push edx
call fcn.0040b752
add esp, 4
mov byte [ebp - 4], 5
mov dword [ebp - 0x488], edi
mov dword [ebp - 0x48c], ebx
mov byte [ebp - 0x49c], bl
cmp dword [ebp - 0x4c0], esi
jb 0x406f79
mov eax, dword [ebp - 0x4d4]
push eax
call fcn.0040b752
add esp, 4
mov esi, dword [ebp - 0x6bc]
lea ecx, [ebp - 0x6a0]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4069d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 0x10
cmp dword [ebp - 0x46c], esi
jb 0x406fb8
mov eax, dword [ebp - 0x480]
push eax
call fcn.0040b752
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x46c], edi
mov dword [ebp - 0x470], ebx
mov byte [ebp - 0x480], bl
cmp dword [ebp - 0x450], esi
jb 0x406fe6
mov ecx, dword [ebp - 0x464]
push ecx
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x454], ebx
mov byte [ebp - 0x464], bl
cmp dword [ebp - 0x418], esi
jb 0x40700f
mov edx, dword [ebp - 0x42c]
push edx
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
cmp dword [ebp + 0x24], esi
jb 0x407032
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040b752
add esp, 4
mov eax, dword [ebp - 0x6b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b5e7
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x6a4]
xor edi, edi
mov eax, 0x41afef
call fcn.00404cc0
cmp dword [ebp - 0x46c], 0x10
jb 0x40707e
mov edx, dword [ebp - 0x480]
push edx
call fcn.0040b752
add esp, 4
mov edi, 0x10
mov esi, 0xf
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x470], ebx
mov byte [ebp - 0x480], bl
cmp dword [ebp - 0x450], edi
jb 0x4070b1
mov eax, dword [ebp - 0x464]
push eax
call fcn.0040b752
add esp, 4
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x454], ebx
mov byte [ebp - 0x464], bl
cmp dword [ebp - 0x418], edi
jb 0x4070da
mov ecx, dword [ebp - 0x42c]
push ecx
call fcn.0040b752
add esp, 4
cmp dword [ebp + 0x24], edi
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x42c], bl
jmp 0x40664f