Function at 0x4194f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e234
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x4ba070]
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 [0x4be654], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x164], esi
je 0x4198eb
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.0041bfa0
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push 0x4a518c
push eax
call fcn.00417830
add esp, 0x14
push ecx
push 0xc0000000
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x190]
call fcn.00417db0
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00417a10
push 0x222
push 0x20
push 2
lea eax, [ebp - 0xd4]
push 0x4a518c
push eax
call fcn.00417830
add esp, 0x14
push ecx
push 0xc0000000
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x190]
call fcn.00417db0
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.00417a10
push 0x12
push 1
lea eax, [ebp - 0x134]
push 0x4a518c
push eax
call fcn.00417830
add esp, 0x10
push ecx
push 0x10000000
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x190]
call fcn.00417db0
lea ecx, [ebp - 0x134]
call fcn.00417a10
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.00418590
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.0044cb00
add esp, 0x18
mov dword [esi + 0x1b0], eax
cmp eax, 0xffffffff
je 0x41990b
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 0x4196de
call fcn.004173b0
test eax, eax
js 0x419916
xor eax, eax
test eax, eax
js 0x419916
mov ecx, edi
call fcn.00452610
mov edx, dword [edi]
mov ebx, eax
call dword [edx + 0x14]
push 0
lea ecx, [ebp - 0x194]
push ecx
push ebx
push eax
push dword [esi + 0x1b0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x419718
call fcn.004173b0
jmp 0x41971a
xor eax, eax
test eax, eax
js 0x41991c
mov eax, dword [ebp - 0x138]
mov dword [ebp - method.ATL::CSecurityDesc.virtual_0], vtable.ATL::CSecurityDesc.0
test eax, eax
je 0x419849
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 0x419831
test dword [ebp - 0x148], 0x8000
jne 0x419831
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.00465729
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.00465729
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 0x4197f9
push dword [ebp - 0x154]
call fcn.00465729
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 0x419831
push dword [ebp - 0x158]
call fcn.00465729
add esp, 4
push dword [ebp - 0x138]
call fcn.00465729
add esp, 4
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x190]
call fcn.00417d30
jmp 0x4198d0
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x4198eb
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.0045561a
mov esp, ebp
pop ebp
ret 4
call fcn.004173b0
push eax
call fcn.00417140
push eax
call fcn.00417140
push eax
call fcn.00417140
int3