Function at 0x4a9a90
Capabilities:
Check if file exists

Disassembly:
push 0xa88
mov eax, 0x565022
call fcn.00539a44
cmp dword [ebp + 8], 7
mov ebx, ecx
mov dword [ebp - 0xa74], ebx
jl 0x4a9e5c
cmp dword [ebp + 8], 9
jg 0x4a9e5c
lea esi, [ebx + 0x62ff0]
and dword [esi + 0x26a4], 0
and dword [esi + 0x26a0], 0
mov eax, esi
call fcn.00490a9a
push 0xa
mov eax, esi
call fcn.00490da0
cmp dword [ebp + 8], 7
jne 0x4a9e3f
mov edi, dword [ebx + 0x94]
test edi, edi
jl 0x4a9e3f
lea esi, [ebx + 0xc5f78]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
sar eax, 2
cmp edi, eax
jae 0x4a9e3f
call fcn.004264b0
mov esi, dword [eax]
test esi, esi
je 0x4a9e3f
lea edi, [esi + 0x38]
cmp dword [edi + 0x18], 8
jb 0x4a9b2b
mov eax, dword [edi + 4]
jmp 0x4a9b2e
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a9e3f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x638], ax
lea eax, [ebp - 0x636]
push eax
call fcn.00537010
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x4a9b66
mov ecx, dword [edi + 4]
jmp 0x4a9b69
lea ecx, [edi + 4]
lea edx, [ebp - 0x638]
call fcn.00490398
lea eax, [esi + 0xa8]
cmp dword [eax + 0x18], 8
jb 0x4a9b85
mov eax, dword [eax + 4]
jmp 0x4a9b88
add eax, 4
push eax
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4a9e3f
push edi
lea ecx, [ebp - 0x864]
call fcn.004051c1
and dword [ebp - 4], 0
push str.temp_
lea ecx, [ebp - 0x864]
call fcn.0040a9e6
xor eax, eax
mov ebx, 0x208
push ebx
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00537010
add esp, 0xc
xor eax, eax
push ebx
push eax
mov word [ebp - 0x430], ax
lea eax, [ebp - 0x42e]
push eax
call fcn.00537010
mov eax, dword [ebp - 0x860]
add esp, 0xc
cmp dword [ebp - 0x84c], 8
jae 0x4a9c0c
lea eax, [ebp - 0x860]
push eax
push 0x57cb68
mov ebx, 0x104
lea eax, [ebp - 0x430]
push ebx
push eax
call fcn.00532a01
add esp, 0x10
cmp dword [edi + 0x18], 8
jb 0x4a9c32
mov eax, dword [edi + 4]
jmp 0x4a9c35
lea eax, [edi + 4]
push eax
push 0x57cb68
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00532a01
add esp, 0x10
lea ebx, [ebp - 0x430]
call fcn.0049699b
lea eax, [ebp - 0x220]
test eax, eax
je 0x4a9c71
mov eax, ebx
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004a9f97
jmp 0x4a9c73
xor al, al
test al, al
je 0x4a9e26
cmp byte [esi + 0xc9], 0
je 0x4a9d27
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x848], ax
lea eax, [ebp - 0x846]
push eax
call fcn.00537010
add esp, 0xc
push 8
pop ebx
cmp dword [esi + 0x18], ebx
jb 0x4a9cb3
mov eax, dword [esi + 4]
jmp 0x4a9cb6
lea eax, [esi + 4]
mov ecx, dword [ebp - 0x860]
cmp dword [ebp - 0x84c], ebx
jae 0x4a9cca
lea ecx, [ebp - 0x860]
push eax
push ecx
push 0x58002c
lea eax, [ebp - 0x848]
push 0x104
push eax
call fcn.00532a01
add esp, 0x14
cmp dword [esi + 0x6c], ebx
jb 0x4a9cef
mov ecx, dword [esi + 0x58]
jmp 0x4a9cf2
lea ecx, [esi + 0x58]
call fcn.004a7acf
test al, al
je 0x4a9d9e
cmp dword [esi + 0x6c], ebx
jb 0x4a9d09
mov ecx, dword [esi + 0x58]
jmp 0x4a9d0c
lea ecx, [esi + 0x58]
lea eax, [ebp - 0x848]
push eax
call fcn.00496ba5
mov ebx, dword [ebp - 0xa74]
pop ecx
mov dword [ebp - 0xa78], eax
jmp 0x4a9d80
cmp dword [ebp - 0x84c], 8
mov eax, dword [ebp - 0x860]
jae 0x4a9d3c
lea eax, [ebp - 0x860]
push eax
lea ecx, [ebp - 0xa94]
call fcn.0040a8b0
mov ebx, dword [ebp - 0xa74]
push 1
lea eax, [ebx + 0x1c]
push eax
lea eax, [ebp - 0xa94]
push eax
mov byte [ebp - 4], 1
call fcn.00497bba
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0xa94]
mov dword [ebp - 0xa78], eax
mov byte [ebp - 4], 0
call fcn.004053e5
cmp dword [ebp - 0xa78], 0
je 0x4a9da4
lea eax, [ebx + 0xa1]
cmp byte [eax], 0
jne 0x4a9da4
mov cl, byte [esi + 0xc8]
mov byte [eax], cl
jmp 0x4a9da4
mov ebx, dword [ebp - 0xa74]
cmp dword [ebp - 0x84c], 8
mov eax, dword [ebp - 0x860]
jae 0x4a9db9
lea eax, [ebp - 0x860]
push eax
call fcn.0049797d
cmp dword [edi + 0x18], 8
pop ecx
jb 0x4a9dcb
mov edi, dword [edi + 4]
jmp 0x4a9dce
add edi, 4
mov ecx, edi
call fcn.00496aa0
cmp dword [ebx + 0x88], 8
jb 0x4a9de3
mov ebx, dword [ebx + 0x74]
jmp 0x4a9de6
add ebx, 0x74
push ebx
lea eax, [ebp - 0xa70]
push eax
call fcn.004a78a5
cmp dword [esi + 0x88], 8
jb 0x4a9e01
mov eax, dword [esi + 0x74]
jmp 0x4a9e04
lea eax, [esi + 0x74]
cmp dword [esi + 0x18], 8
jb 0x4a9e0f
mov esi, dword [esi + 4]
jmp 0x4a9e12
add esi, 4
lea ecx, [ebp - 0xa70]
push ecx
push eax
push str.version
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x864]
call fcn.004053e5
mov ebx, dword [ebp - 0xa74]
mov eax, ebx
call fcn.004a9954
test al, al
jne 0x4a9e5c
push 0
push 0
push 0x12
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
call fcn.00539ac7
ret 4