Function at 0x4bfe10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6563a0
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x238], esi
push 0x54
lea eax, [ebp - 0x2a0]
push 0
push eax
call fcn.005e0dd0
movups xmm0, xmmword [0x6b25ac]
mov ax, word [0x6b25c4]
push 0x1ee
mov word [ebp - 0x200], ax
lea eax, [ebp - 0x1fe]
movups xmmword [ebp - 0x218], xmm0
push 0
movq xmm0, qword [0x6b25bc]
push eax
movq qword [ebp - 0x208], xmm0
call fcn.005e0dd0
add esp, 0x18
mov dword [ebp - 0x2a4], 0x58
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x298], 0x6b25c8
push eax
mov dword [ebp - 0x28c], 1
mov dword [ebp - 0x284], 0x208
mov dword [ebp - 0x270], 0x806
mov dword [ebp - 0x274], 0x6b260c
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x4c018e
mov ecx, dword [esi + 0x3d0]
call fcn.00572800
mov dword [ebp - 0x230], eax
test eax, eax
jle 0x4c018e
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x228], eax
cmp eax, 0xffffffff
je 0x4c018e
push 0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x234], 0xfeff
push ecx
push 2
lea ecx, [ebp - 0x234]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [0x6dc0e4]
mov dword [ebp - 0x22c], esi
push fcn.0045e610
push 0x4ab410
push 3
push 4
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 0
push eax
call fcn.00545b8b
xor ebx, ebx
mov byte [ebp - 4], 1
or edi, 0xffffffff
cmp dword [ebp - 0x230], ebx
jle 0x4c0145
nop word [eax + eax]
mov esi, dword [ebp - 0x238]
lea eax, [ebp - 0x23c]
push 0
push ebx
push eax
mov ecx, dword [esi + 0x3d0]
call fcn.005729c7
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.0045e9b0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff4
cmp ecx, dword [0x6dc0e0]
je 0x4c0004
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4c0004
push ecx
call fcn.0049fdd0
add esp, 4
push 1
push ebx
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x3d0]
push eax
call fcn.005729c7
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.0045e9b0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff4
cmp ecx, dword [0x6dc0e0]
je 0x4c0056
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4c0056
push ecx
call fcn.0049fdd0
add esp, 4
push 2
push ebx
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x3d0]
push eax
call fcn.005729c7
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.0045e9b0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff4
cmp ecx, dword [0x6dc0e0]
je 0x4c00a8
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4c00a8
push ecx
call fcn.0049fdd0
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x248]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
push dword [ebp - 0x224]
push str._s____s_________s_r_n
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004bb090
add esp, 0x18
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x248]
add ecx, 0xfffffff4
cmp ecx, dword [0x6dc0e0]
je 0x4c0102
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4c0102
push ecx
call fcn.0049fdd0
add esp, 4
push 0
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
inc ebx
cmp ebx, dword [ebp - 0x230]
jl 0x4bffb0
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push fcn.0045e610
push 3
push 4
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 0
push eax
call fcn.00545bf4
add esi, 0xfffffff4
mov dword [ebp - 4], 9
cmp esi, dword [0x6dc0e0]
je 0x4c018e
lock xadd dword [esi], edi
dec edi
test edi, edi
jg 0x4c018e
push esi
call fcn.0049fdd0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret