Function at 0x495bb0
Capabilities:
Create directory
Set file attributes
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f0ef4
mov eax, dword fs:[0]
push eax
mov eax, 0xca10
call fcn.004e03c0
mov eax, dword [0x53fa2c]
xor eax, esp
mov dword [esp + 0xca0c], eax
push ebp
push esi
push edi
mov eax, dword [0x53fa2c]
xor eax, esp
push eax
lea eax, [esp + 0xca20]
mov dword fs:[0], eax
cmp byte [0x103a972], 0
jne 0x495e04
push 0x1ff
lea eax, [esp + 0x21]
push 0
push eax
mov byte [esp + 0x28], 0
call sub.MSVCR90.dll_memset
push 0xc7ff
lea ecx, [esp + 0x22d]
push 0
push ecx
mov byte [esp + 0x234], 0
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x30]
push edx
call fcn.004d8f20
mov dword [esp + 0xca44], 0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x3c]
push str._sLog
push ecx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x28
mov dword [esp + 0xca28], 0xffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [esp + 0xca28], 1
push 0x4ff418
push str.__X86__
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_5924]
push 0x4ff418
push str.__x86__
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_5924]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCR90.dll__access]
push 0
push eax
call esi
add esp, 8
test eax, eax
je 0x495cd2
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [esp + 0xca30], 0
lea ecx, [esp + 0x10]
je 0x495ce7
push str.Scanned.log
jmp 0x495cec
push str.ScannedReal.log
call dword [sym.imp.mfc90.dll_Ordinal_945]
mov edx, dword [esp + 0x10]
push 0
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 8
test eax, eax
jne 0x495d25
mov eax, dword [esp + 0x10]
push 0x504ff8
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov esi, eax
jmp 0x495d54
mov ecx, dword [esp + 0x10]
push 0x504ff4
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
cmp byte [0x103a972], 0
mov esi, eax
je 0x495d54
push 1
call edi
mov edx, dword [esp + 0x10]
push 2
push edx
call ebp
push 1
call edi
test esi, esi
je 0x495def
mov ecx, dword [esp + 0xca34]
lea eax, [esp + 0xca38]
push eax
push ecx
lea edx, [esp + 0x224]
push edx
call dword [sym.imp.MSVCR90.dll_vsprintf]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
mov byte [esp + 0xca28], 2
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x18]
push 0x518fec
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push esi
push 1
push ecx
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x20
cmp byte [0x103a972], 0
je 0x495ddd
push 1
call edi
mov edx, dword [esp + 0x10]
push 2
push edx
call ebp
push 1
call edi
mov byte [esp + 0xca28], 1
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov dword [esp + 0xca28], 0xffffffff
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0xca20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xca0c]
xor ecx, esp
call fcn.004e0148
add esp, 0xca1c
ret