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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x423020]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [esp + 0x46c]
push edi
mov dword [esp + 0xc], esi
mov eax, esi
sub edx, esi
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4055b0
lea eax, [esp + 0x470]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4055d0
mov ecx, dword [0x4202c0]
mov edx, dword [0x4202c4]
mov dword [eax], ecx
mov cx, word [0x4202c8]
mov dword [eax + 4], edx
lea edx, [esp + 0x18]
mov word [eax + 8], cx
push edx
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
jne 0x405641
push esi
lea ecx, [esp + 0x474]
push ecx
push str.cannot_FindFirstFileW__s_copy__s_n
call fcn.00403ce0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x44]
push edx
push esi
lea eax, [esp + 0x270]
push 0x4202cc
push eax
call edi
add esp, 0x10
test byte [esp + 0x18], 0x10
lea eax, [esp + 0x44]
je 0x4056f8
mov ecx, 0x4202d8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405699
test dx, dx
je 0x405695
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405699
add eax, 4
add ecx, 4
test dx, dx
jne 0x405673
xor eax, eax
jmp 0x40569e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4057bb
mov ecx, 0x4202dc
lea eax, [esp + 0x44]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4056d6
test dx, dx
je 0x4056d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4056d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4056b0
xor eax, eax
jmp 0x4056db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4057bb
lea ecx, [esp + 0x268]
push ecx
call fcn.00405580
add esp, 4
jmp 0x4057bb
mov ecx, 0x420424
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405726
test dx, dx
je 0x405722
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405726
add eax, 4
add ecx, 4
test dx, dx
jne 0x405700
xor eax, eax
jmp 0x40572b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4057bb
mov ebx, dword [0x4c43a8]
mov eax, dword [0x4c4198]
mov esi, ebx
imul esi, esi, 0x220
lea edx, [esi + 0x220]
push edx
push eax
call fcn.0040c5c2
push 0x220
add esi, eax
push 0
inc ebx
push esi
mov dword [0x4c4198], eax
mov dword [0x4c43a8], ebx
call fcn.0040c810
lea ecx, [esi + 0x210]
push ecx
xor edx, edx
lea ecx, [esp + 0x280]
call fcn.004053b0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [0x4c43ac]
mov dword [esi + 0x20c], eax
lea eax, [esp + edx*2 + 0x280]
push eax
push 0x104
push esi
mov dword [esi + 0x208], ecx
call fcn.0040b3d5
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
add esp, 0x24
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405647
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x40582d
call esi
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x400
mov esi, eax
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0x14]
push eax
push esi
push str._d:__s
mov ecx, 0x100
mov ebx, 0x4c48e0
call fcn.00403b90
mov ecx, dword [esp + 0x18]
push ebx
push ecx
push str.copy_error____s_n
call fcn.00403ce0
mov ebx, dword [esp + 0x28]
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a3ae
mov esp, ebp
pop ebp
ret