Function at 0x64eff8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68cc1e
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x77ff48]
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 eax, dword [ebp + 0xc]
mov edx, eax
mov esi, dword [ebp + 0x10]
and eax, 0x3f
mov ebx, dword [ebp + 0x18]
imul ecx, eax, 0x38
sar edx, 6
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x50], edx
mov eax, dword [edx*4 + 0x7bb0c0]
mov dword [ebp - 0x44], ecx
mov eax, dword [eax + ecx + 0x18]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
add eax, esi
mov dword [ebp - 0x54], eax
call dword [sym.imp.KERNEL32.DLL_GetConsoleOutputCP]
cmp byte [ebx + 0x14], 0
mov dword [ebp - 0x70], eax
jne 0x64f071
mov ecx, ebx
call fcn.00638f70
mov eax, dword [ebx + 0xc]
mov esi, dword [ebp + 8]
mov edi, esi
mov eax, dword [eax + 8]
mov dword [ebp - 0x68], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x60]
mov edx, eax
mov dword [ebp - 0x30], edx
cmp eax, dword [ebp - 0x54]
jae 0x64f3a9
mov edi, dword [ebp - 0x44]
xor ebx, ebx
mov dword [ebp - 0x48], ebx
cmp dword [ebp - 0x68], 0xfde9
mov al, byte [edx]
mov byte [ebp - 0x31], al
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x2c], 1
mov ecx, dword [eax*4 + 0x7bb0c0]
mov dword [ebp - 0x4c], ecx
jne 0x64f1fa
add ecx, 0x2e
mov eax, ebx
add ecx, edi
cmp byte [ecx], bl
je 0x64f0d8
inc eax
inc ecx
cmp eax, 5
jl 0x64f0cd
mov edi, dword [ebp - 0x54]
sub edi, edx
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x64f19f
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
add eax, 0x2e
add eax, ecx
mov dword [ebp - 0x4c], eax
movzx eax, byte [eax]
movsx eax, byte [eax + 0x780300]
inc eax
mov dword [ebp - 0x38], eax
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
cmp eax, edi
jg 0x64f330
mov ecx, dword [ebp - 0x2c]
mov edi, ebx
mov esi, dword [ebp - 0x4c]
mov al, byte [esi]
mov byte [ebp + edi - 0x18], al
inc edi
inc esi
cmp edi, ecx
jl 0x64f11a
mov edi, dword [ebp - 0x48]
test edi, edi
jle 0x64f140
push edi
lea eax, [ebp - 0x18]
add eax, ecx
push edx
push eax
call fcn.0062a090
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
mov edi, dword [ebp - 0x44]
mov edx, ebx
mov esi, dword [ebp - 0x50]
mov eax, dword [esi*4 + 0x7bb0c0]
add eax, edi
mov byte [eax + edx + 0x2e], bl
inc edx
cmp edx, ecx
jl 0x64f148
push dword [ebp - 0x3c]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x78], ebx
cmp dword [ebp - 0x38], 4
push ecx
sete al
mov dword [ebp - 0x74], ebx
inc eax
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0065aedf
add esp, 0x14
cmp eax, 0xffffffff
je 0x64f3a9
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x48]
jmp 0x64f1f4
movzx eax, byte [edx]
movsx ecx, byte [eax + 0x780300]
inc ecx
mov dword [ebp - 0x4c], ecx
cmp ecx, edi
jg 0x64f35f
push dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x80], ebx
cmp ecx, 4
mov dword [ebp - 0x7c], ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x38], edx
sete al
inc eax
push ecx
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0065aedf
add esp, 0x14
cmp eax, 0xffffffff
je 0x64f3a9
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x44]
dec eax
jmp 0x64f27f
mov ah, byte [edi + ecx + 0x2d]
test ah, 4
je 0x64f221
mov al, byte [edi + ecx + 0x2e]
and ah, 0xfb
push dword [ebp - 0x3c]
mov byte [ebp - 0x20], al
mov al, byte [edx]
mov byte [ebp - 0x1f], al
mov byte [edi + ecx + 0x2d], ah
lea eax, [ebp - 0x20]
push 2
push eax
jmp 0x64f267
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [edx]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
cmp word [eax + ecx*2], bx
jge 0x64f261
lea eax, [edx + 1]
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0x54]
jae 0x64f380
push dword [ebp - 0x3c]
lea eax, [ebp - 0x40]
push 2
push edx
push eax
call fcn.0064e2a1
add esp, 0x10
cmp eax, 0xffffffff
je 0x64f3a9
mov eax, dword [ebp - 0x38]
jmp 0x64f27f
push dword [ebp - 0x3c]
push 1
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.0064e2a1
add esp, 0x10
cmp eax, 0xffffffff
je 0x64f3a9
mov eax, dword [ebp - 0x30]
push ebx
push ebx
inc eax
push 5
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp - 0x70]
call fcn.0065661b
add esp, 0x20
mov dword [ebp - 0x38], eax
test eax, eax
je 0x64f3a9
push ebx
lea ecx, [ebp - 0x5c]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x64f3a1
mov edx, dword [ebp - 0x30]
mov ecx, edx
sub ecx, dword [ebp - 0x60]
mov eax, dword [esi + 8]
add eax, ecx
mov dword [ebp - 0x48], eax
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x5c], eax
jb 0x64f3a9
cmp byte [ebp - 0x31], 0xa
jne 0x64f325
push 0xd
pop eax
push ebx
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x5c]
push eax
push 1
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x64f3a1
cmp dword [ebp - 0x5c], 1
jb 0x64f3a9
inc dword [esi + 8]
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
cmp edx, dword [ebp - 0x54]
jb 0x64f09d
jmp 0x64f3a9
test edi, edi
jle 0x64f35a
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x50]
mov edx, dword [edx*4 + 0x7bb0c0]
add edx, ecx
mov cl, byte [ebx + eax]
add edx, ebx
inc ebx
mov byte [edx + esi + 0x2e], cl
mov ecx, dword [ebp - 0x44]
cmp ebx, edi
jl 0x64f33a
mov esi, dword [ebp + 8]
add dword [esi + 4], edi
jmp 0x64f3a9
test edi, edi
jle 0x64f35a
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax*4 + 0x7bb0c0]
mov al, byte [ebx + edx]
add ecx, esi
mov byte [ecx + ebx + 0x2e], al
inc ebx
cmp ebx, edi
jl 0x64f366
jmp 0x64f357
mov eax, dword [ebp - 0x4c]
mov cl, byte [edx]
mov byte [edi + eax + 0x2e], cl
mov eax, dword [ebp - 0x50]
mov eax, dword [eax*4 + 0x7bb0c0]
or byte [eax + edi + 0x2d], 4
mov eax, dword [ebp - 0x48]
inc eax
mov dword [esi + 4], eax
jmp 0x64f3a9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
mov eax, esi
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.006147ae
leave
ret