Function at 0x416400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47da50
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [section..data]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
push 0x4a5c54
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x3c], vtable.Base::lock::scoped_lock_class_Base::lock::critical_section_.0
mov dword [ebp - 0x38], 0x4a5c50
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor dl, dl
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
xor bl, bl
call fcn.00416610
push 0
push 0
push 2
push 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 8
push 0
cmovae eax, dword [ebp - 0x54]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4164ee
mov dl, 1
lea ecx, [ebp - 0x6c]
call fcn.00416610
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
push 0
cmovae eax, dword [ebp - 0x6c]
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [ebp - 0x58], 8
mov esi, eax
jb 0x4164d1
push dword [ebp - 0x6c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
cmp esi, 0xffffffff
je 0x4165bf
push 0
lea eax, [ebp - 0x38]
push eax
push 4
push 0x48cbac
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4165b8
cmp dword [ebp - 0x38], 4
jne 0x4165b8
push 0
lea eax, [ebp - 0x38]
push eax
push 0x10
push dword [ebp - 0x74]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4165b8
cmp dword [ebp - 0x38], 0x10
jne 0x4165b8
cmp dword [edi + 0x14], 0x10
xorps xmm0, xmm0
mov edx, dword [edi + 0x10]
movdqu xmmword [ebp - 0x24], xmm0
jb 0x41654b
mov edi, dword [edi]
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004155b0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x38]
push 0
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
call edi
test eax, eax
je 0x4165b8
cmp dword [ebp - 0x38], 0x10
jne 0x4165b8
mov eax, dword [ebp - 0x70]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x34], xmm0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x41658b
mov eax, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.004155b0
push 0
lea eax, [ebp - 0x38]
push eax
push 0x10
lea eax, [ebp - 0x34]
push eax
push esi
call edi
test eax, eax
je 0x4165b8
cmp dword [ebp - 0x38], 0x10
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x40], 8
jb 0x4165d1
push dword [ebp - 0x54]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x40], 7
push 0x4a5c54
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
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.00452da4
mov esp, ebp
pop ebp
ret 0xc