Function at 0x452c40
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
mov eax, dword [0x56d380]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x278], ecx
mov ecx, dword [ebp + 8]
push edi
push ecx
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x260], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, dword [ebp + 8]
jne 0x452cd0
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x452c9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452cbb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00500397
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [eax - 0xc]
cmp esi, 1
jg 0x452cef
add eax, 0xfffffff0
push eax
call fcn.00403b50
add esp, 4
add eax, 0x10
mov dword [ebp - 0x258], eax
jmp 0x452d27
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x452d01
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x452d11
mov edx, dword [0x56c260]
mov eax, dword [edx + 0x10]
mov ecx, 0x56c260
call eax
mov ecx, dword [ebp + 8]
push eax
lea ecx, [ecx + esi*2 - 2]
push 1
push ecx
lea ecx, [ebp - 0x258]
call fcn.00403330
lea edx, [ebp - 0x258]
push 0x556338
push edx
call fcn.00441a90
mov bl, al
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452d5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x452d72
push 1
push 0x556338
lea ecx, [ebp + 8]
call fcn.004034c0
mov edx, dword [0x56c260]
mov eax, dword [edx + 0xc]
mov ecx, 0x56c260
call eax
push 0x545c1c
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x268]
add eax, 0x10
push edx
mov dword [ebp - 0x258], eax
call fcn.00428550
mov eax, dword [0x56c260]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x56c260
call edx
mov ecx, dword [ebp - 0x268]
add eax, 0x10
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
je 0x453073
mov edi, edi
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x452df0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x258]
call fcn.00403ee0
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x452e27
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x452e37
mov edx, dword [0x56c260]
mov eax, dword [edx + 0x10]
mov ecx, 0x56c260
call eax
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x453137
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [ebp - 0x258]
mov edi, dword [ecx - 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebp + 8]
mov ebx, dword [eax - 0xc]
mov dword [ebp - 0x27c], edi
add edi, ebx
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x274], eax
js 0x453141
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x452e9e
push edi
lea ecx, [ebp - 0x270]
call fcn.00403d60
mov esi, dword [ebp - 0x270]
mov edx, dword [ebp - 0x274]
add ebx, ebx
push ebx
push edx
push ebx
push esi
call fcn.004fe509
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x258]
add eax, eax
push eax
push ecx
push eax
add ebx, esi
push ebx
call fcn.004fe509
add esp, 0x20
cmp edi, dword [esi - 8]
jg 0x453141
mov ebx, dword [ebp - 0x25c]
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
lea edi, [esi - 0x10]
add ebx, 0xfffffff0
cmp edi, ebx
je 0x452f37
cmp dword [ebx + 0xc], edx
jl 0x452f27
mov eax, dword [edi]
cmp eax, dword [ebx]
jne 0x452f27
push edi
call fcn.00403b50
mov esi, eax
add esp, 4
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x452f1c
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
add esi, 0x10
mov dword [ebp - 0x25c], esi
jmp 0x452f37
mov eax, dword [esi - 0xc]
push eax
push esi
lea ecx, [ebp - 0x25c]
call fcn.00403ee0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452f50
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test byte [ebp - 0x254], 0x10
je 0x453039
mov eax, dword [ebp - 0x258]
mov ecx, 0x545c18
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x452f9b
test dx, dx
je 0x452f97
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x452f9b
add eax, 4
add ecx, 4
test dx, dx
jne 0x452f75
xor eax, eax
jmp 0x452fa0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x453051
lea ecx, [ebp - 0x258]
push 0x545c10
push ecx
call fcn.00441a90
add esp, 8
test al, al
je 0x453051
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x258]
push eax
call fcn.00441a30
add esp, 8
test al, al
je 0x453051
push 1
push 0x556338
lea ecx, [ebp - 0x25c]
call fcn.004034c0
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ebp + 0xc]
push ecx
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.00403b50
mov edx, dword [ebp - 0x25c]
add eax, 0x10
mov dword [esi], eax
add edx, 0xfffffff0
mov esi, esp
push edx
call fcn.00403b50
mov ecx, dword [ebp - 0x278]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00452c40
add dword [ebp - 0x260], eax
jmp 0x453051
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x25c]
push eax
call fcn.00452bd0
inc dword [ebp - 0x260]
mov edx, dword [ebp - 0x264]
lea ecx, [ebp - 0x254]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x452de0
mov eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45309c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4530be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4530e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4530ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45311e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x260]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00500397
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00404190
push 0x80070057
call fcn.00404190
int3