Function at 0xffea101
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor esi, esi
xor eax, eax
cmp dword [ebx + 0xc], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
je 0xffea149
cmp dword [ebx + 0x10], esi
je 0xffea149
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebx + 0x2c]
call fcn.0ffe8b4c
cmp eax, esi
jne 0xffea16a
cmp dword [ebx + 0x14], esi
je 0xffea171
cmp dword [ebx + 0x18], esi
je 0xffea171
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebx + 0x38]
call fcn.0ffe8b4c
cmp eax, esi
je 0xffea171
mov esi, eax
jmp 0xffea347
mov eax, dword [ebx + 0x40]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xffea177
mov ecx, dword [ebx + 0x1c]
sub eax, esi
inc eax
add ecx, eax
add ecx, dword [ebp - 0x24]
mov dword [ebx + 8], eax
add ecx, dword [ebp - 0x20]
mov eax, dword [ebx + 0xc]
add ecx, dword [ebx + 0x18]
add ecx, dword [ebx + 0x14]
add ecx, dword [ebx + 0x10]
lea eax, [ecx + eax + 0x130]
push eax
call fcn.0ffe82b0
test eax, eax
mov dword [ebp - 4], eax
jne 0xffea1b7
push 8
pop esi
jmp 0xffea347
push 2
pop edx
mov dword [ebx], edx
push 7
mov dword [eax], edx
lea esi, [ebx + 4]
lea edi, [eax + 4]
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx], edx
je 0xffea1d7
mov esi, 0x8009001a
jmp 0xffea347
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x24], ecx
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 0x40]
mov edx, ecx
shr ecx, 2
lea edi, [eax + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x3c]
add edx, 0x28
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
mov dword [ebp + 0x14], edx
jne 0xffea229
cmp dword [ebx + 0x10], ecx
je 0xffea27f
mov eax, dword [ebp - 4]
mov esi, dword [ebx + 0x24]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x28]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0xc]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add edx, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x14], edx
mov ecx, dword [ebx + 0x14]
test ecx, ecx
jne 0xffea28b
cmp dword [ebx + 0x18], ecx
je 0xffea2e1
mov eax, dword [ebp - 4]
mov esi, dword [ebx + 0x30]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x34]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add edx, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
add edx, eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x14], edx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0ffe9645
test eax, eax
jne 0xffea333
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
push 0x40000000
push dword [ebp + 0x10]
call fcn.0ffe9996
test eax, eax
jne 0xffea333
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0xffea337
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0xffea339
xor esi, esi
cmp dword [ebp - 8], 0
je 0xffea347
push dword [ebp - 8]
call fcn.0ffe82e0
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0xffea356
push dword [ebp - 0xc]
call fcn.0ffe82e0
cmp dword [ebp - 0x10], edi
je 0xffea363
push dword [ebp - 0x10]
call fcn.0ffe82e0
cmp dword [ebp - 4], edi
je 0xffea370
push dword [ebp - 4]
call fcn.0ffe82e0
cmp dword [ebp - 0x14], edi
je 0xffea37e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10