Function at 0x4154d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d39e5
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x52ad60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x2c4], eax
mov edi, ecx
and dword [ebp - 0x20], 0xfffffe00
mov dword [ebp - 0x2c0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x2a4], 0
call fcn.0040c860
test al, al
jne 0x41554b
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov byte [ebp - 4], 2
mov al, byte [edi + 8]
mov dword [ebp - 0x18], 0
test al, al
je 0x415578
cmp al, 7
je 0x415578
push 0x42b
push str...CrossRiderGeneralJsonjson_value.cpp
push str.type___nullValue__type___objectValue
call fcn.004b650c
add esp, 0xc
cmp byte [edi + 8], 0
jne 0x415588
mov ecx, 0x52fad0
jmp 0x415614
mov dword [ebp - 0x2b0], str.path
mov dword [ebp - 0x2ac], 0
mov ebx, dword [edi]
lea eax, [ebp - 0x2b0]
push eax
mov ecx, ebx
call fcn.0044ab30
mov ecx, dword [ebx]
cmp eax, ecx
je 0x4155f4
mov esi, dword [eax + 0x10]
mov edx, str.path
lea ebx, [ebx]
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x4155e0
test bl, bl
je 0x4155dc
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x4155e0
add edx, 2
add esi, 2
test bl, bl
jne 0x4155c0
xor edx, edx
jmp 0x4155e5
sbb edx, edx
or edx, 1
test edx, edx
sets dl
mov dword [ebp - 0x29c], eax
test dl, dl
je 0x4155fa
mov dword [ebp - 0x29c], ecx
mov ecx, dword [edi]
lea eax, [ebp - 0x29c]
mov eax, dword [eax]
mov byte [ebp - 4], 2
cmp eax, dword [ecx]
mov ecx, 0x52fad0
je 0x415614
lea ecx, [eax + 0x18]
sub esp, 0x18
push esp
call fcn.00449570
lea ecx, [ebp - 0x18]
call fcn.004312a0
add esp, 0x18
mov byte [ebp - 4], 4
mov al, byte [edi + 8]
test al, al
je 0x41564e
cmp al, 7
je 0x41564e
push 0x42b
push str...CrossRiderGeneralJsonjson_value.cpp
push str.type___nullValue__type___objectValue
call fcn.004b650c
add esp, 0xc
cmp byte [edi + 8], 0
jne 0x41565e
mov ecx, 0x52fad0
jmp 0x4156e2
mov dword [ebp - 0x2b0], str.folder
mov dword [ebp - 0x2ac], 0
mov edi, dword [edi]
lea eax, [ebp - 0x2b0]
push eax
mov ecx, edi
call fcn.0044ab30
mov ecx, dword [edi]
cmp eax, ecx
je 0x4156c4
mov esi, dword [eax + 0x10]
mov edx, str.folder
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x4156b0
test bl, bl
je 0x4156ac
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x4156b0
add edx, 2
add esi, 2
test bl, bl
jne 0x415690
xor edx, edx
jmp 0x4156b5
sbb edx, edx
or edx, 1
test edx, edx
sets dl
mov dword [ebp - 0x29c], eax
test dl, dl
je 0x4156ca
mov dword [ebp - 0x29c], ecx
lea eax, [ebp - 0x29c]
mov eax, dword [eax]
cmp eax, ecx
mov byte [ebp - 4], 4
mov ecx, 0x52fad0
je 0x4156e2
lea ecx, [eax + 0x18]
call fcn.00449a60
push 2
test al, al
push 0x513494
lea ecx, [ebp - 0x18]
setne byte [ebp - 0x2a5]
call fcn.00426d60
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2a4], eax
cmp eax, 0xffffffff
jne 0x415904
mov dword [ebp - 0x2a0], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x52a6d0
push eax
push str.enumFileSystem_FindFirstFile__d
lea ecx, [ebp - 0x2a0]
call fcn.00426ce0
push str.enumFolders
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 6
call fcn.00403720
mov byte [ebp - 4], 7
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c8], esi
lea eax, [ebp - 0x2a0]
push eax
lea edx, [ebp - 0x2c8]
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 8
call fcn.00431540
add esp, 4
mov edi, eax
push str.GlobalLog
lea ecx, [ebp - 0x2bc]
mov byte [ebp - 4], 9
call fcn.00403720
push 2
push edi
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x2bc]
push eax
mov ecx, 0x52f7a4
mov byte [ebp - 4], 0xa
call fcn.004018e0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x2bc]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4157ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x2ac]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41580f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41582c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41584f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0x2a0]
lea ecx, [ebp - 0x2e0]
call fcn.00431370
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xb
call fcn.00449200
push ecx
push str.error
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
call fcn.00449e90
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xb
call fcn.004493f0
cmp dword [ebp - 0x2cc], 0x10
jb 0x4158b6
push dword [ebp - 0x2e0]
call fcn.004b3a0c
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2a0]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4158d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4158f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2a4]
jmp 0x415d7c
mov ebx, dword [ebp - 0x2b0]
or edi, 0xffffffff
lea ecx, [ecx]
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2a0], esi
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 0xd
test eax, 0xffff0000
jne 0x41598c
movzx edi, ax
mov ecx, edi
call fcn.00405570
test eax, eax
je 0x415958
push edi
push eax
lea ecx, [ebp - 0x2a0]
call fcn.00404ab0
mov esi, dword [ebp - 0x2a0]
or edi, 0xffffffff
mov byte [ebp - 4], 0xe
mov ecx, 0x5134f8
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4159bf
test dx, dx
je 0x415988
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4159bf
add eax, 4
add ecx, 4
test dx, dx
jne 0x415966
xor eax, eax
jmp 0x4159c4
lea ecx, [ebp - 0x26c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415995
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004046f0
mov esi, dword [ebp - 0x2a0]
jmp 0x41595b
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x415ae9
mov ecx, 0x5134fc
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4159fe
test dx, dx
je 0x4159fa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4159fe
add eax, 4
add ecx, 4
test dx, dx
jne 0x4159d8
xor eax, eax
jmp 0x415a03
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x415ae9
cmp byte [ebp - 0x2a5], 0
je 0x415a27
test byte [ebp - 0x298], 0x10
jne 0x415a34
jmp 0x415ae9
test byte [ebp - 0x298], 0x10
jne 0x415ae9
lea edx, [ebp - 0x2a0]
lea ecx, [ebp - 0x2e0]
call fcn.00431370
mov edi, eax
mov byte [ebp - 4], 0xf
mov eax, dword [0x52fe1c]
and ebx, 0xffffff04
or ebx, 0x104
mov dword [ebp - 0x2b0], ebx
mov dword [ebp - 0x2ac], 0
test al, 1
jne 0x415a8f
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
cmp dword [edi + 0x14], 0x10
mov edx, dword [edi + 0x10]
jb 0x415a9a
mov edi, dword [edi]
mov ecx, dword [0x52c374]
push edx
mov eax, dword [ecx]
push edi
call dword [eax + 0xc]
mov dword [ebp - 0x2b8], eax
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x10
call fcn.0044a170
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 0xf
call fcn.004493f0
cmp dword [ebp - 0x2cc], 0x10
jb 0x415ae6
push dword [ebp - 0x2e0]
call fcn.004b3a0c
add esp, 4
or edi, 0xffffffff
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415b06
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x2a4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415910
mov eax, dword [ebp - 0x20]
test al, al
je 0x415b34
cmp al, 6
je 0x415b34
cmp al, 7
jne 0x415c28
movsx eax, al
cmp eax, 7
ja case.default.0x415b3c
jmp dword [eax*4 + 0x415f5c]
mov eax, dword [ebp - 0x28]
cmp dword [eax + 4], 0
je case.0x415b3c.0
mov eax, dword [eax]
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x29c], eax
call fcn.0042c250
mov eax, dword [ebp - 0x29c]
mov eax, dword [eax + 0x14]
inc eax
jmp 0x415b8c
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
jmp 0x415b8c
push 0x388
push str...CrossRiderGeneralJsonjson_value.cpp
push 0x5150d4
call fcn.004b650c
add esp, 0xc
xor eax, eax
test eax, eax
sete al
test al, al
je 0x415c28
mov eax, dword [ebp - 0x2b0]
and eax, 0xffffff04
or eax, 0x104
mov dword [ebp - 0x2b0], eax
mov eax, dword [0x52fe1c]
mov dword [ebp - 0x2ac], 0
test al, 1
jne 0x415be1
or eax, 1
push 0x4e01b0
mov dword [0x52fe1c], eax
mov dword [0x52fda0], 0x5184f8
call fcn.004b41d9
add esp, 4
mov ecx, dword [0x52c374]
push 0xffffffffffffffff
mov eax, dword [ecx]
push str.empty
call dword [eax + 0xc]
mov dword [ebp - 0x2b8], eax
push ecx
push str.error
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.00449e90
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 4
call fcn.004493f0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415c48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
jmp 0x415d72
mov eax, dword [ebp - 0x2a4]
test eax, eax
je 0x415d83
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x48], 0x514aec
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 0x19
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x2a4], esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x1a
call fcn.0044c090
mov edx, eax
mov byte [ebp - 4], 0x1b
cmp dword [edx + 0x14], 0x10
jb 0x415ddf
mov edx, dword [edx]
sub esp, 0x18
mov edi, esp
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp byte [edx], 0
jne 0x415dfe
xor ecx, ecx
jmp 0x415e0c
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x415e03
sub ecx, ebx
push ecx
push edx
mov ecx, edi
call fcn.004012f0
lea ecx, [ebp - 0x2c0]
call fcn.004312a0
add esp, 0x18
mov byte [ebp - 4], 0x1c
mov edx, dword [eax]
lea edi, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x415e7d
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x415e68
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x415e68
call fcn.004047b0
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x415e5d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov dword [ebp - 0x2a4], esi
jmp 0x415e7d
push dword [edx - 0xc]
lea ecx, [ebp - 0x2a4]
push edx
call fcn.004046f0
mov esi, dword [ebp - 0x2a4]
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x2c0]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415ea3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1a
cmp dword [ebp - 0x2cc], 0x10
jb 0x415ebe
push dword [ebp - 0x2e0]
call fcn.004b3a0c
add esp, 4
mov edi, dword [ebp - 0x2c4]
mov eax, 8
mov word [edi], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x415edf
call fcn.0040c760
add esi, 0xfffffff0
mov dword [edi + 8], eax
mov byte [ebp - 4], 0x19
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x415efd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x48], 0x514aec
jb 0x415f15
push dword [ebp - 0x44]
call fcn.004b3a0c
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0x5186b0
mov dword [ebp - 4], 0xffffffff
call fcn.004493f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b3a11
mov esp, ebp
pop ebp
ret