Function at 0x4e35b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bcad5
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x78efc4]
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 esi, edx
mov edi, ecx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4e35ec
mov eax, dword [edi]
push 0
push 0x80000080
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x8c]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x8c], vtable.std::_Func_impl_no_alloc_bool____cdecl___void____bool__void__.0
push eax
mov dword [ebp - 0x88], 0x537900
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x30], 0
call fcn.00451600
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x30], eax
test ecx, ecx
je 0x4e3659
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x8c]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x68], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4e379c
cmp eax, 0xffffffff
je 0x4e379c
push 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push ecx
push dword [ebp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e375e
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00531420
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
push edi
push str.Unable_to_write_file__0_._Error:__1
push 2
mov ecx, esi
call fcn.00454910
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4e3700
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e36f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e3806
push edx
push ecx
call fcn.006779b1
add esp, 8
xor bl, bl
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4e3728
cmp eax, 0xffffffff
je 0x4e3728
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4e3740
mov dword [ebp - 0x64], eax
lea edx, [ebp - 0x64]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4e3740
mov esi, dword [ecx]
lea eax, [ebp - 0x54]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
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.006773ff
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4e3795
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00531420
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
push eax
push edi
push str.Unable_to_flush_write_buffer_for_the_file__0_._Error:__1
jmp 0x4e36b9
mov bl, 1
jmp 0x4e3702
call fcn.004486f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00531420
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push edi
push str.Unable_to_create_file__0_._Error:__1
push 2
mov ecx, esi
call fcn.00454910
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4e3700
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e36f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e36f6
call fcn.00682da2
int3