Function at 0x421dd0
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45c36c
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
xor eax, esp
push eax
lea eax, [esp + 0x2ec]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2fc]
mov edi, ecx
mov ebx, 8
cmp dword [edi + 0x18], ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
lea esi, [edi + 4]
jb 0x421e2d
mov eax, dword [esi]
jmp 0x421e2f
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422012
cmp dword [edi + 0x18], ebx
jb 0x421e45
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422012
test al, 0x10
je 0x422012
push 3
xor ebp, ebp
mov ebx, 7
push 0x46571c
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], bp
call fcn.00406f80
lea ecx, [esp + 0x78]
push ecx
mov edx, esi
mov ecx, edi
mov dword [esp + 0x2f8], ebp
call fcn.0041ff30
add esp, 4
mov esi, 8
mov byte [esp + 0x2f4], 2
cmp dword [esp + 0x3c], esi
jb 0x421eb9
mov edx, dword [esp + 0x28]
push edx
call fcn.004415cb
add esp, 4
push 0x250
lea eax, [esp + 0x98]
push ebp
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebp
mov word [esp + 0x34], bp
call fcn.00446fa0
mov eax, dword [esp + 0x88]
add esp, 0xc
cmp dword [esp + 0x90], esi
jae 0x421ef0
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
mov esi, 1
je 0x4220a6
jmp 0x421f17
mov edi, dword [esp + 0x14]
cmp esi, ebp
je 0x4220a2
lea eax, [esp + 0xc0]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebp
mov word [esp + 0x44], bp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x421f40
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc4]
push edx
lea esi, [esp + 0x48]
call fcn.00406f80
push edi
mov ebx, 0x4624bc
lea esi, [esp + 0x60]
mov byte [esp + 0x2f8], 3
call fcn.00408960
add esp, 4
push ebp
lea eax, [esp + 0x44]
push eax
or eax, 0xffffffff
mov byte [esp + 0x2fc], 4
call fcn.00406df0
mov eax, dword [esp + 0x54]
push 0x463e84
mov edi, 1
lea ecx, [esp + 0x44]
call fcn.00411070
test eax, eax
je 0x422040
mov eax, dword [esp + 0x54]
push 0x465724
mov edi, 2
lea ecx, [esp + 0x44]
call fcn.00411070
test eax, eax
je 0x422040
test byte [esp + 0x94], 0x10
je 0x422019
mov ecx, esi
push ecx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 0x64
call fcn.00422100
add esp, 8
cmp edx, ebp
jg 0x421ff7
jl 0x422040
cmp eax, ebp
jbe 0x422040
lea ecx, [esp + 0x5c]
call fcn.00406b10
lea ecx, [esp + 0x40]
call fcn.00406b10
lea ecx, [esp + 0x78]
call fcn.00406b10
xor eax, eax
jmp 0x4220c9
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], 8
mov edi, dword [eax + 0x14]
jb 0x42202b
mov eax, dword [eax + 4]
jmp 0x42202e
add eax, 4
push eax
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x44]
call fcn.00411070
test eax, eax
jne 0x421ff7
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, 8
cmp dword [esp + 0x74], edi
mov esi, eax
jb 0x42206d
mov edx, dword [esp + 0x60]
push edx
call fcn.004415cb
add esp, 4
mov byte [esp + 0x2f4], 2
cmp dword [esp + 0x58], edi
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebp
mov word [esp + 0x60], bp
jb 0x421f13
mov eax, dword [esp + 0x44]
push eax
call fcn.004415cb
add esp, 4
jmp 0x421f13
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x90], 8
jb 0x4220c4
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004415cb
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.004414cc
add esp, 0x2e4
ret