Function at 0x426c50
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cdd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x24]
test eax, eax
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
jne 0x426cf8
mov eax, dword [ecx + 0x30]
cmp eax, 2
je 0x426c9e
cmp eax, 3
je 0x426c9e
cmp eax, 4
je 0x426c9e
cmp eax, 6
jne 0x426cf8
call fcn.00415170
mov eax, dword [esi + 8]
cmp dword [eax + 0x30], 3
jne 0x426cf8
add eax, 0xd4
push eax
lea ecx, [ebp - 0x24]
call fcn.00413590
mov ecx, dword [esi + 8]
add ecx, 0xd4
mov byte [ebp - 4], 1
call fcn.0040ee30
mov eax, dword [esi + 8]
add eax, 0xd4
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, esi
call fcn.00424c10
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0
call fcn.0040ee30
mov edx, dword [ebp - 0x20]
push edx
call fcn.004572e5
add esp, 4
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
jne 0x426d1a
mov ecx, dword [eax + 0x30]
cmp ecx, 5
je 0x426d1a
cmp ecx, 3
je 0x426d1a
lea ecx, [eax + 0x104]
call fcn.0040ee30
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x426e04
mov ecx, dword [0x4800d8]
mov dword [ebp - 0x14], ecx
push 0x104
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004042d0
test eax, eax
mov edi, dword [ebp - 0x14]
je 0x426d59
mov dword [edi - 8], 0x104
mov byte [edi + 0x104], 0
mov eax, edi
push eax
push 0x104
call fcn.0041c050
add esp, 8
test eax, eax
je 0x426ddc
lea ecx, [ebp - 0x14]
call fcn.00404410
mov edi, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
mov dword [edi - 8], eax
push 0x5c
lea ecx, [ebp - 0x14]
mov byte [eax + edi], 0
call fcn.00404b00
push str.RavTmp
push str.RavTmp
call ebx
push eax
lea ecx, [ebp - 0x14]
call fcn.00403ab0
mov edi, dword [ebp - 0x14]
push edi
push str.RavTmp:__s
push 0x80
call fcn.004047f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x426ddc
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
push edi
call dword [edx + 0x30]
mov ecx, dword [0x4800dc]
lea eax, [edi - 0xc]
cmp eax, ecx
mov byte [ebp - 4], 0
je 0x426e04
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x426e04
push edi
call fcn.00457c3f
add esp, 4
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x30]
dec eax
cmp eax, 5
ja case.default.0x426e14
jmp dword [eax*4 + 0x426f74]
mov ecx, esi
call fcn.004262a0
mov edx, dword [esi + 8]
mov dword [esi + 4], eax
mov dword [edx + 0x30], 1
mov eax, dword [esi + 4]
push eax
push 0x3f4
mov ecx, esi
call fcn.00420970
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00424ce0
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
mov dword [ecx + 0x30], 2
mov edx, dword [esi + 4]
push edx
push 0x3f4
mov ecx, esi
call fcn.00420970
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004250b0
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov dword [eax + 0x30], 3
jmp 0x426f28
mov ecx, esi
call fcn.00425790
mov edx, dword [esi + 8]
mov dword [esi + 4], eax
mov dword [edx + 0x30], 4
mov eax, dword [esi + 4]
push eax
push 0x3f4
mov ecx, esi
call fcn.00420970
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00426710
mov ecx, dword [esi + 8]
mov dword [esi + 4], eax
mov dword [ecx + 0x30], 5
mov edx, dword [esi + 4]
push edx
push 0x3f4
mov ecx, esi
call fcn.00420970
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00425a20
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
mov dword [eax + 0x30], 6
mov ecx, dword [esi + 4]
push ecx
push 0x3f4
mov ecx, esi
call fcn.00420970
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret