Function at 0x411ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b63a0
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x444], esi
lea edi, [esi + 8]
mov dword [ebp - 4], 1
push edi
call fcn.00412850
add esp, 4
lea eax, [ebp - 0x428]
mov ecx, edi
push eax
call fcn.00407a50
mov byte [ebp - 4], 2
mov eax, dword [0x4eb064]
test eax, eax
je 0x411f4b
lea ecx, [ebp - 0x428]
push ecx
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi]
call eax
add esp, 0x14
test al, al
jne 0x41210a
cmp dword [esi], 2
jl 0x411f8c
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
push 0x4d23a4
call fcn.00492983
add eax, 0x40
push eax
call fcn.00492cf5
add esp, 0xc
call fcn.00492983
add eax, 0x40
push eax
call fcn.00492b12
add esp, 4
call fcn.00411970
cmp dword [0x4eb058], 0
jne 0x411faa
push 0xffffffffffffffff
push dword [0x4eb054]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x411fb6
push dword [0x4eb04c]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 3
call fcn.00411ad0
test al, al
je 0x412005
push 2
push 0
push 0
push dword [0x4eb050]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x414], 0x10
lea ecx, [ebp - 0x448]
push 0
push ecx
push dword [ebp - 0x418]
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
push dword [0x4eb050]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 2
cmp dword [0x4eb058], 0
jne 0x412020
push dword [0x4eb054]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x41202c
push dword [0x4eb04c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi]
cmp eax, 4
jne 0x4120b7
mov ecx, 0x400
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x418], ecx
cmovb ecx, dword [ebp - 0x418]
cmp dword [ebp - 0x414], 0x10
cmovae eax, dword [ebp - 0x428]
test ecx, ecx
je 0x412072
push ecx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00491450
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call fcn.0041a480
add esp, 4
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x412090
call fcn.00422fd0
cmp dword [0x4eb05c], 0
je 0x41208b
lea eax, [ebp - 0x440]
mov ecx, edi
push eax
call fcn.00407a50
push eax
mov byte [ebp - 4], 4
call dword [0x4eb05c]
add esp, 4
jmp 0x4120f3
cmp eax, 3
jne 0x41210a
cmp dword [0x4eb060], 0
lea eax, [ebp - 0x440]
mov ecx, edi
push eax
je 0x4120e3
call fcn.00407a50
push eax
mov byte [ebp - 4], 5
call dword [0x4eb060]
add esp, 4
jmp 0x4120f3
call fcn.00407a50
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00411bd0
cmp dword [ebp - 0x42c], 0x10
jb 0x41210a
push dword [ebp - 0x440]
call fcn.0048fa72
add esp, 4
cmp dword [ebp - 0x414], 0x10
jb 0x412121
push dword [ebp - 0x428]
call fcn.0048fa72
add esp, 4
push dword [esi + 0xac]
mov byte [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 0xf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 0x50]
mov eax, dword [esi - 0x50]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x4d1bf4
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 0x54], eax
lea ecx, [esi - 0x4c]
call fcn.00406150
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x4d1fa0
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 0x54], eax
mov dword [esi], vtable.std::ios_base.0
call fcn.0049047c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret