Function at 0x401820
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push esi
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
push 0x4145a4
mov edx, dword [ebp - 4]
push edx
call fcn.00401e40
add esp, 8
test eax, eax
je 0x4019ce
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax + 2]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
shl ecx, 1
push ecx
call fcn.00403d9b
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401889
xor eax, eax
jmp 0x401a31
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x268]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00403d80
add esp, 4
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4018df
xor eax, eax
jmp 0x401a31
mov edx, 2
imul eax, edx, 0
movzx ecx, word [ebp + eax - 0x23c]
cmp ecx, 0x2e
jne 0x40190d
mov edx, 2
shl edx, 0
movzx eax, word [ebp + edx - 0x23c]
test eax, eax
jne 0x40190d
jmp 0x4019ab
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0x23c]
cmp eax, 0x2e
jne 0x40194c
mov ecx, 2
shl ecx, 0
movzx edx, word [ebp + ecx - 0x23c]
cmp edx, 0x2e
jne 0x40194c
mov eax, 2
shl eax, 1
movzx ecx, word [ebp + eax - 0x23c]
test ecx, ecx
jne 0x40194c
jmp 0x4019ab
mov edx, dword [ebp - 0x268]
and edx, 0x10
je 0x401959
jmp 0x4019ab
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401971
jmp 0x4019ab
push 0x4145a8
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401986
jmp 0x4019ab
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004017e0
test eax, eax
jne 0x4019ab
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x401a31
lea edx, [ebp - 0x268]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4018df
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4019f4
push str..idt
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401a17
mov ecx, dword [ebp - 4]
push ecx
push 0x4145c0
push 6
lea edx, [ebp - 0x470]
push edx
call fcn.00401f30
add esp, 0x10
lea eax, [ebp - 0x470]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004017e0
test eax, eax
jne 0x401a2c
xor eax, eax
jmp 0x401a31
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4