Function at 0x544c80
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, 0x90
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esp + 0x88], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x40]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea eax, [esp + 0x30]
push 0x8b
push str.file_enumerator_win.cc
push str.Next
push eax
call fcn.0051dbb0
add esp, 0x10
xor eax, eax
mov ecx, ebx
push eax
push eax
call fcn.00536a30
mov dword [esp + 0x78], 0xa
mov al, byte [0x64f42e]
test al, al
mov dword [esp + 8], esi
jne 0x545337
lea eax, [esi + 4]
mov dword [esp + 0x14], eax
lea eax, [esi + 0x258]
mov dword [esp + 0xc], eax
lea eax, [esi + 0x30]
mov dword [esp + 0x20], eax
lea eax, [esi + 0x284]
mov dword [esp + 0x10], eax
lea eax, [esi + 0x26c]
mov dword [esp + 0x1c], eax
lea ebx, [esp + 0x30]
cmp byte [esi], 0
je 0x545109
push dword [esp + 0x14]
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x545067
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x254], 0xffffffff
je 0x545094
xor eax, eax
dec eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x20]
push edi
call fcn.0057f442
add esp, 4
cmp eax, 0x7ffffff8
jae 0x5452fe
mov ebx, eax
cmp eax, 4
jbe 0x544f7a
mov esi, ebx
or esi, 3
inc esi
js 0x5452cf
lea eax, [esi + esi]
push eax
call fcn.0057dc30
add esp, 4
mov dword [esp + 0x24], eax
or esi, 0x80000000
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
lea esi, [eax + ebx*2]
cmp eax, edi
ja 0x544dc7
cmp esi, edi
ja 0x545310
test ebx, ebx
je 0x544dd8
add ebx, ebx
push ebx
push edi
push eax
call fcn.005822f0
add esp, 0xc
mov word [esi], 0
movsx edx, byte [esp + 0x2f]
test edx, edx
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov esi, edx
cmovs esi, ebx
lea edi, [esp + 0x24]
mov dword [esp + 0x18], eax
cmovs edi, eax
test esi, esi
je 0x544e23
xor eax, eax
xor ecx, ecx
nop word cs:[eax + eax]
cmp word [edi + eax*2], 0
je 0x54528e
add ecx, 0xfffffffe
inc eax
cmp esi, eax
jne 0x544e10
xor eax, eax
dec eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x24]
lea eax, [esp + 0x7c]
push eax
call fcn.00545430
cmp byte [esp + 0x87], 0
jns 0x544f9e
lea ebx, [esp + 0x30]
mov ecx, ebx
push dword [esp + 0x80]
push dword [esp + 0x80]
call fcn.00556f30
cmp byte [esp + 0x87], 0
mov edi, dword [ebp + 8]
jns 0x544e80
push dword [esp + 0x7c]
call fcn.0057dc2b
add esp, 4
movsx ecx, byte [esp + 0x3b]
test ecx, ecx
mov esi, dword [esp + 0x34]
cmovns esi, ecx
mov eax, dword [esp + 0x30]
mov edx, ebx
cmovs edx, eax
test esi, esi
js 0x5452d4
je 0x544ea9
test edx, edx
je 0x5452e3
cmp esi, 2
je 0x544ff9
cmp esi, 1
je 0x544fc1
xor ebx, ebx
mov esi, dword [esp + 8]
test cl, cl
jns 0x544ece
push eax
call fcn.0057dc2b
add esp, 4
test bl, bl
jne 0x544fdd
mov eax, dword [esp + 0x14]
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 + 0x2f]
test eax, eax
cmovs eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovns edx, ecx
test eax, eax
js 0x5452d4
je 0x544f10
test edx, edx
je 0x5452e3
mov ecx, dword [esp + 0xc]
push eax
push edx
push edi
call fcn.0053bfb0
xor esi, esi
inc esi
test bl, 0x10
jne 0x544f87
mov eax, dword [esp + 8]
test dword [eax + 0x268], esi
mov esi, eax
je 0x544fcd
mov eax, dword [esi + 0x278]
test eax, eax
jne 0x545026
cmp byte [esp + 0x2f], 0
jns 0x544f57
push dword [esp + 0x24]
call fcn.0057dc2b
add esp, 4
lea ecx, [esp + 0x40]
call fcn.00545870
mov ecx, dword [esp + 0x88]
xor ecx, ebp
call fcn.005810d5
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov byte [esp + 0x2f], bl
lea eax, [esp + 0x24]
jmp 0x544db8
mov esi, 2
mov eax, dword [esp + 8]
cmp byte [eax + 0x264], 0
je 0x544f24
jmp 0x54536c
mov eax, dword [esp + 0x84]
mov dword [esp + 0x38], eax
movq xmm0, qword [esp + 0x7c]
movq qword [esp + 0x30], xmm0
mov edi, dword [ebp + 8]
lea ebx, [esp + 0x30]
jmp 0x544e80
cmp word [edx], 0x2e
sete bl
jmp 0x544ebd
cmp byte [edi + 0xb], 0
jns 0x544fdd
push dword [edi]
call fcn.0057dc2b
add esp, 4
cmp byte [esp + 0x2f], 0
jns 0x544d24
push dword [esp + 0x24]
call fcn.0057dc2b
add esp, 4
jmp 0x544d24
cmp word [edx], 0x2e
mov esi, dword [esp + 8]
jne 0x54531f
test cl, cl
cmovs ebx, eax
cmp word [ebx + 2], 0x2e
jne 0x54531f
test byte [esi + 0x268], 4
sete bl
jmp 0x544ec1
cmp eax, 1
jne 0x545326
lea eax, [esi + 0x26c]
cmp byte [esi + 0x277], 0
js 0x545330
cmp byte [esp + 0x2f], 0
lea ecx, [esp + 0x24]
jns 0x545051
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
cmp eax, 1
je 0x544f44
jmp 0x544fcd
push dword [esi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0x254], 0xffffffff
jmp 0x544d49
mov dword [esi + 0x270], 1
mov ecx, dword [esi + 0x26c]
jmp 0x5450b6
mov byte [esi], 0
cmp dword [esi + 0x278], 0
jne 0x5450bc
cmp byte [esi + 0x277], 0
js 0x545082
lea ecx, [esi + 0x26c]
mov byte [esi + 0x277], 1
mov dword [ecx], 0x2a
cmp eax, 0x12
je 0x544d28
cmp dword [esi + 0x27c], 0
je 0x544d28
push eax
call fcn.004063b0
add esp, 4
mov dword [esi + 0x280], eax
pxor xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
jmp 0x544f57
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0xc]
mov dword [edx + 8], ecx
movq xmm0, qword [eax]
movq qword [edx], xmm0
jmp 0x545163
mov eax, dword [esi + 0x290]
cmp dword [esi + 0x28c], eax
je 0x5450e1
mov ecx, dword [esi + 0x288]
test eax, eax
je 0x545365
dec eax
cmp ecx, eax
jb 0x545307
lea eax, [eax + eax*2]
shl eax, 2
add eax, dword [esi + 0x284]
cmp dword [esp + 0xc], eax
je 0x545163
cmp byte [esi + 0x263], 0
movzx edx, byte [eax + 0xb]
js 0x545275
test dl, dl
jns 0x5450f5
mov ecx, dword [esp + 0xc]
push dword [eax + 4]
push dword [eax]
call fcn.00539670
mov eax, dword [esi + 0x288]
mov edx, dword [esi + 0x290]
test edx, edx
je 0x54539f
lea ecx, [edx - 1]
mov dword [esi + 0x290], ecx
cmp eax, edx
jb 0x5452f2
cmp eax, ecx
jb 0x54530a
cmp edx, 0x80000000
je 0x54530d
mov edx, dword [esp + 0x10]
mov edx, dword [edx]
lea ecx, [ecx + ecx*2]
cmp byte [edx + ecx*4 + 0xb], 0
jns 0x5451bf
lea eax, [edx + ecx*4]
push dword [eax]
call fcn.0057dc2b
add esp, 4
mov eax, dword [esi + 0x288]
cmp eax, 5
jae 0x5453af
xor eax, eax
dec eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x278]
test eax, eax
jne 0x54525f
movsx eax, byte [esi + 0x277]
mov edx, dword [esp + 0x1c]
test eax, eax
jns 0x5451fc
mov eax, dword [esi + 0x270]
mov edx, dword [esi + 0x26c]
test eax, eax
js 0x5452d4
je 0x54520e
test edx, edx
je 0x5452e3
mov ecx, dword [esp + 0xc]
push eax
push edx
push ebx
call fcn.0053bfb0
cmp byte [esp + 0x3b], 0
mov eax, ebx
jns 0x545227
mov eax, dword [esp + 0x30]
push 2
xor ecx, ecx
push ecx
push ecx
push dword [esp + 0x20]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [esi + 0x254], eax
mov byte [esi], 1
cmp byte [esp + 0x3b], 0
jns 0x544d49
push dword [esp + 0x30]
call fcn.0057dc2b
add esp, 4
jmp 0x544d49
cmp eax, 1
jne 0x545407
mov ecx, dword [esp + 0xc]
push 1
push 0x63527e
jmp 0x545214
test dl, dl
jns 0x54527e
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [esp + 0xc]
push edx
push eax
call fcn.00406c70
jmp 0x545163
cmp edi, ecx
je 0x544e23
cmp ecx, 2
je 0x544e23
neg ecx
sar ecx, 1
test dl, dl
jns 0x5452be
cmp ebx, ecx
jb 0x5452f5
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x18]
mov word [eax + ecx*2], 0
jmp 0x544e23
cmp ecx, edx
ja 0x5452f5
lea eax, [esp + 0x24]
mov dword [esp + 0x18], eax
mov byte [eax + 0xb], cl
jmp 0x5452af
call fcn.005b6d80
push str....._third_partylibc_srcinclude_string_view:314:_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 0x62a183
call fcn.005aacb0
push str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
push 0x62a183
call fcn.005aacb0
int3
lea ecx, [esp + 0x24]
call fcn.005b7070
lea ecx, [esp + 0x24]
call fcn.005ab850
int3
int3
int3
push str....._third_partylibc_srcinclude__stringchar_traits.h:223:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
push 0x62a183
call fcn.005aacb0
xor ebx, ebx
jmp 0x544ec1
call fcn.005ab050
jmp 0x544fcd
mov eax, dword [eax]
jmp 0x545042
movzx ecx, al
lea eax, [esp + 0x7c]
lea edx, [esp + 0x30]
mov dword [eax], edx
lea esi, [esp + 0x24]
mov dword [esi], str.ScopedBlockingCall
lea edx, [esp + 0x78]
push eax
push esi
mov esi, dword [esp + 0x10]
call fcn.005da0b0
add esp, 8
jmp 0x544cf8
mov eax, ecx
jmp 0x545125
cmp byte [edi + 0xb], 0
jns 0x545377
mov eax, dword [ebp + 8]
mov edi, dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
bt eax, 0xa
jae 0x54538c
mov edi, dword [ebp + 8]
jmp 0x544f24
mov ecx, dword [esp + 0x10]
mov edi, dword [ebp + 8]
mov edx, edi
call fcn.0040c800
jmp 0x544f24
lea ecx, [eax - 1]
mov dword [esi + 0x290], ecx
mov edx, eax
jmp 0x545188
mov edx, dword [esi + 0x28c]
mov ecx, dword [esp + 8]
mov esi, dword [ecx + 0x290]
xor ecx, ecx
cmp edx, esi
cmova ecx, eax
sub ecx, edx
add ecx, esi
mov esi, dword [esp + 8]
dec eax
mov edx, eax
sub edx, ecx
cmp edx, ecx
jb 0x5451c8
mov esi, ecx
shr esi, 2
add esi, ecx
cmp esi, 4
mov edx, 3
cmovae edx, esi
mov esi, dword [esp + 8]
cmp edx, eax
jae 0x5451c8
mov ecx, dword [esp + 0x10]
call fcn.005d9a10
jmp 0x5451c8
call fcn.005ab050
pxor xmm0, xmm0
movq qword [esp + 0x30], xmm0
mov dword [esp + 0x38], 0
jmp 0x54521a