Function at 0x401d10
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438553
mov eax, dword fs:[0]
push eax
sub esp, 0x864
mov eax, dword [0x450068]
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 edi, edx
mov dword [ebp - 0x870], ecx
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0041d060
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0041d060
push 0x1dc
lea eax, [ebp - 0x600]
push 0
push eax
call fcn.0041d060
add esp, 0x24
lea ecx, [ebp - 0x600]
call fcn.0040ba50
mov byte [ebp - 4], 1
xor ebx, ebx
mov eax, dword [ebp + 0x18]
mov ecx, 2
add eax, 0xa
mov dword [ebp - 0x854], eax
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.0041aed7
mov esi, eax
add esp, 4
test esi, esi
je 0x401dd1
push ebx
push 0
push esi
call fcn.0041d060
add esp, 0xc
jmp 0x401dd3
xor esi, esi
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x401ea9
cmp dword [ebp - 0x424], 0
je 0x401ea9
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push str._system32_
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x401ea9
cmp dword [ebp + 0x1c], 8
lea edx, [ebp + 8]
lea ecx, [ebp - 0x86c]
cmovae edx, dword [ebp + 8]
sub esp, 8
call fcn.00413580
cmp dword [ebp - 0x858], 8
lea eax, [ebp - 0x86c]
cmovae eax, dword [ebp - 0x86c]
push eax
push str._s.
push dword [ebp - 0x854]
push esi
call fcn.00413080
mov edx, dword [ebp - 0x858]
add esp, 0x18
cmp edx, 8
jb 0x401ec9
mov ecx, dword [ebp - 0x86c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401e9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402100
push edx
push ecx
call fcn.0041aec9
add esp, 8
jmp 0x401ec9
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push str._s.
push dword [ebp - 0x854]
push esi
call fcn.00413080
add esp, 0x10
lea eax, [ebp - 0x850]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
mov dword [ebp - 0x424], eax
call fcn.0041aafc
mov eax, dword [ebp - 0x424]
add esp, 4
cmp eax, 0xffffffff
je 0x4020a3
nop word [eax + eax]
test byte [ebp - 0x850], 0x10
jne 0x40207a
lea eax, [ebp - 0x824]
push eax
push 0x447a54
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00401bf0
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edx, eax
mov dword [ebp - 0x85c], 0
mov ecx, edx
mov dword [ebp - 0x858], 7
xor eax, eax
mov word [ebp - 0x86c], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f80
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x86c]
call fcn.00402cf0
mov esi, dword [0x4520b4]
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x854]
mov ecx, 0x4520b0
push eax
call fcn.00402ad0
cmp dword [ebp - 0x854], esi
mov edx, dword [ebp - 0x858]
sete bl
cmp edx, 8
jb 0x402003
mov ecx, dword [ebp - 0x86c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x401ff9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402100
push edx
push ecx
call fcn.0041aec9
add esp, 8
test bl, bl
jne 0x402074
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x824]
push ecx
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push str._ls_ls
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00401bf0
add esp, 0x10
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x600]
push 1
push 0
push eax
call fcn.0040c8a0
push ecx
lea ecx, [ebp - 0x600]
cmp byte [edi + 0x1c], bl
je 0x40205d
push edi
call fcn.0040de10
jmp 0x402069
push dword [ebp - 0x870]
push edi
call fcn.0040e190
lea ecx, [ebp - 0x600]
call fcn.0040c7a0
mov eax, dword [ebp - 0x424]
lea ecx, [ebp - 0x850]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402097
mov eax, dword [ebp - 0x424]
jmp 0x401f00
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x600]
call fcn.0040bf90
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4020e4
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4020da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402105
push edx
push ecx
call fcn.0041aec9
add esp, 8
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.0041aaeb
mov esp, ebp
pop ebp
ret
call fcn.00422e9e
call fcn.00422e9e
int3