Function at 0x411330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad494
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x4e96d0]
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 [0x4ea690], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x138], eax
je 0x4115ef
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x174], 0
mov byte [ebp - 0x170], 0
mov dword [ebp - 0x16c], 2
mov dword [ebp - method.ATL::CDacl.virtual_0], vtable.ATL::CDacl.0
call fcn.0041b210
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.0040ed20
push ecx
push 0xc0000000
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 2
call fcn.0040f080
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.0040e610
lea ecx, [ebp - 0x74]
call fcn.0040ed50
push ecx
push 0xc0000000
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 3
call fcn.0040f080
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0040e610
lea ecx, [ebp - 0x134]
call fcn.0040ecf0
push ecx
push 0x10000000
push eax
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 4
call fcn.0040f080
lea ecx, [ebp - 0x134]
call fcn.0040e610
mov dword [ebp - method.ATL::CSecurityDesc.virtual_0], vtable.ATL::CSecurityDesc.0
mov dword [ebp - 0x140], 0
push ecx
lea eax, [ebp - 0x178]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x144]
call fcn.0040f5f0
mov eax, dword [ebp - 0x140]
sub esp, 8
mov ecx, dword [esi + 0x1b8]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x158]
mov dword [ebp - 0x158], 0xc
push eax
sub esp, 0xc
mov dword [ebp - 0x150], 0
call fcn.0040fe10
add esp, 0x18
mov dword [esi + 0x1b0], eax
cmp eax, 0xffffffff
jne 0x4114bc
call fcn.0040add0
push eax
call fcn.0040abe0
push 2
sub esp, 8
lea ecx, [esi + 0x1b0]
call fcn.0040e220
xor ecx, ecx
mov edi, eax
test edi, edi
setns cl
test ecx, ecx
jne 0x4114f4
sub esp, 8
mov edx, 0xaf
mov ecx, str.LogFile2::Output
call fcn.0040df60
add esp, 8
push edi
call fcn.0040abe0
mov edi, dword [ebp - 0x138]
mov ecx, edi
call fcn.0046d1d0
mov edx, dword [edi]
mov ecx, edi
mov dword [ebp - 0x138], eax
call dword [edx + 0x14]
mov edx, dword [esi + 0x1b0]
xor ecx, ecx
test edx, edx
setne cl
test ecx, ecx
jne 0x41153e
sub esp, 8
mov edx, 0x9d
mov ecx, str.ATL::CAtlFile::Write
call fcn.0040df60
add esp, 8
push 0x80004005
call fcn.0040abe0
push 0
lea ecx, [ebp - 0x180]
push ecx
push dword [ebp - 0x138]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x411562
call fcn.0040add0
mov edi, eax
jmp 0x411564
xor edi, edi
xor eax, eax
test edi, edi
setns al
test eax, eax
jne 0x41158a
sub esp, 8
mov edx, 0xb0
mov ecx, str.LogFile2::Output
call fcn.0040df60
add esp, 8
push edi
call fcn.0040abe0
lea ecx, [ebp - 0x144]
mov dword [ebp - method.ATL::CSecurityDesc.virtual_0], vtable.ATL::CSecurityDesc.0
call fcn.0040f8f0
lea ecx, [ebp - 0x178]
call fcn.0040f030
jmp 0x4115d4
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4115ef
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.004712e4
mov esp, ebp
pop ebp
ret 4