Function at 0x45cb80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8c10
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4e50cc]
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 0x4edbe4
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x3c], vtable.Base::lock::scoped_lock_class_Base::lock::critical_section_.0
mov dword [ebp - 0x38], 0x4edbe0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor dl, dl
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
xor bl, bl
call fcn.0045cd90
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 0x45cc6e
mov dl, 1
lea ecx, [ebp - 0x6c]
call fcn.0045cd90
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 0x45cc51
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 0x45cd3f
push 0
lea eax, [ebp - 0x38]
push eax
push 4
push 0x4cad14
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45cd38
cmp dword [ebp - 0x38], 4
jne 0x45cd38
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 0x45cd38
cmp dword [ebp - 0x38], 0x10
jne 0x45cd38
cmp dword [edi + 0x14], 0x10
xorps xmm0, xmm0
mov edx, dword [edi + 0x10]
movdqu xmmword [ebp - 0x24], xmm0
jb 0x45cccb
mov edi, dword [edi]
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.0045ba90
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 0x45cd38
cmp dword [ebp - 0x38], 0x10
jne 0x45cd38
mov eax, dword [ebp - 0x70]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x34], xmm0
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x45cd0b
mov eax, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.0045ba90
push 0
lea eax, [ebp - 0x38]
push eax
push 0x10
lea eax, [ebp - 0x34]
push eax
push esi
call edi
test eax, eax
je 0x45cd38
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 0x45cd51
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 0x4edbe4
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.004a5ae0
mov esp, ebp
pop ebp
ret 0xc