Function at 0x53ffe0
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x646040]
xor eax, ebp
mov dword [esp + 0x98], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x50]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea eax, [esp + 0x40]
push 0x8b
push str.file_enumerator_win.cc
push str.Next
push eax
call fcn.00509c60
add esp, 0x10
xor eax, eax
mov ecx, ebx
push eax
push eax
call fcn.00520c00
mov dword [esp + 0x88], 0xa
mov al, byte [0x64b456]
test al, al
mov dword [esp + 8], esi
jne 0x5407c9
lea eax, [esi + 0x258]
mov dword [esp + 4], eax
lea eax, [esi + 4]
mov dword [esp + 0x18], eax
lea eax, [esi + 0x30]
mov dword [esp + 0x30], eax
lea eax, [esi + 0x26c]
mov dword [esp + 0x2c], eax
cmp byte [esi], 0
je 0x540410
push dword [esp + 0x18]
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x54039c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x254], 0xffffffff
je 0x540596
xor eax, eax
dec eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x30]
push edi
call fcn.00565872
add esp, 4
cmp eax, 0x7ffffff8
jae 0x540768
mov ebx, eax
cmp eax, 4
jbe 0x5402dc
mov esi, ebx
or esi, 3
inc esi
js 0x54078f
lea eax, [esi + esi]
push eax
call fcn.00564055
add esp, 4
mov dword [esp + 0x34], eax
or esi, 0x80000000
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
lea esi, [eax + ebx*2]
cmp eax, edi
seta cl
cmp esi, edi
setbe dl
or dl, cl
je 0x540794
test ebx, ebx
je 0x540133
add ebx, ebx
push ebx
push edi
push eax
call fcn.00568550
add esp, 0xc
mov word [esi], 0
movsx edx, byte [esp + 0x3f]
test edx, edx
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov esi, edx
cmovs esi, ebx
lea edi, [esp + 0x34]
mov dword [esp + 0x10], eax
cmovs edi, eax
test esi, esi
je 0x540173
xor eax, eax
xor ecx, ecx
nop
cmp word [edi + eax*2], 0
je 0x540725
add ecx, 0xfffffffe
inc eax
cmp esi, eax
jne 0x540160
xor eax, eax
dec eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x34]
lea eax, [esp + 0x8c]
push eax
call fcn.0052a290
cmp byte [esp + 0x97], 0
jns 0x540300
lea ebx, [esp + 0x40]
mov ecx, ebx
push dword [esp + 0x90]
push dword [esp + 0x90]
call fcn.005421d0
cmp byte [esp + 0x97], 0
mov edi, dword [ebp + 8]
jns 0x5401d6
push dword [esp + 0x8c]
call fcn.00564050
add esp, 4
movsx ecx, byte [esp + 0x4b]
test ecx, ecx
mov esi, dword [esp + 0x44]
cmovns esi, ecx
mov eax, dword [esp + 0x40]
mov edx, ebx
cmovs edx, eax
test esi, esi
js 0x540771
sete bl
test edx, edx
setne bh
or bh, bl
je 0x540780
cmp esi, 2
je 0x5403b7
cmp esi, 1
je 0x540326
xor ebx, ebx
mov esi, dword [esp + 8]
test cl, cl
jns 0x54022a
push eax
call fcn.00564050
add esp, 4
test bl, bl
jne 0x540342
mov eax, dword [esp + 0x18]
mov ebx, dword [eax]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
movsx eax, byte [esp + 0x3f]
test eax, eax
cmovs eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x34]
cmovns edx, ecx
test eax, eax
js 0x540771
sete cl
test edx, edx
setne ch
or ch, cl
je 0x540780
mov ecx, dword [esp + 4]
push eax
push edx
push edi
call fcn.0052c020
xor esi, esi
inc esi
test bl, 0x10
jne 0x5402e9
mov eax, dword [esp + 8]
test dword [eax + 0x268], esi
mov esi, eax
je 0x540332
mov eax, dword [esi + 0x278]
test eax, eax
jne 0x54035e
cmp byte [esp + 0x3f], 0
jns 0x5402b9
push dword [esp + 0x34]
call fcn.00564050
add esp, 4
lea ecx, [esp + 0x50]
call fcn.00540880
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.00567335
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov byte [esp + 0x3f], bl
lea eax, [esp + 0x34]
jmp 0x54010d
mov esi, 2
mov eax, dword [esp + 8]
cmp byte [eax + 0x264], 1
jne 0x540286
jmp 0x5405e6
mov eax, dword [esp + 0x94]
mov dword [esp + 0x48], eax
movq xmm0, qword [esp + 0x8c]
movq qword [esp + 0x40], xmm0
mov edi, dword [ebp + 8]
lea ebx, [esp + 0x40]
jmp 0x5401d6
cmp word [edx], 0x2e
sete bl
jmp 0x540219
cmp byte [edi + 0xb], 0
jns 0x540342
push dword [edi]
call fcn.00564050
add esp, 4
cmp byte [esp + 0x3f], 0
jns 0x54007d
push dword [esp + 0x34]
call fcn.00564050
add esp, 4
jmp 0x54007d
cmp eax, 1
jne 0x5407b8
lea eax, [esi + 0x26c]
cmp byte [esi + 0x277], 0
js 0x5407c2
cmp byte [esp + 0x3f], 0
lea ecx, [esp + 0x34]
jns 0x540389
mov ecx, dword [esp + 0x34]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x5402a6
jmp 0x540332
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
jmp 0x54009e
cmp word [edx], 0x2e
mov esi, dword [esp + 8]
lea edx, [esp + 0x40]
jne 0x540644
test cl, cl
cmovs edx, eax
cmp word [edx + 2], 0x2e
jne 0x540644
test byte [esi + 0x268], 4
sete bl
jmp 0x54021d
pxor xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
jmp 0x5402b9
mov ecx, dword [eax + 8]
mov edx, dword [esp + 4]
mov dword [edx + 8], ecx
movq xmm0, qword [eax]
movq qword [edx], xmm0
jmp 0x54046a
mov eax, dword [esi + 0x290]
cmp dword [esi + 0x28c], eax
je 0x5403e8
mov ecx, dword [esi + 0x288]
test eax, eax
je 0x5407fd
dec eax
cmp ecx, eax
jb 0x5407a3
lea eax, [eax + eax*2]
shl eax, 2
add eax, dword [esi + 0x284]
cmp dword [esp + 4], eax
je 0x54046a
cmp byte [esi + 0x263], 0
movzx edx, byte [eax + 0xb]
js 0x540617
test dl, dl
jns 0x5403fc
mov ecx, dword [esp + 4]
push dword [eax + 4]
push dword [eax]
call fcn.0052a7d0
lea ebx, [esi + 0x290]
mov eax, dword [esi + 0x288]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x540804
lea ecx, [edx - 1]
mov dword [ebx], ecx
cmp eax, edx
jb 0x5407a6
cmp eax, ecx
jb 0x5407a9
cmp edx, 0x80000000
je 0x5407ac
lea edx, [esi + 0x284]
mov dword [esp + 0x10], edx
mov edx, dword [edx]
lea ecx, [ecx + ecx*2]
cmp byte [edx + ecx*4 + 0xb], 0
jns 0x5404ce
lea eax, [edx + ecx*4]
push dword [eax]
call fcn.00564050
add esp, 4
mov eax, dword [esi + 0x288]
cmp eax, 5
jae 0x54064b
xor eax, eax
dec eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0x278]
test eax, eax
jne 0x54050d
movsx eax, byte [esi + 0x277]
test eax, eax
lea ebx, [esp + 0x40]
jns 0x540527
mov eax, dword [esi + 0x270]
mov edx, dword [esi + 0x26c]
jmp 0x54052d
cmp eax, 1
lea ebx, [esp + 0x40]
jne 0x540810
mov ecx, dword [esp + 4]
push 1
push 0x6304be
jmp 0x54054b
lea edx, [esi + 0x26c]
test eax, eax
js 0x540771
sete cl
test edx, edx
setne ch
or ch, cl
je 0x540780
mov ecx, dword [esp + 4]
push eax
push edx
push ebx
call fcn.0052c020
cmp byte [esp + 0x4b], 0
mov eax, ebx
jns 0x54055e
mov eax, dword [esp + 0x40]
push 2
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x24]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [esi + 0x254], eax
mov byte [esi], 1
cmp byte [esp + 0x4b], 0
jns 0x54009e
push dword [esp + 0x40]
call fcn.00564050
add esp, 4
jmp 0x54009e
mov byte [esi], 0
cmp dword [esi + 0x278], 0
jne 0x5405bc
cmp byte [esi + 0x277], 0
js 0x5405d4
mov byte [esi + 0x277], 1
mov ecx, dword [esp + 0x2c]
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x54007d
cmp dword [esi + 0x27c], 0
je 0x54007d
jmp 0x540630
mov dword [esi + 0x270], 1
mov ecx, dword [esi + 0x26c]
jmp 0x5405b6
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x5405f0
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jb 0x540286
mov eax, dword [esp + 8]
lea ecx, [eax + 0x284]
mov edx, edi
call fcn.00410c40
jmp 0x540286
test dl, dl
jns 0x540620
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 4]
push edx
push eax
call fcn.00407e90
jmp 0x54046a
push eax
call fcn.00407630
add esp, 4
mov dword [esi + 0x280], eax
jmp 0x5403e8
xor ebx, ebx
jmp 0x54021d
lea ecx, [esi + 0x28c]
mov dword [esp + 0x28], ecx
mov edx, dword [ecx]
mov ecx, dword [ebx]
mov dword [esp + 0xc], ecx
xor ecx, ecx
cmp edx, dword [esp + 0xc]
cmova ecx, eax
mov dword [esp + 0x24], edx
sub ecx, edx
add ecx, dword [esp + 0xc]
dec eax
mov edx, eax
sub edx, ecx
cmp edx, ecx
jb 0x5404d7
mov edx, ecx
shr edx, 2
add edx, ecx
cmp edx, 4
mov ecx, 3
cmovae ecx, edx
cmp ecx, eax
jae 0x5404d7
mov eax, ecx
inc eax
mov ecx, 0xc
mov dword [esp + 0x20], eax
mul ecx
mov dword [esp + 0x14], eax
jo 0x540856
push 0
push dword [esp + 0x18]
push 0x637600
call fcn.0051f430
add esp, 0xc
mov ecx, eax
test eax, eax
mov dword [esp + 0x1c], eax
je 0x54082c
lea eax, [esp + 0x40]
mov dword [eax], ecx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push ebx
push dword [esp + 0x2c]
push eax
push dword [esp + 0x18]
call fcn.00410dd0
add esp, 0x10
push 0
push dword [esi + 0x284]
push 0x637600
call fcn.0050e100
add esp, 0xc
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x284], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x288], eax
jmp 0x5404d7
cmp edi, ecx
sete al
cmp ecx, 2
sete ah
or ah, al
jne 0x540173
neg ecx
sar ecx, 1
test dl, dl
jns 0x540757
cmp ebx, ecx
jb 0x5407af
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x10]
mov word [eax + ecx*2], 0
jmp 0x540173
cmp ecx, edx
ja 0x5407af
lea eax, [esp + 0x34]
mov dword [esp + 0x10], eax
mov byte [eax + 0xb], cl
jmp 0x540748
lea ecx, [esp + 0x34]
call fcn.00591860
push str....._third_partylibc_srcinclude_string_view:318:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
push 0x624e92
call fcn.005912b0
push str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
push 0x624e92
call fcn.005912b0
call fcn.00595030
push str....._third_partylibc_srcinclude__stringchar_traits.h:222:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
push 0x624e92
call fcn.005912b0
int3
int3
int3
int3
lea ecx, [esp + 0x34]
call fcn.00595290
call fcn.005938f0
jmp 0x540332
mov eax, dword [eax]
jmp 0x54037a
movzx ecx, al
lea eax, [esp + 0x8c]
lea edx, [esp + 0x40]
mov dword [eax], edx
lea esi, [esp + 0x34]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0x88]
push eax
push esi
mov esi, dword [esp + 0x10]
call fcn.005b7340
add esp, 8
jmp 0x54005b
mov eax, ecx
jmp 0x54042c
lea ecx, [eax - 1]
mov dword [ebx], ecx
mov edx, eax
jmp 0x540491
call fcn.005938f0
pxor xmm0, xmm0
movq qword [esp + 0x40], xmm0
mov dword [esp + 0x48], 0
jmp 0x540551
cmp byte [0x657014], 1
jne 0x5406d0
push dword [esp + 0x14]
call fcn.005caa40
mov ecx, dword [esp + 0x20]
add esp, 4
test al, al
jne 0x5406af
jmp 0x5406d0
int3