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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x502204]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x44]
lea ebx, [edi + 0x4c]
add eax, 4
mov dword [ebp - 0x30], ebx
push eax
mov ecx, ebx
call fcn.004a5ed0
cmp byte [edi], 0
jne 0x4af009
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 4
push 4
mov dword [ebp - 0x40], vtable.t_str.0
call fcn.0046c3ce
add esp, 4
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x34], 0
mov dword [eax], 0
call fcn.004a60e0
lea ecx, [ebp - 0x40]
call fcn.004a60e0
lea eax, [ebp - 0x40]
mov ecx, ebx
push eax
call fcn.004b6f50
test al, al
jne 0x4af082
mov ecx, dword [ebp - 0x1c]
mov esi, dword [edi + 0x54]
call fcn.004a7c10
push 0x4e5c30
mov edi, eax
push 0x4e3d38
push edi
call fcn.004a4cb0
add esp, 0xc
lea ecx, [esi + 4]
push ecx
push 0x4e3d38
push edi
call fcn.004a4cb0
add esp, 0xc
xor bl, bl
jmp 0x4af256
mov ecx, dword [ebp - 0x38]
xor esi, esi
add ecx, 4
mov dword [ebp - 0x14], str.LocalLow
mov dword [ebp - 0x10], str.Roaming
mov dword [ebp - 0xc], str.Local
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + esi*4 - 0x14]
push 0
push 0
push 0
push 0
push eax
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x44], eax
call fcn.004b7750
lea ecx, [ebp - 0x2c]
call fcn.004b7370
mov ecx, dword [ebp - 0x24]
mov bl, al
mov dword [ebp - 0x2c], vtable.t_str.0
test ecx, ecx
je 0x4af0dc
push ecx
call fcn.00459651
add esp, 4
test bl, bl
jne 0x4af0eb
mov ecx, dword [ebp - 0x1c]
inc esi
cmp esi, 3
jb 0x4af0a2
jmp 0x4af0f6
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4af1ce
push 0
push 0
push 0
push 0
push str.LocalLowSogouWBenv.ini
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004b74f0
mov ebx, dword [ebp - 0x24]
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4af1be
shr eax, 4
not al
and al, 1
je 0x4af1be
push 0
push 0
push 0
push 0
push 0
push str.LocalLow
lea ecx, [ebp - 0x18]
call fcn.004b7750
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.004b7750
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004b6e40
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x54]
call fcn.004b74f0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4af190
push eax
call fcn.00459651
add esp, 4
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
lea eax, [esi + 4]
push eax
call fcn.004a5ed0
test esi, esi
je 0x4af1ac
push esi
call fcn.00459651
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4af1c3
push eax
call fcn.00459651
add esp, 4
jmp 0x4af1c3
mov word [edi], 0
test ebx, ebx
je 0x4af254
push ebx
jmp 0x4af24c
push 0
push 0
push 0
push 0
push 0
push eax
lea ecx, [ebp - 0x18]
call fcn.004b7750
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.004b7750
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004b6e40
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x54]
call fcn.004b74f0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4af228
push eax
call fcn.00459651
add esp, 4
mov esi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x30]
lea eax, [esi + 4]
push eax
call fcn.004a5ed0
test esi, esi
je 0x4af244
push esi
call fcn.00459651
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4af254
push eax
call fcn.00459651
add esp, 4
mov bl, 1
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4af266
push eax
call fcn.00459651
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c8c5
mov esp, ebp
pop ebp
ret 4