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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e7f0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2a74
call fcn.00429090
mov eax, dword [0x451c14]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x2a78], ebx
mov dword [ebp - 0x2a74], 0xffffffff
mov dword [ebp - 4], 0
test esi, esi
je 0x40d8da
test edi, edi
je 0x40d8da
mov eax, esi
lea edx, [eax + 2]
jmp 0x40d5e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d5e0
sub eax, edx
sar eax, 1
je 0x40d8da
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d600
sub eax, edx
sar eax, 1
je 0x40d8da
push 0x800
push 0
lea eax, [ebp - 0x181c]
push eax
call fcn.00428ee0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x201c]
push ecx
call fcn.00428ee0
add esp, 0xc
push 0x3ff
push esi
push 0x400
lea edx, [ebp - 0x181c]
push edx
call fcn.00426b21
push 0x3ff
push edi
push 0x400
lea eax, [ebp - 0x201c]
push eax
call fcn.00426b21
lea ecx, [ebp - 0x181c]
call fcn.0040f080
mov ecx, 0x44630c
lea edx, [ebp - 0x181c]
call fcn.0040f230
lea ecx, [ebp - 0x201c]
call fcn.0040f080
mov ecx, 0x44630c
lea edx, [ebp - 0x201c]
call fcn.0040f230
mov edi, dword [ebp + 0x18]
push edi
push ebx
lea edx, [ebp - 0x201c]
call fcn.0040e6f0
add esp, 0x28
mov esi, eax
mov dword [ebp - 0x2a70], esi
test esi, esi
je 0x40d6db
mov dword [ebp - 0x2a80], esi
push 0x44d030
lea ecx, [ebp - 0x2a80]
push ecx
call fcn.0042903a
push 0x800
push 0
lea edx, [ebp - 0x281c]
push edx
call fcn.00428ee0
add esp, 0xc
lea eax, [ebp - 0x181c]
push eax
push str._s.
lea edx, [ebp - 0x281c]
call fcn.004059c0
add esp, 8
lea ecx, [ebp - 0x2a6c]
push ecx
lea edx, [ebp - 0x281c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2a74], eax
mov ebx, dword [ebp + 0x20]
jmp 0x40d730
cmp dword [ebp - 0x2a74], 0xffffffff
je 0x40d8d1
lea eax, [ebp - 0x2a40]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d746
sub eax, edx
sar eax, 1
cmp eax, 2
jne 0x40d775
mov eax, 0x2e
cmp word [ebp - 0x2a40], ax
jne 0x40d775
cmp word [ebp - 0x2a3e], ax
je 0x40d89a
lea eax, [ebp - 0x2a40]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d780
sub eax, edx
sar eax, 1
cmp eax, 1
jne 0x40d7a2
cmp word [ebp - 0x2a40], 0x2e
je 0x40d89a
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.00428ee0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x101c]
push ecx
call fcn.00428ee0
add esp, 0xc
lea edx, [ebp - 0x2a40]
push edx
lea eax, [ebp - 0x181c]
push eax
push 0x445094
lea edx, [ebp - 0x81c]
call fcn.004059c0
add esp, 0xc
lea ecx, [ebp - 0x2a40]
push ecx
lea edx, [ebp - 0x201c]
push edx
push 0x445094
lea edx, [ebp - 0x101c]
call fcn.004059c0
add esp, 0xc
test byte [ebp - 0x2a6c], 0x10
je 0x40d874
mov eax, dword [ebp + 0x10]
test al, al
je 0x40d874
push ebx
mov ecx, dword [ebp + 0x1c]
push ecx
push edi
mov edx, dword [ebp - 0x2a78]
push edx
push eax
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x81c]
push ecx
call fcn.0040d570
add esp, 0x1c
mov esi, eax
mov dword [ebp - 0x2a70], esi
test esi, esi
je 0x40d89a
lea edx, [ebp - 0x101c]
push edx
lea eax, [ebp - 0x81c]
push eax
push str.Copy_Directory_:__s______s_
mov ecx, esi
mov edx, 0x463520
call fcn.0040be20
add esp, 0xc
jmp 0x40d89a
push ebx
push 0
movzx ecx, byte [ebp + 0x1c]
push ecx
push edi
mov edx, dword [ebp - 0x2a78]
push edx
lea eax, [ebp - 0x101c]
push eax
lea ecx, [ebp - 0x81c]
push ecx
call fcn.0040d0f0
add esp, 0x1c
lea edx, [ebp - 0x2a6c]
push edx
mov eax, dword [ebp - 0x2a74]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d730
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x2a70], esi
cmp esi, 0x12
jne 0x40d8d1
xor esi, esi
mov dword [ebp - 0x2a70], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x40d929
mov eax, 0x57
jmp 0x40d93d
mov eax, dword [ebp - 0x2a74]
cmp eax, 0xffffffff
je 0x40d93b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042683e
mov esp, ebp
pop ebp
ret