Function at 0x661750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x661759
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407578
mov eax, dword [ebp - 8]
call fcn.00407578
mov eax, dword [ebp + 8]
call fcn.00407578
xor eax, eax
push ebp
push 0x661a01
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
call fcn.00625e9c
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.004082fc
push eax
call sub.kernel32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x6619a9
mov eax, 0x800
call fcn.006301b4
mov esi, eax
mov ecx, 0x661a24
mov edx, 0x800
mov eax, ebx
call fcn.00631b34
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x687c0c]
movzx eax, byte [eax + 0x838]
call fcn.0041ca28
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov ecx, 0
call fcn.00408018
mov ecx, dword [ebp - 0x18]
mov edx, 0x800
mov eax, ebx
call fcn.0063197c
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x687c0c]
mov eax, dword [eax + 0x24]
call fcn.00633750
mov ecx, dword [ebp - 0x20]
mov edx, 0x800
mov eax, ebx
call fcn.0063197c
push 0x7fffffff
push 0xfecd9826
lea eax, [ebp - 0x24]
call fcn.00631048
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0xc]
call fcn.0040b388
push 0
mov ecx, dword [ebp - 0xc]
mov edx, 0x800
mov eax, ebx
call fcn.0063197c
push 0
push 0
push 0
push edi
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x14]
push eax
push 0x800
push ebx
push edi
call sub.kernel32.dll_WriteFile_1
lea ecx, [ebp - 0x28]
mov dx, 0xfde9
mov eax, dword [ebp - 8]
call fcn.0063364c
mov edx, dword [ebp - 0x28]
mov ebx, dword [0x6877cc]
mov ebx, dword [ebx]
mov eax, esi
call ebx
lea eax, [ebp - 0x2c]
mov edx, dword [ebp + 8]
mov ecx, 0
call fcn.00408018
mov edx, dword [ebp - 0x2c]
mov ebx, dword [0x6877cc]
mov ebx, dword [ebx]
lea eax, [esi + 0xc8]
call ebx
lea eax, [ebp - 0xc]
mov edx, 0x661a50
call fcn.00407958
push 0
mov ecx, dword [ebp - 0xc]
mov edx, 0x800
mov eax, esi
call fcn.0063197c
lea eax, [ebp - 0xc]
mov edx, 0x661a68
call fcn.00407958
push 0
mov ecx, dword [ebp - 0xc]
mov edx, 0x800
mov eax, esi
call fcn.0063197c
push 0
lea eax, [ebp - 0x14]
push eax
push 0x800
push esi
push edi
call sub.kernel32.dll_WriteFile_1
xor ebx, ebx
mov eax, 0xff
call fcn.004051c0
mov byte [esi + ebx], al
inc ebx
cmp ebx, 0x800
jne 0x66191b
mov eax, dword [0x687c0c]
movzx eax, byte [eax + 0x838]
mov byte [esi], al
push 0
lea eax, [ebp - 0x14]
push eax
push 0x800
push esi
push edi
call sub.kernel32.dll_WriteFile_1
xor ebx, ebx
mov eax, 0xff
call fcn.004051c0
mov byte [esi + ebx], al
inc ebx
cmp ebx, 0x800
jne 0x661953
push 0
lea eax, [ebp - 0x14]
push eax
push 0x800
mov ebx, esi
push ebx
push edi
call sub.kernel32.dll_WriteFile_1
mov byte [esi], 0
mov byte [esi + 1], 0xfa
push 0
lea eax, [ebp - 0x14]
push eax
push 2
push ebx
push edi
call sub.kernel32.dll_WriteFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 0xd], 1
call fcn.00660fd0
mov eax, esi
call fcn.00404d74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x661a08
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00407524
lea eax, [ebp - 0x24]
call fcn.00407494
lea eax, [ebp - 0x20]
call fcn.004074b8
lea eax, [ebp - 0x1c]
call fcn.00407494
lea eax, [ebp - 0x18]
call fcn.004074b8
lea eax, [ebp - 0xc]
call fcn.004074b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074f4
lea eax, [ebp + 8]
call fcn.00407494
ret