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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x552064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x408], eax
test eax, eax
jne 0x462f1d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x563dac]
mov dword [ebp - 0x40c], eax
push ebx
push esi
push edi
test eax, eax
jne 0x462f7e
xor esi, esi
mov edi, 6
lea ecx, [edi + 0xc]
and ecx, 0xfffffffc
call fcn.004a2590
mov byte [eax + 8], 0
lea ebx, [eax + 8]
mov dword [eax], 1
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x40c]
mov byte [ebx + edi], 0
push esi
push eax
push ebx
call fcn.004fe1f0
push 6
lea eax, [ebx + esi]
push str.Text_
push eax
call fcn.004fe1f0
add esp, 0x18
test ebx, ebx
jne 0x462f8c
xor esi, esi
jmp 0x462f8f
mov esi, dword [eax - 4]
lea edi, [esi + 6]
test edi, edi
jg 0x462f36
xor ebx, ebx
jmp 0x462f5b
mov esi, dword [ebx - 4]
mov eax, dword [ebp - 0x408]
mov eax, dword [eax - 4]
mov dword [ebp - 0x40c], eax
lea edi, [eax + 4]
add edi, esi
mov dword [ebp - 0x410], edi
test edi, edi
jg 0x462fb1
xor edi, edi
jmp 0x462fd6
lea ecx, [edi + 0xc]
and ecx, 0xfffffffc
call fcn.004a2590
mov byte [eax + 8], 0
mov dword [eax + 4], edi
lea edi, [eax + 8]
mov dword [eax], 1
mov eax, dword [ebp - 0x410]
mov byte [edi + eax], 0
push esi
push ebx
push edi
call fcn.004fe1f0
push dword [ebp - 0x40c]
lea eax, [edi + esi]
push dword [ebp - 0x408]
push eax
call fcn.004fe1f0
mov eax, dword [ebp - 0x40c]
add esp, 0x18
add eax, edi
mov dword [eax + esi], 0x7478742e
test edi, edi
je 0x46312b
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call esi
cmp eax, 0xffffffff
je 0x46301f
test al, 0x10
je 0x46302a
mov eax, dword [edi - 4]
mov dword [eax + edi - 4], 0x7673632e
push edi
call esi
cmp eax, 0xffffffff
je 0x46310c
test al, 0x10
jne 0x46310c
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004fdf60
add esp, 0xc
mov dword [ebp - 0x408], 0
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov edx, dword [ebp - 0x408]
lea eax, [ebp - 0x404]
mov ecx, dword [0x563dac]
sub edx, eax
test ecx, ecx
jne 0x463094
xor eax, eax
jmp 0x463097
mov eax, dword [ecx - 4]
cmp edx, eax
jl 0x46315f
test ecx, ecx
jne 0x4630a7
xor edx, edx
jmp 0x4630aa
mov edx, dword [ecx - 4]
lea esi, [ebp - 0x404]
sub edx, 4
jb 0x4630c6
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x4630cb
add esi, 4
add ecx, 4
sub edx, 4
jae 0x4630b5
cmp edx, 0xfffffffc
je 0x4630fc
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x46315f
cmp edx, 0xfffffffd
je 0x4630fc
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x46315f
cmp edx, 0xfffffffe
je 0x4630fc
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x46315f
cmp edx, 0xffffffff
je 0x4630fc
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
jne 0x46315f
mov eax, dword [edi - 8]
mov esi, edi
cmp eax, 0xffffffff
je 0x46310e
inc eax
mov dword [edi - 8], eax
jmp 0x46310e
xor esi, esi
mov eax, dword [edi - 8]
add edi, 0xfffffff8
cmp eax, 0xffffffff
je 0x46312d
dec eax
mov dword [edi], eax
test eax, eax
jg 0x46312d
push edi
call fcn.00501c9e
add esp, 4
jmp 0x46312d
xor esi, esi
test ebx, ebx
je 0x46314c
mov ecx, dword [ebx - 8]
add ebx, 0xfffffff8
cmp ecx, 0xffffffff
je 0x46314c
dec ecx
mov dword [ebx], ecx
test ecx, ecx
jg 0x46314c
push ebx
call fcn.00501c9e
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e66f2
mov esp, ebp
pop ebp
ret
call fcn.00462ea0
mov edx, dword [ebp - 0x408]
lea ecx, [ebp - 0x40c]
mov dword [ebp - 0x40c], eax
call fcn.00497830
mov ecx, dword [ebp - 0x40c]
call fcn.00469b60
int3