Function at 0x76e2bba1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x76e32068]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x22c], eax
xor edi, edi
push edi
lea eax, [ebp - 0x218]
push eax
push 2
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], 0xa
mov word [ebp - 0x20c], 0xfeff
call esi
test eax, eax
je 0x76e2be1d
lea eax, [ebp - 0x20c]
push 0x76e2be94
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
test eax, eax
je 0x76e2be1d
and dword [ebp - 0x210], 0
cmp dword [ebp + 0x10], 0
jle 0x76e2bcc7
mov ecx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x228]
lea eax, [eax + ecx*4]
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
mov dword [ebp - 0x220], eax
call edi
pop ecx
shl eax, 1
push eax
mov eax, dword [ebp - 0x220]
push dword [eax]
push ebx
call esi
test eax, eax
je 0x76e2be1d
push 0
lea eax, [ebp - 0x218]
push eax
push 2
lea eax, [ebp - 0x21c]
push eax
push ebx
call esi
test eax, eax
je 0x76e2be1d
inc dword [ebp - 0x210]
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp + 0x10]
jl 0x76e2bc60
lea eax, [ebp - 0x20c]
push 0x76e2be70
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
test eax, eax
je 0x76e2be1d
and dword [ebp - 0x210], 0
cmp dword [ebp + 0x18], 0
jle 0x76e2bd77
mov ecx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x224]
lea eax, [eax + ecx*4]
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
mov dword [ebp - 0x220], eax
call edi
pop ecx
shl eax, 1
push eax
mov eax, dword [ebp - 0x220]
push dword [eax]
push ebx
call esi
test eax, eax
je 0x76e2be1d
push 0
lea eax, [ebp - 0x218]
push eax
push 2
lea eax, [ebp - 0x21c]
push eax
push ebx
call esi
test eax, eax
je 0x76e2be1d
inc dword [ebp - 0x210]
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp + 0x18]
jl 0x76e2bd10
lea eax, [ebp - 0x20c]
push 0x76e2be48
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call esi
test eax, eax
je 0x76e2be1d
and dword [ebp - 0x210], 0
cmp dword [ebp + 0x20], 0
jle 0x76e2be29
mov ecx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x22c]
lea eax, [eax + ecx*4]
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
mov dword [ebp - 0x224], eax
call edi
pop ecx
shl eax, 1
push eax
mov eax, dword [ebp - 0x224]
push dword [eax]
push ebx
call esi
test eax, eax
je 0x76e2be1d
push 0
lea eax, [ebp - 0x218]
push eax
push 2
lea eax, [ebp - 0x21c]
push eax
push ebx
call esi
test eax, eax
je 0x76e2be1d
inc dword [ebp - 0x210]
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp + 0x20]
jge 0x76e2be29
jmp 0x76e2bdbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x214], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
call fcn.76e30ec1
leave
ret 0x1c