Function at 0x40dd94
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x4b8f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x460], esi
push edi
test ebx, ebx
je 0x40e007
cmp dword [ebx], esi
je 0x40e007
push dword [ebx]
call fcn.00401f4a
push esi
lea edi, [eax + 1]
mov ecx, edi
mov dword [ebp - 0x464], edi
shl ecx, 2
push ecx
call fcn.0042036b
mov esi, eax
mov dword [ebp - 0x470], esi
pop ecx
pop ecx
test esi, esi
je 0x40e00a
push edi
push esi
push dword [ebx]
call fcn.00406256
mov eax, esi
mov edi, esi
mov dword [ebp - 0x468], eax
push 0x3b
pop edx
xor ecx, ecx
jmp 0x40de15
cmp word [edi], dx
je 0x40de1a
add edi, 2
cmp word [edi], cx
jne 0x40de0d
mov esi, edi
cmp word [edi], cx
je 0x40de2b
xor ecx, ecx
mov word [edi], cx
add edi, 2
jmp 0x40de2d
mov edi, ecx
lea ecx, [ebp - 0x45c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x47c], eax
cmp eax, 0xffffffff
jne 0x40de53
mov eax, edi
mov dword [ebp - 0x468], eax
jmp 0x40dfe1
and dword [ebp - 0x478], 0
mov eax, dword [ebp - 0x470]
jmp 0x40de6f
movzx ecx, word [esi]
test cx, cx
je 0x40de8f
cmp ecx, 0x5c
je 0x40de78
sub esi, 2
cmp esi, eax
jae 0x40de62
jmp 0x40de8f
push dword [ebp - 0x468]
xor eax, eax
mov word [esi + 2], ax
call fcn.00401f4a
mov dword [ebp - 0x478], eax
mov esi, dword [ebp - 0x464]
lea eax, [esi*4 + 0x400]
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x430]
push eax
call fcn.00401f4a
mov ecx, dword [ebp - 0x478]
mov edx, 0x104
add eax, ecx
mov dword [ebp - 0x474], eax
cmp eax, edx
jae 0x40dfb2
xor eax, eax
mov word [ebp - 0x20c], ax
test ecx, ecx
je 0x40deee
push edx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x468]
call fcn.00406256
mov edx, 0x104
push edx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.00430486
lea eax, [ebp - 0x20c]
push eax
call fcn.0041b604
test eax, eax
jne 0x40dfb2
mov eax, dword [ebp - 0x474]
mov ecx, dword [ebp - 0x460]
inc eax
add eax, ecx
cmp eax, esi
jle 0x40df6b
mov eax, dword [ebx]
push dword [ebp - 0x46c]
mov dword [ebp - 0x474], eax
lea eax, [ebp - 0x474]
push eax
call fcn.00420379
pop ecx
pop ecx
test eax, eax
je 0x40dffb
mov ecx, dword [ebp - 0x460]
add esi, 0x100
add dword [ebp - 0x46c], 0x400
mov dword [ebx], eax
mov dword [ebp - 0x464], esi
test ecx, ecx
je 0x40df7f
mov eax, dword [ebx]
push 0x3b
pop edx
mov word [eax + ecx*2], dx
inc ecx
mov dword [ebp - 0x460], ecx
mov eax, dword [ebp - 0x464]
lea esi, [ecx + ecx]
sub eax, ecx
push eax
mov eax, dword [ebx]
add eax, esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00406256
mov eax, dword [ebx]
add eax, esi
push eax
call fcn.00401f4a
add dword [ebp - 0x460], eax
mov esi, dword [ebp - 0x464]
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40dea2
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov dword [ebp - 0x468], edi
test edi, edi
jne 0x40de06
cmp dword [ebp - 0x460], edi
jne 0x40dffb
push dword [ebx]
call fcn.0046d68f
and dword [ebx], edi
pop ecx
push dword [ebp - 0x470]
call fcn.0046d68f
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044d772
mov esp, ebp
pop ebp
ret 4