Function at 0x421ab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4838
mov eax, dword fs:[0]
push eax
sub esp, 0x428
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 dword [ebp - 0x4c], edx
mov dword [ebp - 0x54], edx
mov esi, ecx
and dword [ebp - 0x20], 0xfffffe00
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
call fcn.0040c860
test al, al
jne 0x421b45
mov edx, dword [0x52f408]
xor ecx, ecx
nop
mov eax, dword [ebp + ecx*4 - 0x428]
add eax, dword [ebp + ecx*4 - 0x42c]
add ecx, 4
add eax, dword [ebp + ecx*4 - 0x440]
add eax, dword [ebp + ecx*4 - 0x444]
imul eax, eax, 0xe5
add edx, eax
cmp ecx, 0x3b8
jb 0x421b10
mov dword [0x52f408], edx
mov eax, dword [ebp - 0x5c]
and eax, 0xffffff04
or eax, 0x104
mov dword [ebp - 0x5c], eax
mov eax, dword [0x52fe1c]
mov dword [ebp - 0x58], 0
test al, 1
jne 0x421b84
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.success
call dword [eax + 0xc]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push ecx
push str.error
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00449e90
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.004493f0
mov byte [ebp - 4], 3
mov al, byte [esi + 8]
mov dword [ebp - 0x18], 0
test al, al
je 0x421bef
cmp al, 7
je 0x421bef
push 0x42b
push str...CrossRiderGeneralJsonjson_value.cpp
push str.type___nullValue__type___objectValue
call fcn.004b650c
add esp, 0xc
cmp byte [esi + 8], 0
jne 0x421bfc
mov ecx, 0x52fad0
jmp 0x421c6e
mov dword [ebp - 0x5c], str.path
mov dword [ebp - 0x58], 0
mov edi, dword [esi]
lea eax, [ebp - 0x5c]
push eax
mov ecx, edi
call fcn.0044ab30
mov ecx, dword [edi]
cmp eax, ecx
je 0x421c56
mov esi, dword [eax + 0x10]
mov edx, str.path
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x421c45
test bl, bl
je 0x421c41
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x421c45
add edx, 2
add esi, 2
test bl, bl
jne 0x421c25
xor edx, edx
jmp 0x421c4a
sbb edx, edx
or edx, 1
test edx, edx
sets dl
mov dword [ebp - 0x50], eax
test dl, dl
je 0x421c59
mov dword [ebp - 0x50], ecx
lea eax, [ebp - 0x50]
mov eax, dword [eax]
cmp eax, ecx
mov byte [ebp - 4], 3
mov ecx, 0x52fad0
je 0x421c6e
lea ecx, [eax + 0x18]
sub esp, 0x18
push esp
call fcn.00449570
lea ecx, [ebp - 0x18]
call fcn.004312a0
add esp, 0x18
mov ecx, dword [0x52f408]
xor bl, bl
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x18
idiv ecx
cmp edx, 5
jne 0x421ca7
call fcn.004b42bc
mov dword [0x52f408], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x421cc2
test al, 0x10
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
mov eax, dword [ebp - 0x5c]
and eax, 0xffffff05
or eax, 5
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x64], bl
push ecx
push str.exist
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00449e90
lea ecx, [ebp - 0x64]
push ecx
mov ecx, eax
call fcn.004494b0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.004493f0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x421d26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
jmp 0x421e17
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], 0xe
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xf
call fcn.0044c090
mov edx, eax
mov byte [ebp - 4], 0x10
cmp dword [edx + 0x14], 0x10
jb 0x421e6d
mov edx, dword [edx]
sub esp, 0x18
mov ebx, esp
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp byte [edx], 0
jne 0x421e8c
xor ecx, ecx
jmp 0x421e9e
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x4c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421e94
sub ecx, dword [ebp - 0x4c]
push ecx
push edx
mov ecx, ebx
call fcn.004012f0
lea ecx, [ebp - 0x58]
call fcn.004312a0
add esp, 0x18
mov byte [ebp - 4], 0x11
mov edx, dword [eax]
lea ebx, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x421f06
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x421ef7
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x421ef7
call fcn.004047b0
mov dword [ebp - 0x4c], eax
mov ecx, edi
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x421eef
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x4c]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x421f06
push dword [edx - 0xc]
lea ecx, [ebp - 0x18]
push edx
call fcn.004046f0
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x421f26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x68], 0x10
jb 0x421f3b
push dword [ebp - 0x7c]
call fcn.004b3a0c
add esp, 4
mov ebx, dword [ebp - 0x54]
mov eax, 8
mov word [ebx], ax
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x421f59
call fcn.0040c760
add esi, 0xfffffff0
mov dword [ebx + 8], eax
mov byte [ebp - 4], 0xe
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x421f77
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 0x421f8f
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