Function at 0x495b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69fff4
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x7adbc4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp dword [0x7ae640], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x164], esi
je 0x495fcc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x180]
mov dword [ebp - 0x18c], 0
mov byte [ebp - 0x188], 0
mov dword [ebp - 0x184], 2
mov dword [ebp - method.ATL::CDacl.virtual_0], vtable.ATL::CDacl.0
call fcn.00499fa0
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push 0x771f74
push eax
call fcn.00493cb0
add esp, 0x14
push ecx
push 0xc0000000
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x190]
call fcn.00494530
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00493e60
push 0x222
push 0x20
push 2
lea eax, [ebp - 0xd4]
push 0x771f74
push eax
call fcn.00493cb0
add esp, 0x14
push ecx
push 0xc0000000
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x190]
call fcn.00494530
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.00493e60
push 0x12
push 1
lea eax, [ebp - 0x134]
push 0x771f74
push eax
call fcn.00493cb0
add esp, 0x10
push ecx
push 0x10000000
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x190]
call fcn.00494530
lea ecx, [ebp - 0x134]
call fcn.00493e60
mov dword [ebp - method.ATL::CSecurityDesc.virtual_0], vtable.ATL::CSecurityDesc.0
mov dword [ebp - 0x138], 0
push ecx
lea eax, [ebp - 0x190]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x13c]
call fcn.00494d50
mov eax, dword [ebp - 0x138]
sub esp, 8
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], 0xc
mov dword [ebp - 0x168], 0
push eax
sub esp, 0xc
mov ecx, dword [esi + 0x1b8]
call fcn.00507d80
add esp, 0x18
mov dword [esi + 0x1b0], eax
cmp eax, 0xffffffff
je 0x495fec
mov byte [ebp - 4], 6
test eax, eax
jne 0x495d62
sub esp, 8
mov edx, 0xda
mov ecx, str.ATL::CAtlFile::Seek
call fcn.00493a40
mov eax, dword [esi + 0x1b0]
add esp, 8
push 2
lea ecx, [ebp - 0x1a0]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [ebp - 0x1a4], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x495d8f
call fcn.00490bd0
mov edi, eax
test edi, edi
js 0x495d91
xor edi, edi
mov byte [ebp - 4], 5
test edi, edi
js 0x495ff7
mov ecx, ebx
call fcn.00516a20
mov edx, dword [ebx]
mov edi, eax
call dword [edx + 0x14]
mov ebx, eax
mov byte [ebp - 4], 7
mov ecx, dword [esi + 0x1b0]
test ecx, ecx
jne 0x495dd6
sub esp, 8
mov edx, 0x9d
mov ecx, str.ATL::CAtlFile::Write
call fcn.00493a40
mov ecx, dword [esi + 0x1b0]
add esp, 8
push 0
lea eax, [ebp - 0x194]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x495df5
call fcn.00490bd0
mov edi, eax
jmp 0x495df7
xor edi, edi
mov byte [ebp - 4], 5
test edi, edi
js 0x496012
mov eax, dword [ebp - 0x138]
mov dword [ebp - method.ATL::CSecurityDesc.virtual_0], vtable.ATL::CSecurityDesc.0
test eax, eax
je 0x495f2a
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x148], 0
push ecx
lea ecx, [ebp - 0x148]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x495f12
test dword [ebp - 0x148], 0x8000
jne 0x495f12
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
push dword [ebp - 0x14c]
call fcn.0067bcf9
add esp, 4
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorGroup]
push dword [ebp - 0x150]
call fcn.0067bcf9
add esp, 4
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
cmp dword [ebp - 0x144], 0
je 0x495eda
push dword [ebp - 0x154]
call fcn.0067bcf9
add esp, 4
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
cmp dword [ebp - 0x144], 0
je 0x495f12
push dword [ebp - 0x158]
call fcn.0067bcf9
add esp, 4
push dword [ebp - 0x138]
call fcn.0067bcf9
add esp, 4
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x190]
call fcn.004944b0
jmp 0x495fb1
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x495fcc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1b0], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00669a8a
mov esp, ebp
pop ebp
ret 4
call fcn.00490bd0
push eax
call fcn.00490960
sub esp, 8
mov edx, 0xb8
mov ecx, str.LogFile2::Output
call fcn.00493a40
add esp, 8
push edi
call fcn.00490960
sub esp, 8
mov edx, 0xb9
mov ecx, str.LogFile2::Output
call fcn.00493a40
add esp, 8
push edi
call fcn.00490960
int3