Function at 0x44f920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51bd14
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x5ba11c]
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 [0x5bab80], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x164], esi
je 0x44fd6c
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.00453d40
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push 0x581ecc
push eax
call fcn.0044da50
add esp, 0x14
push ecx
push 0xc0000000
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x190]
call fcn.0044e2d0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.0044dc00
push 0x222
push 0x20
push 2
lea eax, [ebp - 0xd4]
push 0x581ecc
push eax
call fcn.0044da50
add esp, 0x14
push ecx
push 0xc0000000
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x190]
call fcn.0044e2d0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.0044dc00
push 0x12
push 1
lea eax, [ebp - 0x134]
push 0x581ecc
push eax
call fcn.0044da50
add esp, 0x10
push ecx
push 0x10000000
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x190]
call fcn.0044e2d0
lea ecx, [ebp - 0x134]
call fcn.0044dc00
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.0044eaf0
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.004c1b10
add esp, 0x18
mov dword [esi + 0x1b0], eax
cmp eax, 0xffffffff
je 0x44fd8c
mov byte [ebp - 4], 6
test eax, eax
jne 0x44fb02
sub esp, 8
mov edx, 0xda
mov ecx, str.ATL::CAtlFile::Seek
call fcn.0044d7e0
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 0x44fb2f
call fcn.0044a970
mov edi, eax
test edi, edi
js 0x44fb31
xor edi, edi
mov byte [ebp - 4], 5
test edi, edi
js 0x44fd97
mov ecx, ebx
call fcn.004d0530
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 0x44fb76
sub esp, 8
mov edx, 0x9d
mov ecx, str.ATL::CAtlFile::Write
call fcn.0044d7e0
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 0x44fb95
call fcn.0044a970
mov edi, eax
jmp 0x44fb97
xor edi, edi
mov byte [ebp - 4], 5
test edi, edi
js 0x44fdb2
mov eax, dword [ebp - 0x138]
mov dword [ebp - method.ATL::CSecurityDesc.virtual_0], vtable.ATL::CSecurityDesc.0
test eax, eax
je 0x44fcca
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 0x44fcb2
test dword [ebp - 0x148], 0x8000
jne 0x44fcb2
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.004fc443
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.004fc443
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 0x44fc7a
push dword [ebp - 0x154]
call fcn.004fc443
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 0x44fcb2
push dword [ebp - 0x158]
call fcn.004fc443
add esp, 4
push dword [ebp - 0x138]
call fcn.004fc443
add esp, 4
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x190]
call fcn.0044e250
jmp 0x44fd51
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x44fd6c
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.004eabba
mov esp, ebp
pop ebp
ret 4
call fcn.0044a970
push eax
call fcn.0044a700
sub esp, 8
mov edx, 0xb8
mov ecx, str.LogFile2::Output
call fcn.0044d7e0
add esp, 8
push edi
call fcn.0044a700
sub esp, 8
mov edx, 0xb9
mov ecx, str.LogFile2::Output
call fcn.0044d7e0
add esp, 8
push edi
call fcn.0044a700
int3