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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493aed
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x4aeea0]
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 esi, edx
mov dword [ebp - 0x2cc], esi
mov eax, ecx
mov dword [ebp - 0x2d0], eax
mov ebx, dword [ebp + 0xc]
push 0x4a4c30
mov edx, eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x2c4], 0
call fcn.00409df0
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x40d7cc
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
mov ebx, 1
jmp 0x40d809
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2d4], 7
mov dword [ebp - 0x2d8], 0
mov word [ebp - 0x2e8], ax
call fcn.00403e70
lea eax, [ebp - 0x2e8]
mov dword [ebp - 4], 2
mov ebx, 2
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x58], cx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x2c4], ebx
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
call fcn.00403e70
mov dword [ebp - 4], 3
test bl, 2
je 0x40d872
and ebx, 0xfffffffd
cmp dword [ebp - 0x2d4], 8
jb 0x40d855
push dword [ebp - 0x2e8]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2d4], 7
mov dword [ebp - 0x2d8], 0
mov word [ebp - 0x2e8], ax
mov byte [ebp - 4], 5
test bl, 1
je 0x40d88c
cmp dword [ebp - 0x2c], 8
jb 0x40d88c
push dword [ebp - 0x40]
call fcn.0045b2a0
add esp, 4
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c4], eax
cmp eax, 0xffffffff
jne 0x40d8ba
mov ebx, 1
jmp 0x40db52
mov edi, dword [ebp + 8]
lea ecx, [ecx]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x294], ax
je 0x40d8f5
lea eax, [ebp - 0x294]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d8e6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403710
push 1
push 0x4a4c38
mov byte [ebp - 4], 6
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404dd0
test eax, eax
je 0x40dab8
push 2
push 0x4a4c3c
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404dd0
test eax, eax
je 0x40dab8
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x300]
call fcn.0040af30
add esp, 4
push eax
mov ecx, esi
mov byte [ebp - 4], 7
call fcn.00403290
mov byte [ebp - 4], 6
cmp dword [ebp - 0x2ec], 8
jb 0x40d97b
push dword [ebp - 0x300]
call fcn.0045b2a0
add esp, 4
test byte [ebp - 0x2c0], 0x10
je 0x40dab8
test edi, edi
je 0x40dab8
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x318]
call fcn.0040af30
add esp, 4
push 0x4a4828
mov edx, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.00409ee0
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x304], 8
jb 0x40d9d6
push dword [ebp - 0x318]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [ebp - 0x304], 7
mov dword [ebp - 0x308], 0
mov word [ebp - 0x318], ax
test edi, edi
jns 0x40d9fc
or esi, 0xffffffff
jmp 0x40d9ff
lea esi, [edi - 1]
mov edx, dword [ebp - 0x2d0]
push 0x4a4828
lea ecx, [ebp - 0x330]
call fcn.00409df0
add esp, 4
lea ecx, [ebp - 0x28]
push ecx
mov edx, eax
lea ecx, [ebp - 0x300]
mov byte [ebp - 4], 0xb
call fcn.00409d70
add esp, 4
lea ecx, [ebp - 0x40]
push ecx
push esi
mov esi, dword [ebp - 0x2cc]
mov edx, esi
mov ecx, eax
mov byte [ebp - 4], 0xc
call fcn.0040d740
add esp, 8
test al, al
sete bl
cmp dword [ebp - 0x2ec], 8
jb 0x40da67
push dword [ebp - 0x300]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x31c], 8
mov dword [ebp - 0x2ec], 7
mov dword [ebp - 0x2f0], 0
mov word [ebp - 0x300], ax
jb 0x40da9f
push dword [ebp - 0x330]
call fcn.0045b2a0
add esp, 4
test bl, bl
jne 0x40daed
mov byte [ebp - 4], 6
cmp dword [ebp - 0x2c], 8
jb 0x40dab8
push dword [ebp - 0x40]
call fcn.0045b2a0
add esp, 4
lea eax, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2c4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40db2a
mov byte [ebp - 4], 5
cmp dword [ebp - 0x14], 8
jb 0x40d8c0
push dword [ebp - 0x28]
call fcn.0045b2a0
add esp, 4
jmp 0x40d8c0
cmp dword [ebp - 0x2c], 8
mov ebx, 1
jb 0x40db03
push dword [ebp - 0x40]
call fcn.0045b2a0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x14], 8
jb 0x40db4c
push dword [ebp - 0x28]
call fcn.0045b2a0
add esp, 4
jmp 0x40db4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40dbbb
cmp dword [ebp - 0x14], 8
jb 0x40db4a
push dword [ebp - 0x28]
call fcn.0045b2a0
add esp, 4
xor ebx, ebx
mov eax, dword [ebp - 0x2c4]
cmp dword [ebp - 0x2c8], 0
jne 0x40db62
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
sete bl
cmp dword [ebp - 0x44], 8
jb 0x40db78
push dword [ebp - 0x58]
call fcn.0045b2a0
add esp, 4
xor eax, eax
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
jb 0x40db9d
push dword [ebp - 0x70]
call fcn.0045b2a0
add esp, 4
mov al, bl
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.0045a8cf
mov esp, ebp
pop ebp
ret
mov ebx, 1
jmp 0x40db17