Function at 0x4a8270
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x730c16
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x338
push esi
push edi
mov esi, ecx
call fcn.00480c30
cmp byte [eax + 9], 0
jne 0x4a8810
mov eax, dword [0x8f2a3c]
shr eax, 5
and al, 1
mov byte [ebp - 0x24], al
mov eax, dword [esi + 4]
push dword [ebp - 0x24]
add eax, 0x27c
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b8270
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x24]
push ecx
mov dword [ebp - 0x84], eax
mov eax, esp
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x88], str.version_
push 5
mov dword [eax], 0xcd
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0xf8]
push 0x74b980
push eax
mov dword [ebp - 4], 0
call fcn.00486250
push 0x250
lea eax, [ebp - 0x348]
push 0
push eax
call fcn.006f4b50
add esp, 0x28
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0xe4], 8
lea ecx, [ebp - 0x348]
lea eax, [ebp - 0xf8]
cmovae eax, dword [ebp - 0xf8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
cmp eax, 0xffffffff
je 0x4a8387
test eax, eax
jne 0x4a8396
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4a8396
mov al, 1
jmp 0x4a8398
xor al, al
mov ecx, dword [ebx + 4]
test al, al
je 0x4a83b2
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientInstallerWindows_srcInstaller.cpp
push 0x306
push ecx
call fcn.004a02f0
add esp, 0xc
mov esi, dword [ebp - 0x24]
cmp esi, 0xffffffff
je 0x4a87fd
test esi, esi
je 0x4a87fd
nop word [eax + eax]
lea eax, [ebp - 0x31c]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a83e0
mov edi, dword [ebx + 8]
sub eax, edx
sar eax, 1
mov edx, edi
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
jb 0x4a83ff
mov edx, dword [edi]
cmp ecx, eax
jne 0x4a841c
push ecx
lea eax, [ebp - 0x31c]
push eax
push edx
call fcn.0048d5c0
add esp, 0xc
test eax, eax
je 0x4a87e0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x31c]
cmovae ecx, dword [ebp - 0x40]
sub esp, 0x10
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x94], eax
mov eax, esp
mov dword [ebp - 0xa0], ecx
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x98], edx
push 5
mov dword [eax], 0xcd
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0x68]
push 0x74b980
push eax
call fcn.00486250
cmp dword [ebp - 0x54], 8
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x58]
cmovae ecx, dword [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xa4], eax
mov eax, esp
mov dword [ebp - 0xb0], ecx
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xa8], str.RobloxPlayerBeta.exe
push 5
mov dword [eax], 0xcd
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0x80]
push 0x74b980
push eax
mov byte [ebp - 4], 3
call fcn.00486250
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 4
push 0
push eax
call fcn.0055fea0
add esp, 0x24
test al, al
je 0x4a8754
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0x1c], eax
je 0x4a852b
cmp byte [0x8e0c40], 0
je 0x4a852b
test cl, cl
je 0x4a8615
cmp cl, 6
jb 0x4a8615
shr ecx, 8
cmp cl, 4
jb 0x4a8615
jmp 0x4a8533
test cl, cl
je 0x4a8615
lea eax, [ebp - 0x80]
mov dword [ebp - 0x18], 0x138411c
mov esi, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xc8]
sub esi, 0xc36074
push eax
call fcn.005060a0
add esp, 8
mov edx, eax
mov eax, dword [0x8300d0]
mov ecx, esi
mov dword [ebp - 0x20], eax
mov eax, dword [str.DesktopInstaller]
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a8571
sub ecx, edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
jb 0x4a8584
mov edi, dword [edx]
mov eax, dword [edx + 0x10]
lea edx, [ebp - 0x48]
push 1
sub esp, 0x10
mov dword [ebp - 0x44], eax
mov eax, esp
mov dword [ebp - 0x48], edi
push ecx
push esi
push 4
push dword [ebp - 0x18]
mov dword [eax], 0xd
push dword [ebp - 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], edx
call fcn.00505470
mov edx, dword [ebp - 0xb4]
add esp, 0x28
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x4a85f7
mov ecx, dword [ebp - 0xc8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a85ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a8825
push edx
push ecx
call fcn.00503df0
add esp, 8
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
lea eax, [ebp - 0x68]
push eax
call fcn.00560ac0
add esp, 4
test al, al
jne 0x4a8754
cmp byte [0xa82632], 0
mov eax, dword [str.DesktopInstaller]
mov ecx, dword [0x8300d0]
mov dword [ebp - 0x1c], eax
je 0x4a8668
cmp byte [0x8e0c40], 0
je 0x4a8668
test cl, cl
je 0x4a8754
cmp cl, 6
jb 0x4a8754
shr ecx, 8
cmp cl, 3
jb 0x4a8754
jmp 0x4a8670
test cl, cl
je 0x4a8754
lea eax, [ebp - 0x68]
mov dword [ebp - 0x1c], 0x1393f38
mov esi, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0xe0]
sub esi, 0xc45e58
push eax
call fcn.005060a0
add esp, 8
mov edx, eax
mov eax, dword [0x8300d0]
mov ecx, esi
mov dword [ebp - 0x18], eax
mov eax, dword [str.DesktopInstaller]
mov byte [ebp - 4], 6
mov dword [ebp - 0x1c], eax
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a86b0
sub ecx, edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
jb 0x4a86c3
mov edi, dword [edx]
mov eax, dword [edx + 0x10]
lea edx, [ebp - 0x50]
push 1
sub esp, 0x10
mov dword [ebp - 0x4c], eax
mov eax, esp
mov dword [ebp - 0x50], edi
push ecx
push esi
push 3
push dword [ebp - 0x1c]
mov dword [eax], 0xd
push dword [ebp - 0x18]
mov dword [eax + 4], 0
mov dword [eax + 8], edx
call fcn.00505470
mov edx, dword [ebp - 0xcc]
add esp, 0x28
mov byte [ebp - 4], 4
cmp edx, 0x10
jb 0x4a8736
mov ecx, dword [ebp - 0xe0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a872c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a8825
push edx
push ecx
call fcn.00503df0
add esp, 8
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0xf
mov byte [ebp - 0xe0], 0
mov edx, dword [ebp - 0x6c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x4a8792
mov ecx, dword [ebp - 0x80]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a8788
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a8825
push edx
push ecx
call fcn.00503df0
add esp, 8
mov edx, dword [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4a87e0
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a87d6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a8825
push edx
push ecx
call fcn.00503df0
add esp, 8
lea eax, [ebp - 0x348]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4a83d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0xf8]
call fcn.0047c860
lea ecx, [ebp - 0x40]
call fcn.0047c860
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.006fee64
int3