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

Disassembly:
push 0xffffffffffffffff
push 0x4755a4
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x490018]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, 1
push esi
mov dword [esp + 0x14], 0
mov edi, 2
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a5e6
and eax, 0x10
mov eax, 0
sete al
test eax, eax
je 0x41a5e6
push esi
call fcn.00402860
add esp, 4
test eax, eax
jne 0x41a5e6
mov ecx, esi
call fcn.00403110
test eax, eax
je 0x41a5e6
mov eax, dword [esp + 0x40]
push eax
mov ecx, esi
call fcn.004178f0
mov dword [esp + 0x14], eax
test bl, al
je 0x41a5e6
mov ecx, dword [0x491c54]
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 0x40]
test eax, eax
jne 0x41a34c
mov eax, dword [ecx + 0x3c]
lea esi, [esp + 0x28]
call fcn.0045c020
mov dword [esp + 0x38], 0
mov ecx, eax
call fcn.00462460
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00462040
test esi, esi
je 0x41a5de
mov edx, dword [0x491c54]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 0x40]
test eax, eax
jne 0x41a392
mov eax, dword [ecx + 0x3c]
lea esi, [esp + 0x20]
call fcn.0045c020
mov dword [esp + 0x38], ebx
push 0x13
xor edx, edx
mov ecx, eax
mov dword [esp + 0x14], ebx
call fcn.00423940
test eax, eax
jne 0x41a3f4
cmp dword [esp + 0x44], eax
jne 0x41a3f4
mov eax, dword [0x491c54]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x40]
test eax, eax
jne 0x41a3ca
mov eax, dword [ecx + 0x3c]
lea esi, [esp + 0x28]
call fcn.0045c020
mov dword [esp + 0x38], edi
mov ebx, 3
push 0x16
xor edx, edx
mov ecx, eax
mov dword [esp + 0x14], ebx
call fcn.00423940
mov byte [esp + 0x40], 0
test eax, eax
je 0x41a3f9
mov byte [esp + 0x40], 1
mov edi, 1
mov dword [esp + 0x38], edi
test bl, 2
je 0x41a417
and ebx, 0xfffffffd
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], ebx
call fcn.00462040
mov dword [esp + 0x38], 0xffffffff
test bl, 1
je 0x41a434
and ebx, 0xfffffffe
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ebx
call fcn.00462040
cmp byte [esp + 0x40], 0
jne 0x41a5e6
mov ecx, dword [0x491c54]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x41a452
mov ecx, dword [eax + 0x3c]
lea esi, [esp + 0x28]
call fcn.0045c000
mov dword [esp + 0x38], 3
push 1
xor edx, edx
mov ecx, esi
call fcn.00423a90
push eax
lea ecx, [esp + 0x48]
call dword [0x4763f4]
mov byte [esp + 0x38], 4
push 0x47e1d4
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
jne 0x41a5b7
mov edx, dword [0x491c54]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x41a4a8
mov ecx, dword [eax + 0x3c]
lea esi, [esp + 0x20]
call fcn.0045c290
mov byte [esp + 0x38], 5
lea eax, [esp + 0x20]
xor esi, esi
call fcn.00413bf0
test eax, eax
jbe 0x41a574
mov bl, 6
jmp 0x41a4d0
push esi
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
call fcn.00461d90
mov byte [esp + 0x38], bl
push 0xe
xor edx, edx
lea ecx, [esp + 0x1c]
call fcn.00423a90
push eax
lea ecx, [esp + 0x44]
call dword [0x4763f4]
mov byte [esp + 0x38], 7
lea eax, [esp + 0x18]
call fcn.00413bf0
test eax, eax
je 0x41a546
push str.deflate
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
je 0x41a546
push str.store
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CompareNoCase]
test eax, eax
je 0x41a546
push 0x47d6d8
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
test eax, eax
jne 0x41a586
mov byte [esp + 0x38], bl
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x38], 5
lea ecx, [esp + 0x18]
call fcn.004491f0
lea eax, [esp + 0x20]
inc esi
call fcn.00413bf0
cmp esi, eax
jb 0x41a4d0
xor edi, edi
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x20]
call fcn.00461cd0
jmp 0x41a5bc
mov edi, 1
mov byte [esp + 0x38], bl
lea ecx, [esp + 0x40]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x38], 5
lea ecx, [esp + 0x18]
call fcn.004491f0
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x20]
call fcn.00461cd0
jmp 0x41a5bc
mov edi, 1
mov byte [esp + 0x38], 3
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004477c0
jmp 0x41a5e6
mov dword [esp + 0x14], 0x2001200
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
test edi, edi
jne 0x41a5fd
lea eax, [edi + 1]
cmp dword [esp + 0x4c], edi
jne 0x41a5ff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 0x10