Function at 0x41d0c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [ebp + 8]
push esi
test eax, eax
push edi
je 0x41d14c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x41d14c
push eax
lea eax, [ebp - 0x144]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 1
lea ecx, [ebp - 0x144]
push 0
push ecx
push str.ForEachFile_____by_mask
call fcn.00419330
mov ecx, 0x50
xor eax, eax
lea edi, [ebp - 0x284]
add esp, 0x1c
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x284]
lea eax, [ebp - 0x144]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 8], esi
jne 0x41d154
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x144]
push eax
push ecx
push str.Cant_find_any_files_matching
call fcn.0041cc40
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x284]
mov dword [ebp - 4], 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x41d2db
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x258]
push 0x47fd98
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41d2be
lea ecx, [ebp - 0x258]
push 0x47fd9c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x41d2be
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41d289
push 1
push 0
push 0
lea edx, [ebp - 0x24]
push 0
push edx
call esi
test eax, eax
je 0x41d205
cmp dword [ebp - 0x20], 0x12
je 0x41d1fb
lea eax, [ebp - 0x24]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call ebx
push 1
push 0
push 0
lea edx, [ebp - 0x24]
push 0
push edx
call esi
test eax, eax
jne 0x41d1d5
jmp 0x41d205
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp + 0x14]
push 0x3ef
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
push 0
push 0
lea edx, [ebp - 0x40]
push 0
push edx
call esi
test eax, eax
je 0x41d267
cmp dword [ebp - 0x3c], 0x12
je 0x41d25d
lea eax, [ebp - 0x40]
push eax
call edi
lea ecx, [ebp - 0x40]
push ecx
call ebx
push 1
push 0
push 0
lea edx, [ebp - 0x40]
push 0
push edx
call esi
test eax, eax
jne 0x41d237
jmp 0x41d267
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp + 0x14]
push 0x3ee
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x405
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x258]
push eax
push ecx
lea edx, [ebp - 0x144]
push 0x47fda0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x144]
push eax
push ecx
call dword [ebp + 0xc]
add esp, 0x18
test eax, eax
jne 0x41d2be
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x284]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41d184
mov esi, dword [ebp - 8]
pop ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x41d302
lea ecx, [ebp - 0x144]
push eax
push ecx
push str.File_operation_failed_for
call fcn.0041cc40
add esp, 0xc
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 4]
mov eax, 0x47fdc4
test esi, esi
jne 0x41d31a
mov eax, str.FAIL
push 1
push 0
push eax
push str.ForEachFile____
call fcn.00419330
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret