Function at 0x4c09a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65ff3a
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x6feae4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
or edi, 0xffffffff
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0xf
mov byte [ebp - 0x148], 0
push 0x104
push 0
push 0x105
mov dword [ebp - 4], 0
push eax
mov dword [esi], 0
call fcn.0064a537
push 0x105
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.0062b160
add esp, 0x1c
call fcn.004c2ff0
mov dword [ebp - 0x14c], eax
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4c0a6d
movaps xmm0, xmmword [str.SHGetFolderPathA]
lea eax, [ebp - 0x24]
push eax
push ecx
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x14c]
mov dword [ecx + 0xc], eax
mov eax, ecx
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x130]
push ecx
push 0
push 0
push 0x801a
push 0
call eax
test eax, eax
jns 0x4c0a93
mov dword [esi], 3
jmp 0x4c0bda
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c0aa0
sub ecx, edx
lea eax, [ebp - 0x130]
push ecx
push eax
lea ecx, [ebp - 0x148]
call fcn.00447110
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x138]
add eax, 0xd
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x14c], 1
call fcn.004a5b40
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x28]
call fcn.004498a0
push str.GlobalMgr.db
lea ecx, [ebp - 0x28]
call fcn.00449830
lea ecx, [ebp - 0x148]
call fcn.00446fe0
movups xmm1, xmmword [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x148]
movq xmm0, qword [ebp - 0x18]
push 0
push 0x80
push 3
push 0
movd eax, xmm1
push 3
push 0xc0000000
cmovae ecx, eax
movq qword [ebp - 0x138], xmm0
push ecx
movups xmmword [ebp - 0x148], xmm1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4c0b66
mov dword [esi], 0x50
jmp 0x4c0ba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4c0bd4
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
push 0
cmovae eax, dword [ebp - 0x148]
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4c0bd4
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
push 0x104
cmovae eax, dword [ebp - 0x148]
push eax
push 0x105
push dword [ebp - 0x150]
call fcn.0064a52c
add esp, 0x10
jmp 0x4c0bda
mov dword [esi], 0x65f
mov edx, dword [ebp - 0x134]
cmp edx, 0x10
jb 0x4c0c10
mov ecx, dword [ebp - 0x148]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c0c06
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c0c2f
push edx
push ecx
call fcn.0060967c
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0060963b
mov esp, ebp
pop ebp
ret 0x10
call fcn.0062eee9
int3