Function at 0x662e94
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x662e9d
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 0x663145
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
call fcn.0062c444
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 0x6630ed
mov eax, 0x800
call fcn.00634fac
mov esi, eax
mov ecx, 0x663168
mov edx, 0x800
mov eax, ebx
call fcn.00636a2c
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x688b50]
movzx eax, byte [eax + 0x838]
call fcn.0041cde0
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.00636874
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x688b50]
mov eax, dword [eax + 0x24]
call fcn.00638750
mov ecx, dword [ebp - 0x20]
mov edx, 0x800
mov eax, ebx
call fcn.00636874
push 0x7fffffff
push 0xfecd9826
lea eax, [ebp - 0x24]
call fcn.00635f40
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.00636874
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.0063864c
mov edx, dword [ebp - 0x28]
mov ebx, dword [0x68870c]
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 [0x68870c]
mov ebx, dword [ebx]
lea eax, [esi + 0xc8]
call ebx
lea eax, [ebp - 0xc]
mov edx, 0x663194
call fcn.00407958
push 0
mov ecx, dword [ebp - 0xc]
mov edx, 0x800
mov eax, esi
call fcn.00636874
lea eax, [ebp - 0xc]
mov edx, 0x6631ac
call fcn.00407958
push 0
mov ecx, dword [ebp - 0xc]
mov edx, 0x800
mov eax, esi
call fcn.00636874
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 0x66305f
mov eax, dword [0x688b50]
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 0x663097
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], 1
mov byte [esi + 1], 0xc2
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.00662704
mov eax, esi
call fcn.00404d74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66314c
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