Function at 0x9d8010
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x648]
sub esp, 0x648
push 0xfffffffffffffffe
push 0xb12c70
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x644], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp + 0x540], 0
push 0x103
xor ebx, ebx
push ebx
lea eax, [ebp + 0x541]
push eax
call fcn.00a7ffb0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 0x13c
push ebx
lea ecx, [ebp + 4]
push ecx
call fcn.00a7ffb0
add esp, 0x18
mov dword [ebp - 4], ebx
lea eax, [ebp + 0x540]
call fcn.00954170
lea ecx, [ebp + 0x540]
call fcn.00960910
lea eax, [ebp + 0x540]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x9d80b0
mov edx, dword [str.FACACHE.DAT]
mov dword [eax], edx
mov ecx, dword [0xafc5e0]
mov dword [eax + 4], ecx
mov edx, dword [0xafc5e4]
mov dword [eax + 8], edx
push 1
push ebx
xor edx, edx
lea ecx, [ebp + 0x540]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x9d8130
push 0x8000000
push 3
push 3
push 0x80000000
lea edi, [ebp + 0x540]
call fcn.0094db00
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x24], esi
call fcn.00964530
test eax, eax
je 0x9d8130
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x9d813e
lea eax, [ebp - 0x24]
push eax
call fcn.00985290
mov eax, edi
call fcn.0095aa70
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
jmp 0x9d8365
push 0x8000000
push 4
push 1
push 0xc0000000
mov edi, str.C:PROGRA2eScanCLCACHE.DAT
call fcn.0094db00
add esp, 0x10
mov dword [ebp - 0x28], eax
lea esp, [esp]
mov dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push 4
lea edx, [ebp + 0x140]
push edx
push esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
cmp dword [ebp - 0x20], 4
jne 0x9d82e4
movsx eax, byte [ebp + 0x140]
push eax
call fcn.00a795a2
add esp, 4
test eax, eax
je 0x9d82e4
movsx ecx, byte [ebp + 0x141]
push ecx
call fcn.00a795a2
add esp, 4
test eax, eax
je 0x9d82e4
movsx edx, byte [ebp + 0x142]
push edx
call fcn.00a795a2
add esp, 4
test eax, eax
je 0x9d82e4
movsx eax, byte [ebp + 0x143]
push eax
call fcn.00a795a2
add esp, 4
test eax, eax
je 0x9d82e4
mov byte [ebp + 0x144], 0
lea ecx, [ebp - 0x1c]
push ecx
push 0xab3e64
lea edx, [ebp + 0x140]
push edx
call fcn.00a7da40
add esp, 0xc
mov eax, dword [ebp - 0x1c]
cmp eax, 0x400
jae 0x9d82e4
push 0
lea ecx, [ebp - 0x20]
push ecx
push eax
lea edx, [ebp + 0x140]
push edx
push esi
call edi
mov eax, dword [ebp - 0x1c]
cmp byte [ebp + eax + 0x13f], 0
jne 0x9d82e4
cmp dword [ebp - 0x20], eax
jne 0x9d82e4
push 0
lea eax, [ebp - 0x20]
push eax
push 0x140
lea ecx, [ebp]
push ecx
push esi
call edi
cmp dword [ebp - 0x20], 0x140
jne 0x9d82e4
mov edi, dword [ebp - 0x1c]
push edi
lea esi, [ebp + 0x140]
call fcn.00978150
lea eax, [edi + 0x144]
call fcn.00966e40
mov ebx, eax
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x9d82e4
mov edx, dword [ebp - 0x1c]
mov dword [ebx], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, esi
push ecx
lea edx, [ebx + 4]
push edx
call fcn.00a828e0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
lea edi, [eax + ebx + 4]
mov ecx, 0x50
lea esi, [ebp]
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x144
push edx
push ebx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x9d82ce
inc dword [ebp - 0x2c]
push ebx
call fcn.00a78fec
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp - 0x24]
jmp 0x9d8160
mov dword [ebp - 4], 0xfffffffe
jmp 0x9d8300
test ebx, ebx
je 0x9d830d
push ebx
call fcn.00a78fec
add esp, 4
lea ecx, [ebp - 0x24]
push ecx
call fcn.00985290
lea edx, [ebp - 0x28]
push edx
call fcn.00985290
cmp byte [ebp + 0x540], 0
je 0x9d8362
push 0
lea edi, [ebp + 0x540]
call fcn.009627b0
add esp, 4
cmp eax, 1
je 0x9d8362
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, edi
call fcn.00958480
push 0
call fcn.009627b0
add esp, 4
cmp eax, 1
je 0x9d8362
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x644]
xor ecx, ebp
call fcn.00a78f21
add ebp, 0x648
mov esp, ebp
pop ebp
ret