Function at 0x40d110
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [0x419b00]
sub esp, 0x144
push ebx
push ebp
push esi
push edi
xor edi, edi
cmp eax, edi
je 0x40d4b1
mov ebp, dword [esp + 0x158]
push 0x2f
push ebp
mov dword [0x419b00], edi
call fcn.0040dcd0
add esp, 8
cmp eax, edi
mov dword [0x41c31c], eax
jne 0x40d17f
push 0x3a
push ebp
call fcn.0040dcd0
add esp, 8
cmp eax, edi
jne 0x40d17f
mov esi, 0x419d68
mov dword [0x41c314], 1
mov dword [0x41c30c], esi
mov dword [0x41c310], edi
mov dword [0x41c31c], ebp
jmp 0x40d213
inc eax
mov dword [0x41c31c], eax
sub eax, ebp
mov dword [0x41c314], eax
inc eax
push eax
call fcn.0040db30
add esp, 4
cmp eax, edi
mov dword [0x41c30c], eax
jne 0x40d1e3
push str.warning:__cant_allocate_wildcard_buffers_n
push 0x419ea0
call fcn.0040dba4
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x41c1f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x41c1f8
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
mov ecx, dword [0x41c314]
push ecx
push ebp
push eax
call fcn.0040e270
mov edx, dword [0x41c30c]
mov eax, dword [0x41c314]
add esp, 0xc
mov byte [eax + edx], 0
mov esi, dword [0x41c30c]
mov dword [0x41c310], 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0x12c
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
call fcn.0040db30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d32d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 4
push ecx
call fcn.0040db30
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40d31d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + ebp - 1]
cmp al, 0x3a
jne 0x40d28d
mov byte [ecx + ebp], 0x2e
inc ecx
jmp 0x40d296
cmp al, 0x2f
je 0x40d295
cmp al, 0x5c
jne 0x40d296
dec ecx
lea eax, [ecx + ebp]
mov cx, word [0x419b04]
mov word [eax], cx
mov dl, byte [0x419b06]
mov byte [eax + 2], dl
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x128], eax
jne 0x40d2dd
push ebx
call fcn.0040df2e
push ebp
call fcn.0040df2e
mov ebp, dword [esp + 0x160]
add esp, 8
xor ebx, ebx
jmp 0x40d32f
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040df2e
mov ebp, dword [esp + 0x15c]
add esp, 4
mov dword [ebx + 0x124], 1
jmp 0x40d32f
push ebx
call fcn.0040df2e
mov ebp, dword [esp + 0x15c]
add esp, 4
xor ebx, ebx
test ebx, ebx
mov dword [0x41c338], ebx
je 0x40d47f
jmp 0x40d345
mov ebx, dword [0x41c338]
mov eax, dword [ebx + 0x124]
test eax, eax
je 0x40d35b
mov dword [ebx + 0x124], 0
jmp 0x40d399
mov edx, dword [ebx + 0x128]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40d458
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x40d458
mov ecx, dword [0x41c31c]
push 1
lea edx, [ebx + 0x20]
push ecx
push edx
call fcn.00408e20
add esp, 0xc
test eax, eax
je 0x40d33f
mov eax, dword [0x41c310]
test eax, eax
je 0x40d425
mov edi, dword [0x41c30c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x41c1f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x41c314]
lea edi, [ebx + 0x20]
lea edx, [ecx + 0x41c1f8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x41c1f8
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [ebx + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 0x41c1f8
mov edx, ecx
mov esi, edi
mov edi, 0x41c1f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
mov eax, dword [0x41c338]
mov esi, eax
mov eax, dword [eax + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.0040df2e
add esp, 4
mov dword [0x41c338], 0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x41c1f8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
mov eax, 0x41c1f8
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
mov ebx, dword [0x41c338]
cmp ebx, edi
jne 0x40d4dd
mov eax, dword [0x41c310]
mov dword [0x419b00], 1
cmp eax, edi
je 0x40d5cd
mov eax, dword [0x41c30c]
push eax
jmp 0x40d5c5
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x40d4eb
mov ebx, dword [0x41c338]
cmp dword [ebx + 0x124], edi
je 0x40d4fb
mov dword [ebx + 0x124], edi
jmp 0x40d533
mov edx, dword [ebx + 0x128]
lea ecx, [esp + 0x14]
push ecx
push edx
call ebp
test eax, eax
je 0x40d588
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
cmp ebx, edi
je 0x40d588
mov ecx, dword [0x41c31c]
push 1
lea edx, [ebx + 0x20]
push ecx
push edx
call fcn.00408e20
add esp, 0xc
test eax, eax
je 0x40d4e5
mov eax, dword [0x41c310]
cmp eax, edi
lea edi, [ebx + 0x20]
je 0x40d481
mov eax, dword [0x41c314]
or ecx, 0xffffffff
lea edx, [eax + 0x41c1f8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x40d49c
mov eax, dword [0x41c338]
mov esi, eax
mov eax, dword [eax + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.0040df2e
mov eax, dword [0x41c310]
add esp, 4
cmp eax, edi
mov dword [0x41c338], edi
mov dword [0x419b00], 1
je 0x40d5cd
mov ecx, dword [0x41c30c]
push ecx
call fcn.0040df2e
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret