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

Disassembly:
sub esp, 0x24
mov eax, dword [0x41f0fc]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0xffffffff
mov byte [eax], 0
mov ebx, 0x7f7f
mov eax, dword [0x41f118]
mov ecx, dword [0x41f140]
inc eax
cmp eax, ecx
mov dword [0x41f118], eax
jae 0x40a204
mov ebp, dword [0x41f114]
push ebp
call fcn.00403b10
mov dword [0x41f114], eax
xor eax, eax
mov ax, word [ebp + 4]
push ebp
mov dword [esp + 0x20], eax
mov word [ebp + 4], 0
call fcn.004092d0
mov ecx, dword [0x41f100]
mov dword [esp + 0x28], eax
add esp, 8
cmp byte [ecx], 0
je 0x409b24
test byte [esp + 0x18], 2
je 0x409c1b
mov edx, dword [0x41f0f8]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x409b87
mov ecx, dword [0x41f100]
mov edx, dword [0x41f0f4]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x409b9d
mov ecx, dword [0x41f0f4]
push 0x5c
push ecx
call fcn.004131d0
add esp, 8
test eax, eax
je 0x409bc0
mov byte [eax + 1], 0
mov edx, dword [0x41f288]
test byte [edx], 0x10
je 0x409c1b
mov eax, dword [0x41f100]
push 0
push eax
call fcn.00401140
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x409c12
push 0xfffffffffffffff8
push esi
call fcn.004012a0
lea ecx, [esp + 0x34]
push 8
push ecx
push esi
call fcn.004011c0
push esi
call fcn.004013c0
add esp, 0x18
cmp word [esp + 0x2c], bx
jne 0x409c12
test byte [esp + 0x2e], 2
jne 0x409b24
mov edx, dword [0x41f0f8]
mov byte [edx], 0x30
mov eax, dword [0x41f118]
xor edx, edx
lea eax, [eax + eax*4 + 5]
lea eax, [eax + eax*4]
shl eax, 2
div dword [0x41f140]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
test ah, 1
jne 0x40a1d5
test dword [0x41f320], eax
je 0x40a1d5
test ah, 2
jne 0x409dd5
test al, 0x40
mov edi, 1
je 0x409c72
mov eax, dword [0x41f100]
push eax
call fcn.00401100
add esp, 4
test eax, eax
jne 0x409cd1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x409cd3
mov ecx, dword [0x41f100]
push 0
push ecx
mov dword [esp + 0x24], 0
call fcn.00401140
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x409cc6
push esi
call fcn.004012c0
mov ecx, dword [ebp + 0x18]
add esp, 4
cmp eax, ecx
jne 0x409cbd
lea edx, [esp + 0x24]
lea eax, [esp + 0x1c]
push edx
push eax
push esi
call fcn.00405500
add esp, 0xc
push esi
call fcn.004013c0
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x14]
cmp ecx, eax
jne 0x409cd3
xor edi, edi
test edi, edi
mov dword [0x41f394], 0
je 0x409de9
mov eax, dword [0x41f28c]
test eax, eax
je 0x409b24
push 2
push 5
call fcn.00403a00
add esp, 8
test eax, eax
je 0x409d15
cmp byte [eax], 0
je 0x409d15
mov eax, dword [0x41f100]
push eax
call fcn.00401f80
add esp, 4
mov ecx, dword [0x41f100]
push ecx
call fcn.004023b0
mov ecx, dword [0x41f100]
mov edx, dword [0x41f0fc]
add esp, 4
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x409d30
mov edx, dword [0x41f0fc]
push str..__A
push edx
call fcn.004020a0
mov eax, dword [0x41f0fc]
push 0
push eax
call fcn.00401140
add esp, 0x10
cmp eax, 0xffffffff
je 0x409da0
push eax
call fcn.004013c0
mov esi, dword [0x41f0fc]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
push eax
mov dl, byte [ecx + esi - 1]
or ecx, 0xffffffff
inc dl
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + esi - 1], dl
mov eax, dword [0x41f0fc]
push eax
call fcn.00401140
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409d60
mov ecx, dword [0x41f0fc]
push ecx
call fcn.00401190
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jne 0x409df8
mov edx, dword [0x41f0fc]
mov dword [0x41f394], 0x11
push edx
call fcn.00407050
jmp 0x40a1eb
mov edx, dword [0x41f100]
push edx
call fcn.004023b0
add esp, 4
jmp 0x40a1d5
mov ebx, dword [esp + 0x10]
mov word [ebp + 4], 0x1f5
jmp 0x40a117
test byte [esp + 0x18], 2
je 0x409efa
mov ecx, dword [0x41f294]
test ecx, ecx
je 0x409fd0
mov eax, dword [0x41f290]
test eax, eax
je 0x409fd0
push eax
push ecx
push ebx
call fcn.00401200
add esp, 0xc
mov dword [0x41f394], eax
test eax, eax
jne 0x40a1ee
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00407260
add esp, 4
mov dword [0x41f394], eax
test eax, eax
jne 0x40a1ee
mov ecx, dword [0x41a314]
lea edx, [ecx - 0x738580]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
cmp ecx, 0x14
jl 0x409e72
cmp byte [ecx + edx], 0x46
je 0x409e85
mov edx, dword [0x41f364]
push 0
push 0x64
push 0xb
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x41a2e8]
push 0
push 0
push eax
push ecx
push ebx
call fcn.00403500
mov esi, eax
mov eax, dword [0x41f310]
add esp, 0x14
test esi, esi
je 0x409edc
cmp eax, 2
je 0x40a1ee
push 0
push ebp
call fcn.00403e30
add esp, 8
push eax
push 0
push ebp
call fcn.00403e30
add esp, 8
push eax
push esi
call fcn.00407400
add esp, 0xc
mov dword [0x41f394], eax
jmp 0x40a1ee
cmp eax, 2
je 0x40a1ee
push ebx
call fcn.004013c0
add esp, 4
or ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jmp 0x409fd0
mov edx, dword [ebp + 0x1c]
push edx
call fcn.00407260
add esp, 4
mov dword [0x41f394], eax
test eax, eax
jne 0x40a1ee
mov eax, dword [0x41a2e8]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x20]
push edx
push ecx
push eax
push ebx
call fcn.00403500
mov esi, eax
mov eax, dword [0x41f310]
add esp, 0x14
test esi, esi
je 0x409f6f
cmp eax, 2
je 0x40a1ee
push 0
push ebp
call fcn.00403e30
add esp, 8
push eax
push 0
push ebp
call fcn.00403e30
add esp, 8
push eax
push esi
call fcn.00407400
add esp, 0xc
mov dword [0x41f394], eax
jmp 0x40a1ee
cmp eax, 2
je 0x40a1ee
mov eax, dword [ebp + 8]
test al, 8
je 0x409f99
test al, 6
lea eax, [ebp + 0x3c]
jne 0x409f89
lea eax, [ebp + 0x28]
lea edx, [eax + 0x10]
lea ecx, [eax + 8]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call fcn.004013c0
mov edx, dword [esp + 0x20]
mov eax, dword [ebp + 0x18]
add esp, 4
or ebx, 0xffffffff
cmp edx, eax
mov dword [esp + 0x10], ebx
jne 0x409fbf
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x14]
cmp eax, ecx
je 0x409fd0
call fcn.004099d0
test eax, eax
je 0x40a204
mov ebx, dword [esp + 0x10]
cmp dword [ebp + 0x10], 3
jne 0x40a00e
mov ecx, dword [0x41f100]
push 0
push ecx
call fcn.00401140
add esp, 8
cmp eax, 0xffffffff
je 0x40a00e
push eax
call fcn.004013c0
mov edx, dword [0x41f100]
push edx
call fcn.00402b70
mov eax, dword [0x41f100]
push eax
call fcn.004013d0
add esp, 0xc
jmp 0x40a012
mov eax, dword [esp + 0x20]
cmp dword [ebp + 0x10], 2
je 0x40a0e3
mov ecx, dword [ebp + 8]
test ch, 0x10
jne 0x40a0e3
test eax, eax
je 0x40a060
mov ecx, dword [0x41f0fc]
mov edx, dword [0x41f100]
push ecx
push edx
call fcn.0040b590
add esp, 8
test eax, eax
je 0x40a058
mov dword [0x41f38c], 1
mov word [ebp + 4], 0x1f4
jmp 0x40a06f
mov word [ebp + 4], 0x1b
jmp 0x40a06f
mov eax, dword [0x41f0fc]
push eax
push ebp
call fcn.004095c0
add esp, 8
mov cx, word [ebp + 4]
cmp cx, 0x1b
jne 0x40a094
mov ecx, dword [0x41f100]
mov dword [0x41f394], 0x16
push ecx
call fcn.00407050
jmp 0x40a1eb
mov eax, dword [ebp + 0xc]
mov edi, 0x80
test ah, 0x10
je 0x40a0a6
mov edi, 0x81
test ah, 8
je 0x40a0ae
or edi, 2
cmp edi, 0x80
je 0x40a117
mov esi, dword [0x41f100]
cmp cx, 0x1f4
jne 0x40a0c9
mov esi, dword [0x41f0fc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a117
and al, 0xfc
or eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x40a117
mov edi, dword [0x41f0fc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00413320
mov dword [ebp + 0x24], eax
mov ecx, dword [0x41f0fc]
add esp, 4
mov edx, eax
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x40a107
mov word [ebp + 4], 0x1f6
mov eax, dword [0x41f394]
test eax, eax
jne 0x40a1ee
mov edx, dword [0x41f0fc]
mov al, byte [esp + 0x18]
test al, 2
mov byte [edx], 0
je 0x40a13b
mov word [ebp + 4], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40a16b
mov eax, dword [ebp + 8]
test ah, 4
je 0x40a16b
mov ax, word [ebp + 4]
cmp ax, 0x17
je 0x40a166
cmp ax, 0x19
je 0x40a166
cmp ax, 0x1f5
je 0x40a166
cmp ax, 0x1f4
jne 0x40a16b
call fcn.00409a50
cmp dword [ebp + 0x10], 3
jne 0x40a18f
mov ax, word [ebp + 4]
cmp ax, 0x17
je 0x40a181
cmp ax, 0x19
jne 0x40a18f
mov eax, dword [0x41f100]
push eax
call fcn.00402860
add esp, 4
mov eax, dword [ebp + 8]
test ah, 0x10
je 0x40a1c7
mov eax, dword [0x41f2c4]
test eax, eax
je 0x40a1a8
cmp word [ebp + 4], 0x1f5
je 0x40a1be
mov ax, word [ebp + 4]
cmp ax, 0x17
je 0x40a1be
cmp ax, 0x19
je 0x40a1be
cmp ax, 0x1f4
jne 0x40a1c7
push ebp
call fcn.004086b0
add esp, 4
mov eax, dword [ebp + 8]
test ah, 8
je 0x40a1d5
mov dword [0x41f128], ebp
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00401f00
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], 1
add esp, 4
cmp ebx, 0xffffffff
je 0x40a1fc
push ebx
call fcn.004013c0
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40a217
mov eax, dword [0x41f0fc]
cmp byte [eax], 0
je 0x40a217
push eax
call fcn.00413dd1
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret